EddyVerbruggen / nativescript-localize

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

[Question] add localization data at runtime #65

Closed aaayushsingh closed 5 years ago

aaayushsingh commented 5 years ago

Is there a way to add/update localization data at run time?

Let's say I have an api that periodically gets new content that needs to be localized. How can I update the data in app accordingly?

Will it work if I just overwrite the json files in the folders?

lfabreges commented 5 years ago

No, that's not possible, at least not with this plugin as it uses iOS and Android native API. The JSON files are actually useless at runtime, they're just used at compile time by the before-checkForChanges hook to build the localization files for Android and iOS.