Articles on: Getting Started with Screeb

How to force a language ?

Here are three ways to set the language in a Screeb tag, listed by priority:


1 Survey Start Parameter (Highest Priority)


The highest priority method for setting the language is through the survey.start command. This allows you to specify the language for a particular survey when you start it. If this parameter is set, it will override all other language settings.


Example:


$screeb("survey.start", "<SURVEY_ID>", { language: "en" });


2 Init Parameter


The second option is to set the language globally during the initialization of Screeb. This is useful if you want to set a default language across the entire website or web app. It applies to all surveys unless a different language is specified in the survey.start command.


Example:


$screeb('init', '<website-id>', { language: 'en' });


3 User Property


The third method involves setting the user's language preference using a user property. This setting will apply the chosen language for that particular user, regardless of the broader site or survey settings, unless overridden by one of the higher-priority methods.


Example:


$screeb('identity.properties', { language: 'en' });


If none of the above methods are used, Screeb will automatically detect and use the user's browser language as the default. This is the lowest-priority fallback and ensures that users still see the survey in a language they likely understand, based on their browser settings.

Updated on: 31/12/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!