EddyVerbruggen / nativescript-i18n

This is a plugin for Nativescript that implements native i18n in an easy manner.
65 stars 30 forks source link

Change language file when i click button? #66

Closed vijaykumarbollavaram closed 7 years ago

vijaykumarbollavaram commented 7 years ago

I have following code in app.js

require("tns-i18n")('ar');
require("./bundle-config");
var application = require("application");
application.start({ moduleName: "views/splash/splash" });`

In my splash screen I have 3 buttons , French, English, Arabic. When I tap on any buitton that language file should be load in application. How to solve this problem

Like for english require("tns-i18n")('en');

rborn commented 7 years ago

Sorry but for now there you cannot change the language at the runtime. A PR is welcomed though 😄

rborn commented 7 years ago

Closing, same as #60