EddyVerbruggen / nativescript-i18n

This is a plugin for Nativescript that implements native i18n in an easy manner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change language file when i click button?

vijaykumarbollavaram opened this issue · comments

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');

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

Closing, same as #60