Translations
Translations let you show an intercept in your users' language. You add them in your App Insights Project, and the SDK picks the right one on the device, so your app needs no extra code.
Two intercept types have text you can translate: Native App Feedback and Popover. Connect in your app opens a Qualtrics survey, which you translate in the survey editor, and App Store Review shows the store's own prompt.
Add translations
Translations work the same way for both types. Only the place you start differs:
| Intercept type | Where to find Translations |
|---|---|
| Native App Feedback | Appearance card → Open Appearance Editor → Translations tab |
| Popover | Prompt card → Translations |
- Click Select languages and pick the languages you want to support.
- For each language, enter the translation of each content field. The original text is in English.
- Publish the intercept, so the SDK receives the translations.
Fields you leave empty show the original text, so you can translate a form in stages.
What you can translate
| Intercept type | Content fields |
|---|---|
| Native App Feedback | Questions, response texts, multiple-choice options including Other, follow-up questions, the Submit button, and the thank-you message |
| Popover | Title, message, confirm button, and dismiss button |
Language codes
Languages use Qualtrics language codes, such as FR, ES-ES, PT-BR, or ZH-S. See the full list of language codes.
In your app, setLanguage takes a language tag, such as fr, es-ES, or pt-BR, and maps it to the Qualtrics code. For Chinese, pass zh-Hans (Simplified, ZH-S) or zh-Hant (Traditional, ZH-T); ZH-S and ZH-T don't match those translations.
How the SDK picks a language
- Device language. By default, the SDK uses the language set on the user's device.
- Your override. If your app has its own language setting, call
setLanguagewith its language tag, for examplesetLanguage("pt-BR"). See Localization for the code on each platform. - Original text. If the intercept has no translation for that language, users see the original text.