Skip to main content

Supported Locales And Languages

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

iOS Locales and Language Codes

To test localised strings in your iOS 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

iOS Language and Language Codes

LanguageLanguage Code
Chinesezh
Czechcs
Dutchnl
Englishen
Finnishfi
Frenchfr
Germande
Greekel
Hebrewhe
Hindihi
Hungarianhu
Indonesianid
Italianit
Japaneseja
Koreanko
Malayms
Norwegian (Bokmal)nb
Polishpl
Portuguese (Brazil)pt
Romanianro
Russianru
Slovaksk
Spanishes
Swedishsv
Tagalogtl
Thaith
Turkishtr
Ukrainianuk
Vietnamesevi

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_FR' where fr is language code for french and FR is the locale code for France

iOS Locale and Locale Codes

LocaleLocale Code
Australia en_AU
Belgium nl_BE
Belgium fr_BE
Brunei Darussalamms_BN
Canada en_CA
Canadafr_CA
Czech Republic cs_CZ
Finlandfi_FI
Germany de_DE
Greeceel_GR
Hungaryhu_HU
Indiahi_IN
Indonesiaid_ID
Israelhe_IL
Italyit_IT
Japanja_JP
Malaysiams_MY
Netherlands nl_NL
New Zealand  en_NZ
Norwaynb_NO
Philippines tl_PH
Polandpl_PL
PRC zh_CN
Romaniaro_RO
Russiaru_RU
Singaporeen_SG
Slovakiask_SK
Koreako_KR
Sweden sv_SE
Taiwan zh_TW
Thailand th_TH
Turkey tr_TR
UK en_GB
Ukraine uk_UA
USes_US
USAen_US
Vietnam vi_VN
Brazilpt-BR
China (Simplified)zh-Hans
China (Traditional)zh-Hant
Hong Kongzh-HK
Indiaen-IN
Irelanden-IE
Latin Americaes-419
Mexicoes-MX
South Africaen-ZA

How to Setup Locale and Language

You can also configure both locale and language during XCUI 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 XCUI 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 XCUI 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/framework/v1/xcui/build' \
--header 'Authorization: Basic <Enter_Basic_Auth>' \
--header 'Content-Type: application/json' \
--data-raw '{
"app" : "lt://APP_ID",
"testSuite": "lt://TestSuite_ID",
"device" : ["iPhone 11-14"],
"video" : true,
"queueTimeout": 10800,
"idleTimeout": 150,
"devicelog": true,
"network": false,
"build" : "Proverbial-XCUITest",
"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 XCUI 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