Configure Survey Language
configure_survey_languageAdds a LANGUAGE LAYER to a survey (or upserts translations of an existing layer). A language is a layer on the SAME survey: structure, logic and the collected dataset are shared; only texts are overlaid. Respondents pick the language via ?Language= on the share link or the survey's language selector; anything untranslated falls back to the source text. Author content (question texts, option labels, matrix rows, survey title, custom end message) is seeded with the SOURCE texts as the translation worklist. Supply translations in translations[]: {question, text} for a question's text, {question, option:, text} for an option label, {question, row:, text} for a matrix row, {target:'survey-title'|'survey-description'|'end-message'|, text} for named targets. IMPORTANT: built-in localization of service texts (buttons, validators, service pages) exists for ru/de/en ONLY — for any other language those slots stay on the English/source fallback; the reply lists the service slot keys still needing translations — translate them and call again (idempotent upsert). Add languages LAST: questions added after the layer are not in it until you re-run configure_survey_language (the survey still works — they fall back to source text). Verified by re-reading the stored translation set. Requires the edit-survey right.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Survey publication code — the 8-character code from the survey's public link (e.g. 1a2b3c4d). Returned by list_surveys. | |
| language | Yes | Language code of the layer, e.g. fr, zh, pt-BR. Must differ from the survey's default language. Codes from the QS catalog register canonically (endonym + text direction); an unknown code additionally needs languageName and direction. | |
| direction | No | Text direction, 'ltr' or 'rtl'. Required ONLY when the code is not in the QS catalog; catalog codes resolve it canonically. | |
| languageName | No | The language's own name shown to respondents in the language selector. Required ONLY when the code is not in the QS catalog; ignored for catalog codes. | |
| translations | No | Optional translations to apply (see the tool description for the addressing forms). Anything not supplied stays on the source-language fallback. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | What the call did, verified, refused or previewed — the complete human-readable outcome. | |
| preview | No | true when the call was a preview (confirm not passed): nothing was changed. |