How to deliver a specific language depends on the survey type (app or link survey):


Creating a Multi-language Survey

  • Open the Survey Languages page in the Formbricks settings via the top-right menu:

  • Click on the Edit languages button, to add a new language to your survey

  • Select the preferred language from the dropdown and assign an identifier Alias. Click the Add language button to add the language to your project.

You can come back to this page anytime to add more languages or remove existing ones.

  • Now, return to the dashboard to create a new survey or edit an existing one.

  • In the survey editor, scroll down to the Multiple Languages section at the bottom and enable the toggle next to it.

  • Choose a Default Language for your survey.

Changing the default language will reset all the translations you have made for the survey.

  1. Now, add the languages from the dropdown that you want to support in your survey.

  1. You can now see the survey in the selected language by clicking on the language dropdown in any of the questions.

  1. You can now translate all survey content, including questions, options, and button placeholders, into the selected language.

  1. Once you are done, click on the Publish button to save the survey.

App Surveys Configuration

  1. When you initialise the Formbricks SDK for your user, you can pass a language attribute with the language code. This can be either the ISO identifier or the Alias you set when creating the language. The language attribute makes sure that this user only sees surveys with a translation in this specific language available.
javascript
Formbricks.init({
  environmentId: "<environment-id>",
  apiHost: "<api-host>",
  userId: "<user_id>",
  attributes: {
    language: "de", // ISO identifier or Alias set when creating language
  },
});

If a user has a language assigned, a survey has multi-language activate and it is missing a translation in the language of the user, the survey will not be displayed.

  1. That’s it! Now, users with the language attribute set will see the survey in their preferred language. You can start collecting responses in multiple languages and filter them by language on the summary page.

For link surveys, the translation delivery is dependent on the land URL parameter.

After publishing the survey, just copy the survey link and append the lang query parameter with the language alias you have set.

For example, if you have set the alias for French as fr, you can share the survey link as

https://your-survey-url.com?lang=fr

Here are two examples:

Without the lang parameter, Formbricks will show the survey in the default language you have set.

You can now start collecting responses in multiple languages!

Can’t figure it out?: Get help in Github Discussions