how to change language dialouge elements ?
shubhexioms opened this issue · 3 comments
shubhexioms commented
how to change language dialouge elements ?
iamjazzar commented
Can you explain more, @shubhexioms?
shubhexioms commented
Hi,
I am not able to change the languages in the pop-up window..
…On Sun, Apr 8, 2018 at 7:13 PM, Ahmed Jazzar ***@***.***> wrote:
Can you explain more, @shubhexioms <https://github.com/shubhexioms>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhzPKrSDMHqsDru76dzNrcVfRdpr5NNQks5tmhQBgaJpZM4TFQP6>
.
--
Thanks & Regards,
Shubham
iamjazzar commented
Check Identify your locales, or let the library do it for you! in the README.md file.
// This is the locale that you wanna your app to launch with.
Locale firstLaunchLocale = new Locale("ar");
// You can use a HashSet<String> instead and call 'setSupportedStringLocales()' :)
HashSet<Locale> supportedLocales = new HashSet<>();
supportedLocales.add(Locale.US);
supportedLocales.add(Locale.CHINA);
supportedLocales.add(firstLaunchLocale);
// You can make the following object static so you can use the same reference in all app's
// classes. static is much stable.
LanguageSwitcher ls = new LanguageSwitcher(this, firstLaunchLocale);
ls.setSupportedLocales(supportedLocales);