Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Easy i18n?
-
Dear all,
I am looking for a smart way to internationalize/localize an app based on Onsen UI. I have the feeling that some i18n modules from Angular could (possibly) work but what about apps not embedding Angular?
What would you recommend?Thank you
PAB
-
Hi. Unfortunately I am not sure that many of us have had a focus on i18n recently. Maybe someone like @munsterlander may have had more recent experience and may be able to help you better.
I guess it depends on what exactly you are expecting from the lib/module. Like whether you expect it to auto-translate things in many languages, or maybe you want only a handful of languages for which you will provide the translations yourself.
That being said some of the ones which I found after a quick search were:
http://i18njs.com/ - looks simple
https://github.com/ruyadorno/dom-i18n - if you have only 2-3 languages this solution looks fun even though maybe not very performant as you include all of them from the beginningUsually this type of thing is better if it happens on sth like a server. So maybe you could precompile some html files and then distribute them. Again it’s highly dependant on what you are expecting.
And as i mentioned maybe someone else will have better recommendations :)
-
+1 for http://i18njs.com/
I have used it for multiple non-Onsen projects and it is very simple as well.