Skip to main content

Supported Locales And Languages

Use the given below list of supported locale and language codes for app testing.

Android Locales and Language Codes

To test localised strings in your android app, configure Appium's language capability with language code.

info

Language to be passed in the capability - language:'fr' where fr is language code for french

Android Language and Language Codes

LanguageLanguage Code
Arabicar
Bulgarianbg
Catalanca
Chinesezh
Croatianhr
Czechcs
Danishda
Dutchnl
Englishen
Finnishfi
Frenchfr
Germande
Greekel
Hebrewhe
Hindihi
Hungarianhu
Indonesianid
Italianit
Japaneseja
Koreanko
Latvianlv
Lithuanianlt
Norwegian-Bokmolnb
Polishpl
Portuguesept
Romanianro
Russianru
Serbiansr
Slovaksk
Sloveniansl
Spanishes
Swedishsv
Tagalogtl
Thaith
Turkishtr
Ukrainianuk
Vietnamesevi

Android Locale and Locale Codes

Set Appium's locale capability with an appropriate country code to display or format data such as dates, times, decimal separators, and calendars in accordance with the specified country's regional conventions.

info

Locale to be passed in the capability - locale:'FR' where FR is the locale code for France

LocaleLocale Code
AustraliaAU
AustriaAT
BelgiumBE
BrazilBR
BritainGB
BulgariaBG
CanadaCA
CroatiaHR
Czech RepublicCZ
DenmarkDK
EgyptEG
FinlandFI
FranceFR
GermanyDE
GreeceGR
Hong-KongHK
HungaryHU
IndiaIN
IndonesiaID
IrelandIE
IsraelIL
ItalyIT
JapanJP
KoreaKR
LatviaLV
LiechtensteinLI
LithuaniaLT
MexicoES
NetherlandsNL
New ZealandNZ
NorwayNO
PhilippinesPH
PolandPL
PortugalPT
PRCCN
RomaniaRO
RussiaRU
SerbiaRS
SingaporeSG
SlovakiaSK
SloveniaSI
SpainES
SwedenSE
SwitzerlandCH
TaiwanTW
ThailandTH
TurkeyTR
UkraineUA
USUS
USAUS
VietnamVN
ZimbabweZA

How to Setup Locale and Language

You can also configure both locale and language during Espresso test execution for a seamless user experience in diverse linguistic and regional contexts of your app.

Language

To test a localized version of your app on LambdaTest, use the language parameter in the Espresso test execution API request. This allows you to change the language of the application under test.

ParameterDescriptionValues
languageSet the language of the app under testExample: ‘hi’

Locale

To test a localized version of your app on LambdaTest, use the locale parameter in the Espresso test execution API request. This allows you to set the locale for the application under test.

ParameterDescriptionValues
localeSet locale for the app under testExample: IN (Country name abbreviation)

For Example:

curl --location --request POST 'https://mobile-api.lambdatest.com/espresso/v1/build' \
--header 'Authorization: Basic <Enter_Basic_Auth>' \
--header 'Content-Type: application/json' \
--data-raw '{
"app" : "app_id",
"testSuite": "testsuite_id",
"device" : ["Galaxy S20-10"],
"queueTimeout": 360,
"IdleTimeout": 150,
"deviceLog": true,
"build" : "Proverbial-Espresso",
"language": "fr",
"locale": "CA"
}'
note
  • Ensure that both the language and locale parameters are passed simultaneously in the API request.
  • App should support the language and locale mentioned in the API request to work.
  • For espresso sharding tests, you have to mention this in the .yaml file.

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles