Locale Codes

Language Locale Codes

You can specify a Language Locale Code to customize web pages on supported websites. With SeleniumBase you can change the web browser's Locale on the command line by adding:

--locale=CODE  # Example: --locale=ru

List of Language Locale Codes:

LanguageCode
Afrikaansaf
Amharicam
Arabicar
Arabic (Egypt)ar_eg
Arabic (Saudi Arabia)ar_sa
Basqueeu
Belarusianbe
Bengalibn
Bulgarianbg
Catalanca
Chinesezh
Chinese (China Mainland)zh_cn
Chinese (Hong Kong)zh_hk
Chinese (Taiwan)zh_tw
Croatianhr
Czechcs
Danishda
Dutchnl
Englishen
English (United States)en_us
English (Australia)en_au
English (Canada)en_ca
English (United Kingdom)en_gb
English (Ireland)en_ie
English (India)en_in
English (Singapore)en_sg
English (South Africa)en_za
Estonianet
Farsifa
Filipinofil
Finnishfi
Frenchfr
French (Canada)fr_ca
French (Switzerland)fr_ch
Galiciangl
Germande
German (Austria)de_at
Greekel
Gujaratigu
Hebrewhe
Hindihi
Hungarianhu
Icelandicis
Indonesianid
Italianit
Japaneseja
Kannadakn
Koreanko
Laolo
Latvianlv
Lingalaln
Lithuanianlt
Malayms
Malayalamml
Marathimr
Norwegianno
Polishpl
Portuguesept
Portuguese (Brazil)pt_br
Portuguese (Portugal)pt_pt
Romanianro
Russianru
Serbiansr
Slovaksk
Sloveniansl
Spanishes
Spanish (Latin America)es_419
Spanish (Argentina)es_ar
Spanish (Chile)es_cl
Spanish (Colombia)es_co
Spanish (Costa Rica)es_cr
Spanish (Dominican Rep.)es_do
Spanish (Ecuador)es_ec
Spanish (El Salvador)es_sv
Spanish (Guatemala)es_gt
Spanish (Honduras)es_hn
Spanish (Mexico)es_mx
Spanish (Nicaragua)es_ni
Spanish (Panama)es_pa
Spanish (Peru)es_pe
Spanish (Puerto Rico)es_pr
Spanish (Paraguay)es_py
Spanish (United States)es_us
Spanish (Uruguay)es_uy
Spanish (Venezuela)es_ve
Swahilisw
Swedishsv
Swiss Germangsw
Tagalogtl
Tamilta
Telugute
Thaith
Turkishtr
Ukrainianuk
Urduur
Vietnamesevi
Zuluzu