Any i18n plugin working on Angular apps?


#1

Hi have tried with current Angular {{N}} these :

ng2-translate, rborn/nativescript-i18n, nativescript-localize and @ngx-translate/core
@ngx-translate/http-loader.

All of them were throwing a template parsing error due the pipe “‘hello’ | trans” or similar …
Any successful experience out there?

Thanks so much !


#2

I had used nativescript-i18n in past, using nativescript-localize now with Angular apps I never hit there. If the NativeScriptLocalizeModule is imported properly, it should do the trick with pipe.


#3

I’m having this issue, could you check it please?


#4

nativescript-localize working !, I was loading the module on the app.component, but I need to load it also on every page module … against DRY but it’s better than nothing :slight_smile:


#5

That’s the reason why you have to follow shared module :wink:


#6

Now my problem is that App_Resources/iOS/en.lproj/Localizable.strings is not getting updated after changing app/i18n/en.default.json … so the first version translations are displayed :frowning:


#7

Try just cleaning platforms folder, but it usually updates, at least I haven’t hit there.


#8

I have deleted platforms, run using --clean, even delete the iOS simulator and restart … nothing updates the localizable strings :-/


#9

Solved going back and reinstalled