Set App Locale
- 08 Jan 2025
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Set App Locale
- Updated On 08 Jan 2025
- 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 | bur |
Czech | cze |
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 | may |
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
Leap.setAppLocale("<code_you_want_to_use>");
iOS-Swift
Leap.shared.setAppLocale("<code_you_want_to_use>")
iOS Objective-C
[[Leap shared] setAppLocale:@"<code_you_want_to_use>"];
ReactNative
LeapReactNative.setAppLocale('<code_you_want_to_use>');
Ionic
LeapPlugin.setAppLocale("<code_you_want_to_use>");
Cordova (Android)
cordova.plugin.LeapAndroid.setAppLocale("<code_you_want_to_use>");
Cordova (iOS)
cordova.plugin.LeapiOS.setAppLocale("<code_you_want_to_use>");
Xamarin Android
Leap.SetAppLocale("<code_you_want_to_use>");
Xamarin iOS
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?