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:
DSLFormatterandrenumbererround-trip[SET LOCALE]directives cleanly without triggeringL013warnings. - Response Telemetry: Every completed interview records the active
localefor downstream analytics and exports.
2. Localized Variant Tabs (localizedDsl) & Simulator Sync#
When you run /localize <lang> in AXIOMA or manage variants in Survey Studio:
- 1Editor Variant Tabs: Switch between
Mainand localized tabs (es,en,fr,pt) in one workspace. - 2Stale Translation Indicator: Editing
Mainflags downstream variants that need re-syncing. - 3Simulator Locale Sync: Switching editor tabs automatically updates the Live Preview locale.
- 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