Answer the question
In order to leave comments, you need to log in
How to implement multilingualism in JS and node.js?
Hello, I have a question about localizing an application on node.js (using MEAN-stack).
Idea: in html templates, make static text multilingual (I think it's best to store language packs in JSON).
How to make html render on the server and give out to the client (as in php), template engines like hogan/jade/handlebars/ejs (if yes, which one is better for these purposes) or node.js modules (i18n seems to be for multilingualism) or angular oh right away?
In theory , template engines and angular, because on JS, they have 2 problems:
1- a delay in rendering on the client is possible (if the Internet is tight or a lot of scripts) and "SUDDENLY" JS is turned off in the browser - it's generally a disaster.
2- indexing by search bots. they are not very friendly with JS.
If so, what is the best option? Thanks in advance)
Answer the question
In order to leave comments, you need to log in
I recommend to provide some kind of routing option for different language versions ( hreflang ) to begin with.
Then get familiar with how search engines index dynamic content.
https://developers.google.com/webmasters/ajax-craw...
And read more:
builtvisible.com/javascript-framework-seo
stackoverflow.com/questions/13499040/how-do-search...
And of course i18n/l10n are available for both projects. Follow the standards, they usually take into account many rakes.
https://docs.angularjs.org/guide/i18n
https://github.com/mashpie/i18n-node
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question