Skip to main content

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 typeWhere to find Translations
Native App FeedbackAppearance card → Open Appearance Editor → Translations tab
PopoverPrompt card → Translations
  1. Click Select languages and pick the languages you want to support.
  2. For each language, enter the translation of each content field. The original text is in English.
  3. 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 typeContent fields
Native App FeedbackQuestions, response texts, multiple-choice options including Other, follow-up questions, the Submit button, and the thank-you message
PopoverTitle, 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​

  1. Device language. By default, the SDK uses the language set on the user's device.
  2. Your override. If your app has its own language setting, call setLanguage with its language tag, for example setLanguage("pt-BR"). See Localization for the code on each platform.
  3. Original text. If the intercept has no translation for that language, users see the original text.