đž 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 doing this:
pytest --locale=CODE # Example: --locale=ru
List of Language Locale Codes:
Language | Code |
---|---|
Afrikaans | af |
Amharic | am |
Arabic | ar |
Arabic (Egypt) | ar_ |
Arabic (Saudi Arabia) | ar_ |
Basque | eu |
Belarusian | be |
Bengali | bn |
Bulgarian | bg |
Catalan | ca |
Chinese | zh |
Chinese (China Mainland) | zh_ |
Chinese (Hong Kong) | zh_ |
Chinese (Taiwan) | zh_ |
Croatian | hr |
Czech | cs |
Danish | da |
Dutch | nl |
English | en |
English (United States) | en_ |
English (Australia) | en_ |
English (Canada) | en_ |
English (United Kingdom) | en_ |
English (Ireland) | en_ |
English (India) | en_ |
English (Singapore) | en_ |
English (South Africa) | en_ |
Estonian | et |
Farsi | fa |
Filipino | fil |
Finnish | fi |
French | fr |
French (Canada) | fr_ |
French (Switzerland) | fr_ |
Galician | gl |
German | de |
German (Austria) | de_ |
Greek | el |
Gujarati | gu |
Hebrew | he |
Hindi | hi |
Hungarian | hu |
Icelandic | is |
Indonesian | id |
Italian | it |
Japanese | ja |
Kannada | kn |
Korean | ko |
Lao | lo |
Latvian | lv |
Lingala | ln |
Lithuanian | lt |
Malay | ms |
Malayalam | ml |
Marathi | mr |
Norwegian | no |
Polish | pl |
Portuguese | pt |
Portuguese (Brazil) | pt_ |
Portuguese (Portugal) | pt_ |
Romanian | ro |
Russian | ru |
Serbian | sr |
Slovak | sk |
Slovenian | sl |
Spanish | es |
Spanish (Latin America) | es_ |
Spanish (Argentina) | es_ |
Spanish (Chile) | es_ |
Spanish (Colombia) | es_ |
Spanish (Costa Rica) | es_ |
Spanish (Dominican Rep.) | es_ |
Spanish (Ecuador) | es_ |
Spanish (El Salvador) | es_ |
Spanish (Guatemala) | es_ |
Spanish (Honduras) | es_ |
Spanish (Mexico) | es_ |
Spanish (Nicaragua) | es_ |
Spanish (Panama) | es_ |
Spanish (Peru) | es_ |
Spanish (Puerto Rico) | es_ |
Spanish (Paraguay) | es_ |
Spanish (United States) | es_ |
Spanish (Uruguay) | es_ |
Spanish (Venezuela) | es_ |
Swahili | sw |
Swedish | sv |
Swiss German | gsw |
Tagalog | tl |
Tamil | ta |
Telugu | te |
Thai | th |
Turkish | tr |
Ukrainian | uk |
Urdu | ur |
Vietnamese | vi |
Zulu | zu |