Skip to content

Language Support

Set App Locale

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.

  • 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:

AndroidSwiftObjective-CReact NativeIonicCordovaXamarinJetpackMAUIFlutter

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:

LanguageISO 639-2 CodeAuto Translation Supported
Arabic**araYes
AssameseasmYes
BengalibenYes
BurmeseburYes
CantonesezhoYes
ChinesechiYes
Chinese (Simplified)chiYes
Chinese (Traditional)zhoYes
CzechczeYes
DutchnldYes
English*angYes
English-USang-usYes
FrenchfraYes
French-Canadafr-caYes
GermandeuYes
GujaratigujYes
Hebrew**heb
HindihinYes
IndonesianindYes
ItalianitaYes
JapanesejpnYes
KannadakanYes
KazakhkazYes
KoreankorYes
LaolaoYes
MalaymayYes
MalayalammalYes
MarathimarYes
MongolianmonYes
PunjabipanYes
PolishpolYes
PortugueseporYes
RomanianronYes
RussianrusYes
SinhalasinYes
SlovenianslvYes
SpanishspaYes
TamiltamYes
TelugutelYes
ThaithaYes
TurkishturYes
VietnamesevieYes
  • *English is the default language
  • **Languages are written right to left.