Skip to content

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

Closed
NickIliev opened this issue Sep 21, 2016 · 6 comments
Closed

Nativescript with Angular 2: proper i18n approach? #464

NickIliev opened this issue Sep 21, 2016 · 6 comments

Comments

@NickIliev
Copy link

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

@hdeshev
Copy link
Contributor

hdeshev commented Sep 21, 2016

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.

@m-abs
Copy link
Contributor

m-abs commented Sep 29, 2016

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.

@andy-tai
Copy link

andy-tai commented Oct 2, 2016

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.

@ignaciolarranaga
Copy link

Some update on this guys ?, I feel the same as @andy-tai, but currently using ng2-translate.

@Svoig
Copy link

Svoig commented Feb 21, 2017

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.

@NickIliev
Copy link
Author

The support for L18 is logged here and is under development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants