Hi,
I need to provide support for multi-languages (Arabic, Spanish etc.) for a project in node(Express, MySQL, AngularJS). What is the preferred way to achieve same, any tutorial, links will be helpful. I am not able to get good results on google.
Well, I don't know about some preferred way, but I know how the language module of SHPS works:
lang.getString(requestState, 'group', 'identifier') to get the string. I think that's quite convenient, as the method internally processes the state, determines the db and language to use (the browser usually sends several weighted possibilities, and if you support none, you have to use a fallback language, like English), does the actual querying and just returns the string. Well, actually SHPS returns a promise, though you might return a monadic Result or "default string" for error handling as well.You can use https://www.npmjs.com/package/smws for multilingual support in node
Atul Sharma
Full Stack Developer | Cloud Native Applications
Use i8n with angular.
Write string constants with languages you need to support and use string constants only
https://angular-translate.github.io/
https://docs.angularjs.org/guide/i18n