Skip to main content

Localization

The Experience SDK supports localization, allowing you to present intercepts to your users in their preferred language.

Automatic Language Detection​

By default, the SDK automatically detects the device's current language setting and will display the intercept in that language if translations are available and configured in the intercept.

Manual Language Override - setLanguage​

If you need to override the device's default language or provide a custom language selection within your app, you can manually set the language by calling the setLanguage method with a language tag (e.g., en, fr, es, pt-BR). The SDK maps it to the matching Qualtrics language code. For Chinese, pass zh-Hans or zh-Hant, not ZH-S or ZH-T.

Code Examples​

Qualtrics.setLanguage(languageCode: "FR")

Once this property is set, the SDK will use this language when fetching and displaying intercepts, provided the translations are set up in your Qualtrics project.