Whatfix Mobile supports multilingual experiences. It also enables you to set an app locale using the locale code, which automatically launches the experience in that specific language without requesting your end users to select the language. Whatfix Mobile follows the ISO 639-2 representation of locale code. The code is a 3-letter code representation of the language.
Info:
For more information on the ISO 639-2 representation, see List of ISO 639-2 codes.
Once the language is set, the end user sees the experience in the selected 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 experience is not rendered.
Individual assists on Mobile support only one language; they do not support multi-lingual configurations, and do not fall back to the dashboard default language.
Whatfix on Mobile does not support in-built fall back or default language configuration. Hence, developers have to implement fall-back language configuration and send the code to Whatfix SDK. In case of no language code sent to Whatfix SDK programmatically, the SDK renders a bottom sheet pop-up with all the configured languages for end users to choose from.
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>")Flutter
LeapAui.setAppLocale("<code_you_want_to_use>");MAUI (Android)
Leap.SetAppLocale("ang");MAUI (iOS)
Leap.Shared.SetAppLocale("ang");Jetpack
Leap.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>");Cordova (Android)
cordova.plugin.LeapAndroid.setAppLocale("<code_you_want_to_use>");Cordova (iOS)
cordova.plugin.LeapiOS.setAppLocale("<code_you_want_to_use>");Ionic
LeapPlugin.setAppLocale("<code_you_want_to_use>");React Native
LeapReactNative.setAppLocale('<code_you_want_to_use>');iOS Objective - C
[[Leap shared] setAppLocale:@"<code_you_want_to_use>"];The following table shows the languages supported by Whatfix Mobile, along with their corresponding language codes:
Language | ISO 639-2 Code | Auto Translation Supported |
Arabic** | ara |
|
Assamese | asm |
|
Bengali | ben |
|
Burmese | bur |
|
Cantonese | zho |
|
Chinese | chi |
|
Chinese (Simplified) | chi |
|
Chinese (Traditional) | zho |
|
Czech | cze |
|
Dutch | nld |
|
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 |
|
Note:
*English is the default language
**Languages are written right to left.