Set App Locale
- 16 Sep 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Set App Locale
- Updated On 16 Sep 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Whatfix Mobile supports multilingual experiences. It also enables you to set an app locale by using the locale code, which automatically launches the experiences in that specific language without requesting your end users to select the language.
The following table shows the languages, along with their corresponding language codes, that Whatfix Mobile supports:
Language | ISO 639-2 Code |
Arabic | ara |
Assamese | asm |
Bengali | ben |
Chinese (Simplified) | chi |
Chinese (Traditional) | zho |
Burmese | mya |
Czech | ces |
English | ang |
English-US | ang-us |
French | fra |
French-Canada | fr-ca |
German | deu |
Gujarati | guj |
Hebrew | heb |
Hindi | hin |
Indonesian | ind |
Italian | ita |
Japanese | jpn |
Kannada | kan |
Kazakh | kaz |
Korean | kor |
Lao | lao |
Malay | msa |
Malayalam | mal |
Marathi | mar |
Mongolian | mon |
Punjabi | pan |
Polish | pol |
Portuguese | por |
Romanian | ron |
Russian | rus |
Sinhala | sin |
Slovenian | slv |
Spanish | spa |
Tamil | tam |
Telugu | tel |
Thai | tha |
Turkish | tur |
Vietnamese | vie |
Use the following code snippet to set the app locale:
Android
Java
Leap.setAppLocale("<code_you_want_to_use>");
iOS-Swift
Swift
Leap.shared.setAppLocale("<code_you_want_to_use>")
iOS Objective-C
Objective-C
[[Leap shared] setAppLocale:@"<code_you_want_to_use>"];
ReactNative
JavaScriptJavaScriptJavaScript
LeapReactNative.setAppLocale('<code_you_want_to_use>');
Ionic
JavaScript
LeapPlugin.setAppLocale("<code_you_want_to_use>");
Cordova (Android)
JavaScriptJavaScriptJavaScript
cordova.plugin.LeapAndroid.setAppLocale("<code_you_want_to_use>");
Cordova (iOS)
JavaScriptJavaScriptJavaScript
cordova.plugin.LeapiOS.setAppLocale("<code_you_want_to_use>");
Xamarin Android
JavaScript
Leap.SetAppLocale("<code_you_want_to_use>");
Xamarin iOS
JavaScript
Leap.Shared.SetAppLocale("<code_you_want_to_use>");
Your title goes here
- Before the locale code is set, the end user has the option to select the language in a multilingual in-app experience and change the language in the middle of the experience.
- Once the language has been set, the end user is shown the experience in the language that is set. In-app experiences without the set language are ignored.
- In case an incorrect locale code (one not present in the list) is set, the experiences are not rendered.
Was this article helpful?