In iOS, despite changing the language settings WL.App.getDeviceLanguage() always returns en
.
Tested on iPhone 5, iPad 4 and several emulators.
If us
When using iOS, the relevant setting is that of Region Format.
wlCommonInit()
: alert(WL.App.getDeviceLanguage());
In iOS
There are two settings related to language:
Settings.app >> General >> International >> Region Format
I currently have Hebrew (Israel)
selected.
Launching the app shows me an alert with he
.
Changing to Gusii (Kenya)
and re-launching the app then shows me gu
, and so on for other region formats.
Settings.app >> General >> International >> Language
Changes done here will take no effect.
In Android
There is only one setting related to language:
Settings >> Language and input
I currently have עברית
(Hebrew) selected.
Launching the app shows me an alert with iw
.
Changing to English (United States)
and re-launching the app then shows me en
, and so on for other languages.