Skip to content

Commit 877348b

Browse files
author
ExpDev07
committed
Added new country codes and changed synonyms to match with JSU's ones.
1 parent 91f64b2 commit 877348b

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

app/utils/countrycodes.py

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -257,20 +257,28 @@
257257
# Mapping of alternative names, spelling, typos to the names of countries used
258258
# by the ISO 3166-1 norm
259259
synonyms = {
260-
"Mainland China" : "China",
261-
"Czechia" : "Czech Republic",
262-
"South Korea" : "Korea, Republic of",
263-
"Taiwan" : "Taiwan, Province of China",
264-
"US" : "United States",
260+
"Mainland China" : "China",
261+
"Czechia" : "Czech Republic",
262+
"Channel Islands" : "United Kingdom",
263+
"Republic of Korea" : "Korea, Republic of",
264+
"Republic of Moldova" : "Moldova, Republic of",
265+
"Taiwan" : "Taiwan, Province of China",
266+
"US" : "United States",
265267
# TODO Macau is probably a typo. Report it to CSSEGISandData/COVID-19
266-
"Macau" : "Macao",
267-
"Vietnam" : "Viet Nam",
268-
"UK" : "United Kingdom",
269-
"Russia" : "Russian Federation",
270-
"Iran" : "Iran, Islamic Republic of",
271-
"Saint Barthelemy" : "Saint Barthélemy",
272-
"Palestine" : "Palestine, State of",
273-
"Vatican City" : "Holy See (Vatican City State)",
268+
"Macau" : "Macao",
269+
"Macao SAR" : "Macao",
270+
"Vietnam" : "Viet Nam",
271+
"UK" : "United Kingdom",
272+
"Russia" : "Russian Federation",
273+
"Iran (Islamic Republic of)" : "Iran, Islamic Republic of",
274+
"Saint Barthelemy" : "Saint Barthélemy",
275+
"Saint Martin" : "Saint Martin (French part)",
276+
"Palestine" : "Palestine, State of",
277+
"Holy See" : "Holy See (Vatican City State)",
278+
"Brunei" : "Brunei Darussalam",
279+
"Hong Kong SAR" : "Hong Kong",
280+
"Taipei and environs" : "Taiwan, Province of China",
281+
"occupied Palestinian territory" : "Palestine, State of",
274282
# "Others" has no mapping
275283
}
276284

0 commit comments

Comments
 (0)