EddyVerbruggen / nativescript-localize

Internationalization plugin for NativeScript using native capabilities of each platform
MIT License
79 stars 31 forks source link

Is there a way to import the i18n files to App Module #51

Closed amobarak closed 5 years ago

amobarak commented 5 years ago

Noticed that the i18n localized files might be imported using vendor.ts, I'm currently not using that and just using the default appModule for imports etc, currently when I install this plugin everything is successful (And it finds the L pipe) but it's unaware of the translation files that I have (Im using the right directory file names etc)

My en.default.ts is: module.exports = { "hello": "hi" };

I don't know where to import the en.default.ts from.

Any help would be great, thanks !

lfabreges commented 5 years ago

You don't need to import it, it is used by the before-checkForChanges to build iOS Localizable.strings or Android strings.xml.