File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11# Default country code.
22default_code = "XX"
33
4- # Mapping of country names to alpha-2 codes.
4+ # Mapping of country names to alpha-2 codes according to
5+ # https://en.wikipedia.org/wiki/ISO_3166-1.
6+ # As a reference see also https://github.com/TakahikoKawasaki/nv-i18n (in Java)
57is_3166_1 = {
68 "Afghanistan" : "AF" ,
79 "Åland Islands" : "AX" ,
122124 "Kiribati" : "KI" ,
123125 "Korea, Democratic People's Republic of" : "KP" ,
124126 "Korea, Republic of" : "KR" ,
125- # Introducing Kosovo may be controversial. I guess we need to bite the bullet.
126- "Kosovo" : "XK" ,
127+ "Kosovo, Republic of" : "XK" ,
127128 "Kuwait" : "KW" ,
128129 "Kyrgyzstan" : "KG" ,
129130 "Lao People's Democratic Republic" : "LA" ,
218219 "Sudan" : "SD" ,
219220 "Suriname" : "SR" ,
220221 "Svalbard and Jan Mayen" : "SJ" ,
221- "Swaziland " : "SZ" ,
222+ "Eswatini " : "SZ" , # previous name "Swaziland"
222223 "Sweden" : "SE" ,
223224 "Switzerland" : "CH" ,
224225 "Syrian Arab Republic" : "SY" ,
340341 "Deutschland" : "Germany" ,
341342 "The Bahamas" : "Bahamas" ,
342343 "The Gambia" : "Gambia" ,
344+ "Kosovo" : "Kosovo, Republic of" ,
345+ "Swaziland" : "Eswatini" ,
343346 # "Others" has no mapping, i.e. the default val is used
344347 # "Cruise Ship" has no mapping, i.e. the default val is used
345348}
You can’t perform that action at this time.
0 commit comments