Translations Supported languages
The 140 language codes Fieldbase recognises for runtime language detection, plus the URL-based language switch and the 14 right-to-left codes. BCP-47 codes throughout.
Setting the language
The active language is set by the ?lang= URL parameter:
https://example.com/survey/abc123?lang=es-MX
https://example.com/survey/abc123?lang=ar-SA
https://example.com/survey/abc123?lang=zh-Hans
Resolution order at page load:
?lang=xx from the URL.
- Embedding-shell hint (
window.SURVEY_REBUILD.surveyLang) when the survey is hosted inside another app.
- Default
en-US.
If the URL specifies a code not in the registry below, or the
code is registered but no language pack is on disk yet, the
runtime falls back to English. The ?lang= value also flows
through to scripts via request.param("lang") — branch on it
when you need to.
Supported language codes
140 BCP-47 codes. Codes flagged RTL render the survey UI
right-to-left.
English first (the runtime fallback default), then the
remaining variant groups alphabetically by language name.
Inside each table, the base / default code (where one
exists — e.g. es, fr, de) leads, then regional variants
alphabetically by full code.
English variants
| Code | Name |
|---|
en-US | English (US) |
en-AE | English (UAE) |
en-AU | English (Australia) |
en-CA | English (Canada) |
en-CN | English (China) |
en-GB | English (UK) |
en-HK | English (Hong Kong) |
en-ID | English (Indonesia) |
en-IE | English (Ireland) |
en-IN | English (India) |
en-MY | English (Malaysia) |
en-NG | English (Nigeria) |
en-NZ | English (New Zealand) |
en-PH | English (Philippines) |
en-SA | English (Saudi Arabia) |
en-SG | English (Singapore) |
en-TW | English (Taiwan) |
en-ZA | English (South Africa) |
Arabic variants
| Code | Name | RTL |
|---|
ar | Arabic | ✓ |
ar-AE | Arabic (UAE) | ✓ |
ar-EG | Arabic (Egypt) | ✓ |
ar-IQ | Arabic (Iraq) | ✓ |
ar-JO | Arabic (Jordan) | ✓ |
ar-KW | Arabic (Kuwait) | ✓ |
ar-LB | Arabic (Lebanon) | ✓ |
ar-MA | Arabic (Morocco) | ✓ |
ar-QA | Arabic (Qatar) | ✓ |
ar-SA | Arabic (Saudi Arabia) | ✓ |
Chinese variants
| Code | Name |
|---|
zh-Hans | Chinese (Simplified) |
zh-Hans-MY | Chinese Simplified (Malaysia) |
zh-Hans-SG | Chinese Simplified (Singapore) |
zh-Hant-HK | Chinese Traditional (Hong Kong) |
zh-Hant-TW | Chinese Traditional (Taiwan) |
Dutch variants
| Code | Name |
|---|
nl | Dutch |
nl-BE | Dutch (Belgium) |
French variants
| Code | Name |
|---|
fr | French |
fr-BE | French (Belgium) |
fr-CA | French (Canada) |
fr-CH | French (Switzerland) |
fr-LU | French (Luxembourg) |
German variants
| Code | Name |
|---|
de | German |
de-AT | German (Austria) |
de-CH | German (Switzerland) |
de-LU | German (Luxembourg) |
Greek variants
| Code | Name |
|---|
el | Greek |
el-CY | Greek (Cyprus) |
Italian variants
| Code | Name |
|---|
it | Italian |
it-CH | Italian (Switzerland) |
Malay variants
| Code | Name |
|---|
ms | Malay |
ms-SG | Malay (Singapore) |
Portuguese variants
| Code | Name |
|---|
pt | Portuguese |
pt-BR | Portuguese (Brazil) |
pt-PT | Portuguese (Portugal) |
Russian variants
| Code | Name |
|---|
ru | Russian |
ru-BY | Russian (Belarus) |
ru-EE | Russian (Estonia) |
ru-KZ | Russian (Kazakhstan) |
ru-LV | Russian (Latvia) |
ru-UA | Russian (Ukraine) |
Spanish variants
| Code | Name |
|---|
es | Spanish (Latin America) |
es-419 | Spanish (Latin America) |
es-AR | Spanish (Argentina) |
es-CL | Spanish (Chile) |
es-CO | Spanish (Colombia) |
es-CR | Spanish (Costa Rica) |
es-DO | Spanish (Dominican Republic) |
es-EC | Spanish (Ecuador) |
es-ES | Spanish (Spain) |
es-MX | Spanish (Mexico) |
es-PE | Spanish (Peru) |
es-PR | Spanish (Puerto Rico) |
es-PY | Spanish (Paraguay) |
es-US | Spanish (United States) |
es-UY | Spanish (Uruguay) |
es-VE | Spanish (Venezuela) |
Urdu variants
| Code | Name | RTL |
|---|
ur | Urdu | ✓ |
ur-IN | Urdu (India) | ✓ |
All others (alphabetical by name)
| Code | Name | RTL |
|---|
af | Afrikaans | |
sq | Albanian | |
hy | Armenian | |
as | Assamese | |
az | Azerbaijani | |
eu | Basque | |
be | Belarusian | |
bn | Bengali | |
bs | Bosnian | |
bg | Bulgarian | |
my | Burmese | |
ca | Catalan | |
hr | Croatian | |
cs | Czech | |
da | Danish | |
et | Estonian | |
fi | Finnish | |
ka | Georgian | |
gu | Gujarati | |
he | Hebrew | ✓ |
hi | Hindi | |
hu | Hungarian | |
is | Icelandic | |
id | Indonesian | |
ga | Irish | |
ja | Japanese | |
kn | Kannada | |
kk | Kazakh | |
km | Khmer | |
ko | Korean | |
ky | Kyrgyz | |
lv | Latvian | |
lt | Lithuanian | |
mk | Macedonian | |
ml | Malayalam | |
mt | Maltese | |
mr | Marathi | |
mn | Mongolian | |
ne | Nepali | |
nb | Norwegian (Bokmål) | |
or | Odia | |
fa | Persian | ✓ |
pl | Polish | |
pa | Punjabi | |
ro | Romanian | |
sm | Samoan | |
sr | Serbian | |
si | Sinhala | |
sk | Slovak | |
sl | Slovenian | |
so | Somali | |
sw | Swahili | |
sv | Swedish | |
tl | Tagalog | |
ta | Tamil | |
te | Telugu | |
th | Thai | |
to | Tongan | |
tr | Turkish | |
uk | Ukrainian | |
uz | Uzbek | |
vi | Vietnamese | |
cy | Welsh | |
RTL languages
Fourteen codes flip the UI direction to right-to-left:
- Arabic —
ar, ar-AE, ar-EG, ar-IQ, ar-JO, ar-KW, ar-LB, ar-MA, ar-QA, ar-SA
- Hebrew —
he
- Persian —
fa
- Urdu —
ur, ur-IN
The survey container gets dir="rtl" when one of these is the
active language. Inline HTML in your text: / title: etc.
inherits the direction.
See also
- Query params —
?lang=xx flows through request.param("lang") for any script that needs to branch on language
- Survey status & redirect —
redirectUrl(...) for sending a respondent to a language-specific survey variant