Answer the question
In order to leave comments, you need to log in
Best way to implement multilingualism in Node.js?
Hello!
Can you please tell me the best way to implement multilingualism in a Node.js application?
Let's say if we have something like this index.js file:
if (language == 'english') {
console.log(phrases.Hello);
}
else if (language = 'russian') {
var phrases = require('./ru');
console.log(phrases.Hello);
}
{
"Hello": "Привет"
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question