Skip to content

Instantly share code, notes, and snippets.

@shtnkgm
Last active May 9, 2024 14:35
Show Gist options
  • Save shtnkgm/35765c72fbf3191ead03289729bdbfe2 to your computer and use it in GitHub Desktop.
Save shtnkgm/35765c72fbf3191ead03289729bdbfe2 to your computer and use it in GitHub Desktop.

https://developer.apple.com/documentation/foundation/locale/4020218-firstdayofweek

Sample

Locale FirstDayOfWeek
ja sunday
ja_JP sunday
en sunday
en_US sunday
en-US@fw=wed wednesday
ar saturday
ar_SA sunday
ru_RU monday
ko_Kore_KR sunday
zh_CN sunday
da_DK monday
fr_FR monday
pt_BR sunday
es_ES monday
it_IT monday
in_ID sunday
ms_MY monday
hi_IN sunday
de_DE monday
th_TH sunday
tr_TR monday
uk_UA monday
fi_FI monday
sv_SE monday
he_IL sunday
ja_RU monday
ru_JP sunday

Locale.isoRegionCodes

Region RegionCode FirstDayOfWeek
Ascension Island AC monday
Andorra AD monday
United Arab Emirates AE saturday
Afghanistan AF sunday
Antigua & Barbuda AG monday
Anguilla AI monday
Albania AL monday
Armenia AM sunday
Angola AO monday
Antarctica AQ monday
Argentina AR saturday
American Samoa AS sunday
Austria AT monday
Australia AU monday
Aruba AW monday
Åland Islands AX monday
Azerbaijan AZ monday
Bosnia & Herzegovina BA monday
Barbados BB monday
Bangladesh BD monday
Belgium BE monday
Burkina Faso BF monday
Bulgaria BG monday
Bahrain BH monday
Burundi BI monday
Benin BJ monday
St. Barthélemy BL monday
Bermuda BM monday
Brunei BN sunday
Bolivia BO sunday
Caribbean Netherlands BQ monday
Brazil BR monday
Bahamas BS monday
Bhutan BT monday
Bouvet Island BV monday
Botswana BW monday
Belarus BY monday
Belize BZ monday
Canada CA monday
Cocos (Keeling) Islands CC monday
Congo - Kinshasa CD monday
Central African Republic CF monday
Congo - Brazzaville CG monday
Switzerland CH sunday
Côte d’Ivoire CI monday
Cook Islands CK monday
Chile CL monday
Cameroon CM monday
China mainland CN monday
Colombia CO monday
Clipperton Island CP monday
Sark CQ monday
Costa Rica CR sunday
Cuba CU monday
Cape Verde CV monday
Curaçao CW monday
Christmas Island CX monday
Cyprus CY monday
Czechia CZ monday
Germany DE monday
Diego Garcia DG monday
Djibouti DJ monday
Denmark DK monday
Dominica DM monday
Dominican Republic DO monday
Algeria DZ sunday
Ceuta & Melilla EA monday
Ecuador EC monday
Estonia EE monday
Egypt EG monday
Western Sahara EH monday
Eritrea ER monday
Spain ES monday
Ethiopia ET monday
Finland FI monday
Fiji FJ monday
Falkland Islands FK monday
Micronesia FM monday
Faroe Islands FO monday
France FR monday
Gabon GA monday
United Kingdom GB monday
Grenada GD monday
Georgia GE monday
French Guiana GF monday
Guernsey GG monday
Ghana GH monday
Gibraltar GI monday
Greenland GL monday
Gambia GM monday
Guinea GN sunday
Guadeloupe GP monday
Equatorial Guinea GQ monday
Greece GR monday
So. Georgia & So. Sandwich Isl. GS monday
Guatemala GT monday
Guam GU sunday
Guinea-Bissau GW monday
Guyana GY monday
Hong Kong HK monday
Heard & McDonald Islands HM monday
Honduras HN monday
Croatia HR monday
Haiti HT monday
Hungary HU monday
Canary Islands IC monday
Indonesia ID sunday
Ireland IE monday
Israel IL monday
Isle of Man IM monday
India IN sunday
Chagos Archipelago IO monday
Iraq IQ monday
Iran IR monday
Iceland IS monday
Italy IT monday
Jersey JE monday
Jamaica JM monday
Jordan JO monday
Japan JP monday
Kenya KE monday
Kyrgyzstan KG monday
Cambodia KH monday
Kiribati KI sunday
Comoros KM sunday
St. Kitts & Nevis KN sunday
North Korea KP monday
South Korea KR monday
Kuwait KW monday
Cayman Islands KY monday
Kazakhstan KZ monday
Laos LA monday
Lebanon LB monday
St. Lucia LC monday
Liechtenstein LI monday
Sri Lanka LK monday
Liberia LR monday
Lesotho LS monday
Lithuania LT monday
Luxembourg LU monday
Latvia LV monday
Libya LY monday
Morocco MA monday
Monaco MC monday
Moldova MD monday
Montenegro ME monday
St. Martin MF monday
Madagascar MG monday
Marshall Islands MH sunday
North Macedonia MK monday
Mali ML sunday
Myanmar (Burma) MM monday
Mongolia MN monday
Macao MO monday
Northern Mariana Islands MP monday
Martinique MQ monday
Mauritania MR sunday
Montserrat MS monday
Malta MT sunday
Mauritius MU monday
Maldives MV monday
Malawi MW monday
Mexico MX monday
Malaysia MY sunday
Mozambique MZ monday
Namibia NA monday
New Caledonia NC monday
Niger NE sunday
Norfolk Island NF monday
Nigeria NG monday
Nicaragua NI monday
Netherlands NL monday
Norway NO monday
Nepal NP monday
Nauru NR sunday
Niue NU monday
New Zealand NZ monday
Oman OM sunday
Panama PA sunday
Peru PE monday
French Polynesia PF monday
Papua New Guinea PG monday
Philippines PH monday
Pakistan PK monday
Poland PL monday
St. Pierre & Miquelon PM monday
Pitcairn Islands PN monday
Puerto Rico PR monday
Palestinian Territories PS saturday
Portugal PT sunday
Palau PW monday
Paraguay PY monday
Qatar QA monday
Réunion RE monday
Romania RO monday
Serbia RS monday
Russia RU monday
Rwanda RW monday
Saudi Arabia SA sunday
Solomon Islands SB monday
Seychelles SC monday
Sudan SD sunday
Sweden SE monday
Singapore SG monday
St. Helena SH monday
Slovenia SI monday
Svalbard & Jan Mayen SJ monday
Slovakia SK monday
Sierra Leone SL monday
San Marino SM sunday
Senegal SN sunday
Somalia SO monday
Suriname SR monday
South Sudan SS sunday
São Tomé & Príncipe ST sunday
El Salvador SV monday
Sint Maarten SX monday
Syria SY monday
Eswatini SZ monday
Tristan da Cunha TA sunday
Turks & Caicos Islands TC monday
Chad TD monday
French Southern Territories TF monday
Togo TG monday
Thailand TH sunday
Tajikistan TJ monday
Tokelau TK monday
Timor-Leste TL sunday
Turkmenistan TM monday
Tunisia TN sunday
Tonga TO monday
Türkiye TR monday
Trinidad & Tobago TT monday
Tuvalu TV monday
Taiwan TW monday
Tanzania TZ monday
Ukraine UA monday
Uganda UG sunday
U.S. Outlying Islands UM monday
United States US monday
Uruguay UY monday
Uzbekistan UZ monday
Vatican City VA monday
St. Vincent & Grenadines VC monday
Venezuela VE sunday
British Virgin Islands VG monday
U.S. Virgin Islands VI monday
Vietnam VN monday
Vanuatu VU monday
Wallis & Futuna WF monday
Samoa WS monday
Kosovo XK monday
Yemen YE monday
Mayotte YT monday
South Africa ZA sunday
Zambia ZM monday
Zimbabwe ZW monday

Locale.isoLanguageCodes

Language LanguageCode FirstDayOfWeek
Afar aa sunday
Abkhazian ab monday
Achinese ace sunday
Acoli ach monday
Adangme ada monday
Adyghe ady monday
Avestan ae saturday
Tunisian Arabic aeb monday
Afrikaans af sunday
Afrihili afh monday
Aghem agq monday
Ainu ain sunday
Akan ak monday
Akkadian akk saturday
Alabama akz sunday
Aleut ale sunday
Gheg Albanian aln monday
Southern Altai alt monday
Amharic am sunday
Aragonese an monday
Old English ang monday
Angika anp sunday
Apache, Western apw sunday
Arabic ar saturday
Aramaic arc saturday
Mapuche arn monday
Araona aro monday
Arapaho arp sunday
Algerian Arabic arq monday
Arabic, Najdi ars sunday
Arawak arw monday
Moroccan Arabic ary monday
Egyptian Arabic arz saturday
Assamese as sunday
Asu asa monday
American Sign Language ase sunday
Asturian ast monday
Avaric av monday
Kotava avk monday
Awadhi awa sunday
Aymara ay monday
Azerbaijani az monday
Bashkir ba monday
Baluchi bal sunday
Balinese ban sunday
Bavarian bar monday
Basaa bas monday
Bamun bax monday
Batak Toba bbc sunday
Ghomala bbj monday
Belarusian be monday
Beja bej saturday
Bemba bem monday
Amazigh ber monday
Betawi bew sunday
Bena bez monday
Bafut bfd monday
Badaga bfq sunday
Bulgarian bg monday
Haryanvi bgc sunday
Western Balochi bgn sunday
Bhojpuri bho sunday
Bislama bi monday
Bikol bik sunday
Bini bin monday
Banjar bjn sunday
Kom bkm monday
Siksiká bla sunday
Bambara bm monday
Bangla bn sunday
Tibetan bo sunday
Bishnupriya bpy sunday
Bakhtiari bqi saturday
Breton br monday
Braj bra sunday
Brahui brh sunday
Bodo brx sunday
Bosnian bs monday
Akoose bss monday
Buriat bua monday
Buginese bug sunday
Bulu bum monday
Blin byn monday
Medumba byv monday
Catalan ca monday
Caddo cad sunday
Carib car sunday
Cayuga cay sunday
Atsam cch monday
Chakma ccp sunday
Chechen ce monday
Cebuano ceb sunday
Chiga cgg monday
Chamorro ch sunday
Chibcha chb sunday
Chagatai chg monday
Chuukese chk monday
Mari chm monday
Chinook Jargon chn sunday
Choctaw cho sunday
Chipewyan chp sunday
Cherokee chr sunday
Cheyenne chy sunday
Chickasaw cic sunday
Kurdish, Sorani ckb saturday
Corsican co monday
Coptic cop saturday
Capiznon cps sunday
Cree cr sunday
Crimean Tatar crh monday
Czech cs monday
Kashubian csb monday
Church Slavic cu monday
Chuvash cv monday
Welsh cy monday
Danish da monday
Dakota dak sunday
Dargwa dar monday
Taita dav sunday
German de monday
Delaware del sunday
Slave den sunday
Dogrib dgr sunday
Dinka din monday
Zarma dje monday
Dogri doi sunday
Lower Sorbian dsb monday
Central Dusun dtp monday
Duala dua monday
Middle Dutch dum monday
Dhivehi dv friday
Jola-Fonyi dyo monday
Dyula dyu monday
Dzongkha dz sunday
Dazaga dzg monday
Embu ebu sunday
Ewe ee monday
Efik efi monday
Emilian egl monday
Ancient Egyptian egy saturday
Ekajuk eka monday
Greek el monday
Elamite elx monday
English en sunday
Middle English enm monday
Esperanto eo monday
Spanish es monday
Central Yupik esu sunday
Estonian et monday
Basque eu monday
Ewondo ewo monday
Extremaduran ext monday
Persian fa saturday
Fang fan monday
Fanti fat monday
Fula ff monday
Finnish fi monday
Filipino fil sunday
Tornedalen Finnish fit monday
Fijian fj monday
Faroese fo monday
Fon fon monday
French fr monday
Cajun French frc sunday
Middle French frm monday
Old French fro monday
Arpitan frp monday
Northern Frisian frr monday
Eastern Frisian frs monday
Friulian fur monday
Western Frisian fy monday
Irish ga monday
Ga gaa monday
Gagauz gag monday
Gan Chinese gan sunday
Gayo gay sunday
Gbaya gba monday
Zoroastrian Dari gbz saturday
Scottish Gaelic gd monday
Geez gez sunday
Gilbertese gil monday
Galician gl monday
Gilaki glk saturday
Middle High German gmh monday
Guarani gn sunday
Old High German goh monday
Goan Konkani gom sunday
Gondi gon sunday
Gorontalo gor sunday
Gothic got monday
Grebo grb monday
Ancient Greek grc monday
Swiss German gsw monday
Gujarati gu sunday
Wayuu guc sunday
Frafra gur monday
Gusii guz sunday
Manx gv monday
Gwichʼin gwi sunday
Hausa ha monday
Haida hai sunday
Hakka Chinese hak sunday
Hawaiian haw sunday
Hebrew he sunday
Hindi hi sunday
Fiji Hindi hif monday
Hiligaynon hil sunday
Hittite hit monday
Hmong hmn sunday
Hiri Motu ho monday
Croatian hr monday
Upper Sorbian hsb monday
Xiang Chinese hsn sunday
Haitian Creole ht monday
Hungarian hu monday
Hupa hup sunday
Armenian hy monday
Herero hz monday
Interlingua ia monday
Iban iba monday
Ibibio ibb monday
Indonesian id sunday
Interlingue ie monday
Igbo ig monday
Liangshan Yi ii sunday
Inupiaq ik sunday
Iloko ilo sunday
Ingush inh monday
Ido io monday
Icelandic is monday
Italian it monday
Inuktitut iu sunday
Ingrian izh monday
Japanese ja sunday
Jamaican Creole English jam sunday
Lojban jbo monday
Ngomba jgo monday
Machame jmc monday
Judeo-Persian jpr sunday
Judeo-Arabic jrb sunday
Jutish jut monday
Javanese jv sunday
Georgian ka monday
Kara-Kalpak kaa monday
Kabyle kab monday
Kachin kac sunday
Jju kaj monday
Kamba kam sunday
Kawi kaw sunday
Kabardian kbd monday
Kanembu kbl monday
Tyap kcg monday
Makonde kde monday
Kabuverdianu kea monday
Kenyang ken monday
Koro kfo monday
Kongo kg monday
Kaingang kgp sunday
Khasi kha sunday
Khotanese kho monday
Koyra Chiini khq monday
Khowar khw sunday
Kikuyu ki sunday
Kirmanjki kiu monday
Kuanyama kj monday
Kazakh kk monday
Kako kkj monday
Kalaallisut kl monday
Kalenjin kln sunday
Khmer km sunday
Kimbundu kmb monday
Kannada kn sunday
Korean ko sunday
Komi-Permyak koi monday
Konkani kok sunday
Kosraean kos monday
Kpelle kpe monday
Kanuri kr monday
Karachay-Balkar krc monday
Krio kri monday
Kinaray-a krj sunday
Karelian krl monday
Kurukh kru sunday
Kashmiri ks sunday
Shambala ksb monday
Bafia ksf monday
Colognian ksh monday
Kurdish ku monday
Kumyk kum monday
Kutenai kut sunday
Komi kv monday
Cornish kw monday
Kyrgyz ky monday
Latin la monday
Ladino lad sunday
Langi lag monday
Western Panjabi lah sunday
Lamba lam monday
Luxembourgish lb monday
Lezghian lez monday
Lingua Franca Nova lfn monday
Ganda lg monday
Limburgish li monday
Ligurian lij monday
Livonian liv monday
Lakota lkt sunday
Lombard lmo monday
Lingala ln monday
Lao lo sunday
Mongo lol monday
Lozi loz monday
Northern Luri lrc saturday
Lithuanian lt monday
Latgalian ltg monday
Luba-Katanga lu monday
Luba-Lulua lua monday
Luiseno lui sunday
Lunda lun monday
Luo luo sunday
Mizo lus sunday
Luyia luy sunday
Latvian lv monday
Literary Chinese lzh sunday
Laz lzz monday
Madurese mad sunday
Mafa maf monday
Magahi mag sunday
Maithili mai sunday
Makasar mak sunday
Mandingo man monday
Masai mas sunday
Maba mde monday
Moksha mdf monday
Maguindanaon mdh sunday
Mandar mdr sunday
Mende men monday
Meru mer sunday
Morisyen mfe monday
Malagasy mg monday
Middle Irish mga monday
Makhuwa-Meetto mgh sunday
Metaʼ mgo monday
Marshallese mh sunday
Māori mi monday
Mi'kmaw mic sunday
Mandaic mid saturday
Minangkabau min sunday
mis monday
Macedonian mk monday
Malayalam ml sunday
Mongolian mn monday
Manchu mnc monday
Manipuri mni sunday
Mohawk moh sunday
Mossi mos monday
Marathi mr sunday
Western Mari mrj monday
Malay ms monday
Maltese mt sunday
Mundang mua monday
Multiple languages mul monday
Muscogee mus sunday
Mirandese mwl sunday
Marwari mwr sunday
Mentawai mwv sunday
Burmese my sunday
Myene mye monday
Erzya myv monday
Mazanderani mzn saturday
Nauru na monday
Min Nan Chinese nan sunday
Neapolitan nap monday
Nama naq monday
Norwegian Bokmål nb monday
North Ndebele nd sunday
Low German nds monday
Nepali ne sunday
Newari new sunday
Ndonga ng monday
Nias nia sunday
Niuean niu monday
Ao Naga njo sunday
Dutch nl monday
Kwasio nmg monday
Norwegian Nynorsk nn monday
Ngiemboon nnh monday
Wancho nnp sunday
Norwegian no monday
Nogai nog monday
Old Norse non monday
Novial nov monday
N’Ko nqo monday
South Ndebele nr sunday
Northern Sotho nso sunday
Nuer nus monday
Navajo nv sunday
Classical Newari nwc sunday
Nyanja ny monday
Nyamwezi nym monday
Nyankole nyn monday
Nyoro nyo monday
Nzima nzi monday
Occitan oc monday
Ojibwa oj sunday
Oromo om sunday
Odia or sunday
Ossetic os monday
Osage osa sunday
Ottoman Turkish ota monday
Old Turkish otk monday
Old Uighur oui monday
Punjabi pa sunday
Pangasinan pag sunday
Pahlavi pal saturday
Pampanga pam sunday
Papiamento pap monday
Palauan pau monday
Picard pcd monday
Nigerian Pidgin pcm monday
Pennsylvania German pdc sunday
Plautdietsch pdt sunday
Old Persian peo saturday
Palatine German pfl monday
Phoenician phn monday
Pali pi sunday
Polish pl monday
Piedmontese pms monday
Pontic pnt monday
Pohnpeian pon monday
Wolastoqey pqm sunday
Prussian prg monday
Old Provençal pro monday
Pashto ps saturday
Portuguese pt sunday
Quechua qu sunday
Kʼicheʼ quc sunday
Chimborazo Highland Quichua qug monday
Rajasthani raj sunday
Rapanui rap monday
Rarotongan rar monday
Rejang rej sunday
Romagnol rgn monday
Rohingya rhg sunday
Riffian rif monday
Romansh rm monday
Rundi rn monday
Romanian ro monday
Rombo rof monday
Romany rom monday
Rotuman rtm monday
Russian ru monday
Rusyn rue monday
Roviana rug monday
Aromanian rup monday
Kinyarwanda rw monday
Rwa rwk monday
Sanskrit sa sunday
Sandawe sad monday
Sakha sah monday
Samaritan Aramaic sam monday
Samburu saq sunday
Sasak sas sunday
Santali sat sunday
Saurashtra saz sunday
Ngambay sba monday
Sangu sbp monday
Sardinian sc monday
Sicilian scn monday
Scots sco monday
Sindhi sd sunday
Sassarese Sardinian sdc monday
Southern Kurdish sdh saturday
Northern Sami se monday
Seneca see sunday
Sena seh sunday
Seri sei sunday
Selkup sel monday
Koyraboro Senni ses monday
Sango sg monday
Old Irish sga monday
Samogitian sgs monday
Tachelhit shi monday
Shan shn sunday
Chadian Arabic shu monday
Sinhala si monday
Sidamo sid sunday
Slovak sk monday
Slovenian sl monday
Lower Silesian sli monday
Selayar sly sunday
Samoan sm sunday
Southern Sami sma monday
Lule Sami smj monday
Inari Sami smn monday
Skolt Sami sms monday
Shona sn sunday
Soninke snk monday
Somali so monday
Sogdien sog monday
Albanian sq monday
Serbian sr monday
Sranan Tongo srn monday
Serer srr monday
Swati ss sunday
Saho ssy monday
Southern Sotho st sunday
Saterland Frisian stq monday
Sundanese su sunday
Sukuma suk monday
Susu sus monday
Sumerian sux monday
Swedish sv monday
Swahili sw monday
Comorian swb monday
Classical Syriac syc monday
Assyrian syr saturday
Silesian szl monday
Tamil ta sunday
Tulu tcy sunday
Telugu te sunday
Timne tem monday
Teso teo monday
Tereno ter sunday
Tetum tet monday
Tajik tg monday
Thai th sunday
Tigrinya ti sunday
Tigre tig monday
Tiv tiv monday
Turkmen tk monday
Tokelau tkl monday
Tsakhur tkr monday
Klingon tlh monday
Tlingit tli sunday
Talysh tly monday
Tamashek tmh monday
Tswana tn sunday
Tongan to monday
Nyasa Tonga tog monday
Tok Pisin tpi monday
Turkish tr monday
Turoyo tru monday
Taroko trv sunday
Tsonga ts sunday
Tsakonian tsd monday
Tsimshian tsi sunday
Tatar tt monday
Muslim Tat ttt monday
Tumbuka tum monday
Tuvalu tvl monday
Twi tw monday
Tasawaq twq monday
Tahitian ty monday
Tuvinian tyv monday
Central Atlas Tamazight tzm monday
Udmurt udm monday
Uyghur ug sunday
Ugaritic uga saturday
Ukrainian uk monday
Umbundu umb monday
Unknown language und sunday
Urdu ur sunday
Uzbek uz monday
Vai vai monday
Venda ve sunday
Venetian vec monday
Veps vep monday
Vietnamese vi monday
West Flemish vls monday
Main-Franconian vmf monday
Makhuwa vmw sunday
Volapük vo monday
Votic vot monday
Võro vro monday
Vunjo vun monday
Walloon wa monday
Walser wae monday
Wolaytta wal sunday
Waray war sunday
Washo was sunday
Warlpiri wbp monday
Wolof wo monday
Shanghainese wuu sunday
Kalmyk xal monday
Xhosa xh sunday
Mingrelian xmf monday
Soga xog monday
Yao yao sunday
Yapese yap monday
Yangben yav monday
Yemba ybb monday
Yiddish yi monday
Yoruba yo monday
Nheengatu yrl sunday
Cantonese yue sunday
Zhuang za sunday
Zapotec zap sunday
Blissymbols zbl monday
Zeelandic zea monday
Zenaga zen monday
Tamazight, Standard Moroccan zgh monday
Chinese zh sunday
Zulu zu sunday
Zuni zun sunday
No linguistic content zxx monday
Zaza zza monday
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment