I'm attempting to build a Nativescript/Angular application with internationalisation. I researched my options and found that ng2-translate should do the trick, together with nativescript-ng2-translate, which should handle the loading of translation files.
However, this does not seem to work. I created an example project that has the same basic structure than my own project. It's a bog standard nativescript/angular project build from the tab template.
The translate pipe never does anything. Calling translate service directly also does not give any results. What am I doing wrong?
Code is here: https://github.com/JuergenSimon/translation-test
I did a lot of head banging with nativescript-ng2-translate plugin as well as with ngx-translate, however couldn't get either of them to work. Using ng2-translate with NativeScript http module seems to be the only way that works right now, at least it did for me. I referred this to make it work. Hope it helps you!