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:

  1. ?lang=xx from the URL.
  2. Embedding-shell hint (window.SURVEY_REBUILD.surveyLang) when the survey is hosted inside another app.
  3. 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

CodeName
en-USEnglish (US)
en-AEEnglish (UAE)
en-AUEnglish (Australia)
en-CAEnglish (Canada)
en-CNEnglish (China)
en-GBEnglish (UK)
en-HKEnglish (Hong Kong)
en-IDEnglish (Indonesia)
en-IEEnglish (Ireland)
en-INEnglish (India)
en-MYEnglish (Malaysia)
en-NGEnglish (Nigeria)
en-NZEnglish (New Zealand)
en-PHEnglish (Philippines)
en-SAEnglish (Saudi Arabia)
en-SGEnglish (Singapore)
en-TWEnglish (Taiwan)
en-ZAEnglish (South Africa)

Arabic variants

CodeNameRTL
arArabic✓
ar-AEArabic (UAE)✓
ar-EGArabic (Egypt)✓
ar-IQArabic (Iraq)✓
ar-JOArabic (Jordan)✓
ar-KWArabic (Kuwait)✓
ar-LBArabic (Lebanon)✓
ar-MAArabic (Morocco)✓
ar-QAArabic (Qatar)✓
ar-SAArabic (Saudi Arabia)✓

Chinese variants

CodeName
zh-HansChinese (Simplified)
zh-Hans-MYChinese Simplified (Malaysia)
zh-Hans-SGChinese Simplified (Singapore)
zh-Hant-HKChinese Traditional (Hong Kong)
zh-Hant-TWChinese Traditional (Taiwan)

Dutch variants

CodeName
nlDutch
nl-BEDutch (Belgium)

French variants

CodeName
frFrench
fr-BEFrench (Belgium)
fr-CAFrench (Canada)
fr-CHFrench (Switzerland)
fr-LUFrench (Luxembourg)

German variants

CodeName
deGerman
de-ATGerman (Austria)
de-CHGerman (Switzerland)
de-LUGerman (Luxembourg)

Greek variants

CodeName
elGreek
el-CYGreek (Cyprus)

Italian variants

CodeName
itItalian
it-CHItalian (Switzerland)

Malay variants

CodeName
msMalay
ms-SGMalay (Singapore)

Portuguese variants

CodeName
ptPortuguese
pt-BRPortuguese (Brazil)
pt-PTPortuguese (Portugal)

Russian variants

CodeName
ruRussian
ru-BYRussian (Belarus)
ru-EERussian (Estonia)
ru-KZRussian (Kazakhstan)
ru-LVRussian (Latvia)
ru-UARussian (Ukraine)

Spanish variants

CodeName
esSpanish (Latin America)
es-419Spanish (Latin America)
es-ARSpanish (Argentina)
es-CLSpanish (Chile)
es-COSpanish (Colombia)
es-CRSpanish (Costa Rica)
es-DOSpanish (Dominican Republic)
es-ECSpanish (Ecuador)
es-ESSpanish (Spain)
es-MXSpanish (Mexico)
es-PESpanish (Peru)
es-PRSpanish (Puerto Rico)
es-PYSpanish (Paraguay)
es-USSpanish (United States)
es-UYSpanish (Uruguay)
es-VESpanish (Venezuela)

Urdu variants

CodeNameRTL
urUrdu✓
ur-INUrdu (India)✓

All others (alphabetical by name)

CodeNameRTL
afAfrikaans
sqAlbanian
hyArmenian
asAssamese
azAzerbaijani
euBasque
beBelarusian
bnBengali
bsBosnian
bgBulgarian
myBurmese
caCatalan
hrCroatian
csCzech
daDanish
etEstonian
fiFinnish
kaGeorgian
guGujarati
heHebrew✓
hiHindi
huHungarian
isIcelandic
idIndonesian
gaIrish
jaJapanese
knKannada
kkKazakh
kmKhmer
koKorean
kyKyrgyz
lvLatvian
ltLithuanian
mkMacedonian
mlMalayalam
mtMaltese
mrMarathi
mnMongolian
neNepali
nbNorwegian (Bokmål)
orOdia
faPersian✓
plPolish
paPunjabi
roRomanian
smSamoan
srSerbian
siSinhala
skSlovak
slSlovenian
soSomali
swSwahili
svSwedish
tlTagalog
taTamil
teTelugu
thThai
toTongan
trTurkish
ukUkrainian
uzUzbek
viVietnamese
cyWelsh

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