Skip to main content
All CollectionsFeedback WidgetAdvanced
Multilingual pop-up survey
Multilingual pop-up survey
Daria Zakrzewska avatar
Written by Daria Zakrzewska
Updated over a month ago

You can create one pop-up survey in multiple languages.

How to add the language?

To add another language to your web survey, go to the Create tab and select Languages.

Click the plus icon or Add translation.

A new column will appear with a drop-down list from which you can select the language you are interested in.

Once the language has been selected, fields for entering the translated content of the questions and answers will appear in the Questions tab. By going to the System messages tab, you can also change the content of messages, hints or other information displayed to the respondent.

To save the added language, click Save.

You can add as many languages as you like. To do this, click the plus icon again or click Add Translation.
​

How to upload the language translation file?

Once you have added a language to your survey, click the File. Here you can download a file in xlsx format to prepare a translation of your survey. Click Download the translation file...

In the file you will find the columns corresponding to the content found in your survey, i.e. the content from the Questions and System messages tab.

The file also contains instructions to help you complete it appropriately.

After completing the file, click Upload the translation file... to add the prepared survey content in another language. Then click Save to save your changes.
​

Each language has a separate translation file.

Important: Please note that making changes to the survey after downloading the file will require you to download a new translation file. Make sure the survey is complete before you start editing this file.

How does it work?

The survey recognises the language of the browser and if, among the translations you have added, it finds the language of the respondent's browser, the survey will be displayed in that language.

If it doesn't, it will display in the source language of the survey (looking at the image above, it will be English).

You can display the survey to the respondent in any language you prefer, regardless of their browser language. For example: your company operates in the UK and French market. You want to make sure that users who visit your site in the English version will see the survey with an English translation, and the French version will see the French translation.

To do this, simply add the following script to your website, where the survey code has already been placed. Importantly, the script specifying the language must be placed below the survey script.

<script> Startquestion.call({ type: 'setLang', lang: 'en', }); </script>

The lang attribute specifies the preferred language. Similarly, type an attribute value for another language.
​

List of language codes to use in the lang parameter

Below you will find a list of all the language codes included in our panel.

Language

The value of the lang attribute

Bosnian

bs

Bulgarian

bg

Chinese

zh

Croatian

hr

Czech

cs

Danish

dk

Estonian

et

Finnish

fi

French

fr

Greek

gr

Georgian

ka

Spanish

es

Indonesian

id

Korean

ko

Lithuanian

lt

Latvian

lv

Dutch

nl

German

de

Norwegian

no

Portuguese

pt

Russian

ru

Romanian

ro

Serbian

sr

Slovak

sk

Slovenian

si

Swedish

se

Taiwanese

tw

Ukrainian

ua

Hungarian

hu

Italian

it

Examples of survey language change implementation

Our survey code detects the browser language by default. Use the following solutions only if you want to override the default behaviour of the survey.

The examples below are only suggested implementations for changing the language in the survey. Before implementing into a production environment, we recommend testing the code thoroughly and consulting with the technical team at your company.

Language selection during page load

If you want to manually set the language in the survey, you can call up the language change immediately after the page loads:

window.addEventListener('load', function() { Startquestion.call({ type: 'setLang', lang: 'en' }); });

or by adding HTML code:

<script> Startquestion.call({ type: 'setLang', lang: 'en' }); </script>

Changing the language at the click of a button

The user can click on a button on the page to change the language of the survey. A function can be set in the code to call the following code when the button is pressed:

document.getElementById('changeLangButton').addEventListener('click', function() { Startquestion.call({ type: 'setLang', lang: 'en' }); });

Changing the language based on a language selection from a drop-down list

If you have a language selection on your site, e.g. a user can select a language from a drop-down list, e.g. in a form or in the main navigation, the code below will allow you to change the language of the widget to the selected language:

document.getElementById('languageSelect').addEventListener('change', function(event) { const selectedLang = event.target.value; Startquestion.call({ type: 'setLang', lang: selectedLang }); });

Automatic language change based on user location

You can also dynamically change the language based on the user's location or browser settings:

const userLang = navigator.language || navigator.userLanguage; Startquestion.call({ type: 'setLang', lang: userLang.includes('en') ? 'en' : 'pl' });

Multilingual analysis and comparison

The responses in all added languages are available on the Results tab. Each language has an attribute - Survey language.

To filter respondents' answers based on their language selection, use the filters.

Click More filters and select the Survey language attribute.

Select the language for which you want to analyze. Click Apply.

If you want to compare how respondents answered depending on their chosen language, use the Respondent groups comparison, where you can quickly compare results based on the attribute Survey Language.

Click Add comparison.

Select Respondents groups.

From the list, select which question you want to analyze. Then select the attribute to compare - Survey language.

In the next step, select whether you want to compare All attribute values or only Selected values. For selected values, tick the checkbox next to the relevant language or search for its value in the list.

Once you have made your selection, click Apply.

A chart will appear comparing respondents' answers for each selected language. There is information about the language next to each graph and in the table.

You can save the results with aplied filters and added comaprisons as a new report.

The Survey language attribute is also visible in the Responses tab. It is available for responses that have been collected after languages have been added to the web survey.

Did this answer your question?