-
-
Notifications
You must be signed in to change notification settings - Fork 241
Nativescript with Angular 2: proper i18n approach? #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks like translations are compiled to TypeScript files, which should be perfectly usable in NativeScript apps. I haven't tried it yet, but my guess is that it's just a matter of tweaking the tools, and publishing an article in the docs. |
We use https://github.com/NathanWalker/angular2-seed-advanced as a base for our project, with this we get ng2-translate support for both web, desktop and nativescript in the same codebase. Translations are super easy, it's just an JSON-file with KEY => translated string. |
While that seems working well, the choice of the Angular team matters greatly--they made a choice, and if you don't go with it, that will mean greater cost in keeping up to date and so on. |
Some update on this guys ?, I feel the same as @andy-tai, but currently using ng2-translate. |
Any news on this? I second @andy-tai on this one. ng2-translate is good as far as it goes, but I prefer the Angular team's solution. And it would be nice to see NativeScript stay close to the Angular team's decisions. |
The support for L18 is logged here and is under development |
From @andy-tai on September 21, 2016 7:35
Angular 2 has its own i18n functionality:
http://www.savethecode.com/angular2-i18n-native-support/
Will NativeScript adapt Angular's i18n for its own use? Or the nativescript-i18n plugin is to be officially supported part of NS going forward?
Copied from original issue: NativeScript/NativeScript#2776
The text was updated successfully, but these errors were encountered: