Practical Guides4 min readINTERMEDIATE

6. Dynamic Locale Switching ([SET LOCALE]) & Localized Variants

Build multilingual surveys with runtime language switching and synchronized localized variants.

#i18n#set-locale#localization#kandel-moles#studio

Dynamic Locale Switching & Localized Variants#

Survey Studio supports both runtime language switching inside a single instrument and synchronized localized variants (localizedDsl), keeping variable codes and routing logic 100% consistent across markets.


1. The [SET LOCALE: <locale> IF <condition>] Directive#

Use [SET LOCALE] whenever a survey must switch its active runtime language based on a respondent's selection:

fdsl
[PRE-SCREENER]

S1. Which language do you prefer for this survey?
[SINGLE CHOICE]
	1. English
	2. Español
	3. Français
[SET LOCALE: es IF S1 == 2]
[SET LOCALE: fr IF S1 == 3]
Live Component Previewsingle choice
ID: S1
Which language do you prefer for this survey?
Answer [S1]:No answer selected / empty
  • Compiler & Formatter Safe: DSLFormatter and renumberer round-trip [SET LOCALE] directives cleanly without triggering L013 warnings.
  • Response Telemetry: Every completed interview records the active locale for downstream analytics and exports.

2. Localized Variant Tabs (localizedDsl) & Simulator Sync#

When you run /localize <lang> in AXIOMA or manage variants in Survey Studio:

  1. 1Editor Variant Tabs: Switch between Main and localized tabs (es, en, fr, pt) in one workspace.
  2. 2Stale Translation Indicator: Editing Main flags downstream variants that need re-syncing.
  3. 3Simulator Locale Sync: Switching editor tabs automatically updates the Live Preview locale.
  4. 4Multilingual Readability: Survey Insights computes locale-aware readability using Flesch-Kincaid (EN), Fernández Huerta (ES), and Kandel-Moles (FR).

Was this article helpful?

Your feedback helps us continuously improve our technical guides.

Have a specific question not covered here?Contact Support

Trademark Notice: All product names, trademarks, and registered trademarks cited in these guides (including Microsoft®, Word®, Apple®, Samsung®, etc.) are property of their respective owners and used strictly for identification, technical compatibility, and illustrative market research demonstration purposes under nominative fair use.