I wonder what would be the best way to implement multiple versions / languages of the same content in the same layout in express.
Should I just do this?
i thought that we can define json objects in lang folder like , en.js , fr.js and this json files contains key value pairs than render to template according to user's language setting , lang settings can be into database.
And we can save this fr.js or anything else into res.locals for calling every template .
Is this suitable?