Skip to content

Commit c3f4c8e

Browse files
committed
update: country data for multiple entries
- Afghanistan: Add missing 'fa' to languages array (issue #183) - Burundi: Update capital from Bujumbura to Gitega (moved in 2019) - Philippines: Add 'tl' (Tagalog) to languages array - Saudi Arabia: Update native name to full official form 'المملكة العربية السعودية' - Cambodia: Correct native name to Khmer script 'កម្ពុជា' - Belarus: Remove stress mark from native name 'Беларусь' (not used in official orthography) All changes verified against Wikipedia, CIA World Factbook, and UN sources. Closes #43, #136, #141, #183
1 parent 4581965 commit c3f4c8e

File tree

11 files changed

+33
-32
lines changed

11 files changed

+33
-32
lines changed

dist/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/countries.csv

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"Code","Name","Native","Phone","Continent","Capital","Currency","Languages"
22
"AD","Andorra","Andorra","376","Europe","Andorra la Vella","EUR","ca"
33
"AE","United Arab Emirates","دولة الإمارات العربية المتحدة","971","Asia","Abu Dhabi","AED","ar"
4-
"AF","Afghanistan","افغانستان","93","Asia","Kabul","AFN","ps,uz,tk"
4+
"AF","Afghanistan","افغانستان","93","Asia","Kabul","AFN","ps,fa,uz,tk"
55
"AG","Antigua and Barbuda","Antigua and Barbuda","1268","North America","Saint John's","XCD","en"
66
"AI","Anguilla","Anguilla","1264","North America","The Valley","XCD","en"
77
"AL","Albania","Shqipëria","355","Europe","Tirana","ALL","sq"
@@ -22,7 +22,7 @@
2222
"BF","Burkina Faso","Burkina Faso","226","Africa","Ouagadougou","XOF","fr,ff"
2323
"BG","Bulgaria","България","359","Europe","Sofia","BGN","bg"
2424
"BH","Bahrain","‏البحرين","973","Asia","Manama","BHD","ar"
25-
"BI","Burundi","Burundi","257","Africa","Bujumbura","BIF","fr,rn"
25+
"BI","Burundi","Burundi","257","Africa","Gitega","BIF","fr,rn"
2626
"BJ","Benin","Bénin","229","Africa","Porto-Novo","XOF","fr"
2727
"BL","Saint Barthelemy","Saint-Barthélemy","590","North America","Gustavia","EUR","fr"
2828
"BM","Bermuda","Bermuda","1441","North America","Hamilton","BMD","en"
@@ -34,22 +34,22 @@
3434
"BT","Bhutan","ʼbrug-yul","975","Asia","Thimphu","BTN,INR","dz"
3535
"BV","Bouvet Island","Bouvetøya","47","Antarctica","","NOK","no,nb,nn"
3636
"BW","Botswana","Botswana","267","Africa","Gaborone","BWP","en,tn"
37-
"BY","Belarus","Белару́сь","375","Europe","Minsk","BYN","be,ru"
37+
"BY","Belarus","Беларусь","375","Europe","Minsk","BYN","be,ru"
3838
"BZ","Belize","Belize","501","North America","Belmopan","BZD","en,es"
3939
"CA","Canada","Canada","1","North America","Ottawa","CAD","en,fr"
4040
"CC","Cocos (Keeling) Islands","Cocos (Keeling) Islands","61","Asia","West Island","AUD","en"
4141
"CD","Democratic Republic of the Congo","République démocratique du Congo","243","Africa","Kinshasa","CDF","fr,ln,kg,sw,lu"
4242
"CF","Central African Republic","Ködörösêse tî Bêafrîka","236","Africa","Bangui","XAF","fr,sg"
4343
"CG","Republic of the Congo","République du Congo","242","Africa","Brazzaville","XAF","fr,ln"
44-
"CH","Switzerland","Schweiz","41","Europe","Bern","CHE,CHF,CHW","de,fr,it"
44+
"CH","Switzerland","Schweiz","41","Europe","Bern","CHF,CHE,CHW","de,fr,it"
4545
"CI","Ivory Coast","Côte d'Ivoire","225","Africa","Yamoussoukro","XOF","fr"
4646
"CK","Cook Islands","Cook Islands","682","Oceania","Avarua","NZD","en"
4747
"CL","Chile","Chile","56","South America","Santiago","CLF,CLP","es"
4848
"CM","Cameroon","Cameroon","237","Africa","Yaoundé","XAF","en,fr"
4949
"CN","China","中国","86","Asia","Beijing","CNY","zh"
5050
"CO","Colombia","Colombia","57","South America","Bogotá","COP","es"
5151
"CR","Costa Rica","Costa Rica","506","North America","San José","CRC","es"
52-
"CU","Cuba","Cuba","53","North America","Havana","CUC,CUP","es"
52+
"CU","Cuba","Cuba","53","North America","Havana","CUP","es"
5353
"CV","Cape Verde","Cabo Verde","238","Africa","Praia","CVE","pt"
5454
"CW","Curacao","Curaçao","5999","North America","Willemstad","ANG","nl,pa,en"
5555
"CX","Christmas Island","Christmas Island","61","Asia","Flying Fish Cove","AUD","en"
@@ -115,7 +115,7 @@
115115
"JP","Japan","日本","81","Asia","Tokyo","JPY","ja"
116116
"KE","Kenya","Kenya","254","Africa","Nairobi","KES","en,sw"
117117
"KG","Kyrgyzstan","Кыргызстан","996","Asia","Bishkek","KGS","ky,ru"
118-
"KH","Cambodia","Kâmpŭchéa","855","Asia","Phnom Penh","KHR","km"
118+
"KH","Cambodia","កម្ពុជា","855","Asia","Phnom Penh","KHR","km"
119119
"KI","Kiribati","Kiribati","686","Oceania","South Tarawa","AUD","en"
120120
"KM","Comoros","Komori","269","Africa","Moroni","KMF","ar,fr"
121121
"KN","Saint Kitts and Nevis","Saint Kitts and Nevis","1869","North America","Basseterre","XCD","en"
@@ -175,7 +175,7 @@
175175
"PE","Peru","Perú","51","South America","Lima","PEN","es"
176176
"PF","French Polynesia","Polynésie française","689","Oceania","Papeetē","XPF","fr"
177177
"PG","Papua New Guinea","Papua Niugini","675","Oceania","Port Moresby","PGK","en"
178-
"PH","Philippines","Pilipinas","63","Asia","Manila","PHP","en"
178+
"PH","Philippines","Pilipinas","63","Asia","Manila","PHP","en,tl"
179179
"PK","Pakistan","Pakistan","92","Asia","Islamabad","PKR","en,ur"
180180
"PL","Poland","Polska","48","Europe","Warsaw","PLN","pl"
181181
"PM","Saint Pierre and Miquelon","Saint-Pierre-et-Miquelon","508","North America","Saint-Pierre","EUR","fr"
@@ -191,7 +191,7 @@
191191
"RS","Serbia","Србија","381","Europe","Belgrade","RSD","sr"
192192
"RU","Russia","Россия","7","Asia","Moscow","RUB","ru"
193193
"RW","Rwanda","Rwanda","250","Africa","Kigali","RWF","rw,en,fr"
194-
"SA","Saudi Arabia","العربية السعودية","966","Asia","Riyadh","SAR","ar"
194+
"SA","Saudi Arabia","المملكة العربية السعودية","966","Asia","Riyadh","SAR","ar"
195195
"SB","Solomon Islands","Solomon Islands","677","Oceania","Honiara","SBD","en"
196196
"SC","Seychelles","Seychelles","248","Africa","Victoria","SCR","fr,en"
197197
"SD","Sudan","السودان","249","Africa","Khartoum","SDG","ar,en"

dist/countries.min.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/data.sql

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ INSERT INTO `languages` (`code`, `name`, `native`, `rtl`) VALUES
126126
('th', 'Thai', 'ไทย / Phasa Thai', '0'),
127127
('ti', 'Tigrinya', 'ትግርኛ', '0'),
128128
('tk', 'Turkmen', 'Туркмен / تركمن', '0'),
129+
('tl', 'Tagalog / Filipino', 'Tagalog', '0'),
129130
('tn', 'Tswana', 'Setswana', '0'),
130131
('to', 'Tonga', 'Lea Faka-Tonga', '0'),
131132
('tr', 'Turkish', 'Türkçe', '0'),
@@ -156,7 +157,7 @@ CREATE TABLE `countries` (
156157
INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capital`, `currency`, `languages`) VALUES
157158
('AD', 'Andorra', 'Andorra', '376', 'EU', 'Andorra la Vella', 'EUR', 'ca'),
158159
('AE', 'United Arab Emirates', 'دولة الإمارات العربية المتحدة', '971', 'AS', 'Abu Dhabi', 'AED', 'ar'),
159-
('AF', 'Afghanistan', 'افغانستان', '93', 'AS', 'Kabul', 'AFN', 'ps,uz,tk'),
160+
('AF', 'Afghanistan', 'افغانستان', '93', 'AS', 'Kabul', 'AFN', 'ps,fa,uz,tk'),
160161
('AG', 'Antigua and Barbuda', 'Antigua and Barbuda', '1268', 'NA', 'Saint John''s', 'XCD', 'en'),
161162
('AI', 'Anguilla', 'Anguilla', '1264', 'NA', 'The Valley', 'XCD', 'en'),
162163
('AL', 'Albania', 'Shqipëria', '355', 'EU', 'Tirana', 'ALL', 'sq'),
@@ -177,7 +178,7 @@ INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capita
177178
('BF', 'Burkina Faso', 'Burkina Faso', '226', 'AF', 'Ouagadougou', 'XOF', 'fr,ff'),
178179
('BG', 'Bulgaria', 'България', '359', 'EU', 'Sofia', 'BGN', 'bg'),
179180
('BH', 'Bahrain', '‏البحرين', '973', 'AS', 'Manama', 'BHD', 'ar'),
180-
('BI', 'Burundi', 'Burundi', '257', 'AF', 'Bujumbura', 'BIF', 'fr,rn'),
181+
('BI', 'Burundi', 'Burundi', '257', 'AF', 'Gitega', 'BIF', 'fr,rn'),
181182
('BJ', 'Benin', 'Bénin', '229', 'AF', 'Porto-Novo', 'XOF', 'fr'),
182183
('BL', 'Saint Barthelemy', 'Saint-Barthélemy', '590', 'NA', 'Gustavia', 'EUR', 'fr'),
183184
('BM', 'Bermuda', 'Bermuda', '1441', 'NA', 'Hamilton', 'BMD', 'en'),
@@ -189,22 +190,22 @@ INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capita
189190
('BT', 'Bhutan', 'ʼbrug-yul', '975', 'AS', 'Thimphu', 'BTN,INR', 'dz'),
190191
('BV', 'Bouvet Island', 'Bouvetøya', '47', 'AN', '', 'NOK', 'no,nb,nn'),
191192
('BW', 'Botswana', 'Botswana', '267', 'AF', 'Gaborone', 'BWP', 'en,tn'),
192-
('BY', 'Belarus', 'Белару́сь', '375', 'EU', 'Minsk', 'BYN', 'be,ru'),
193+
('BY', 'Belarus', 'Беларусь', '375', 'EU', 'Minsk', 'BYN', 'be,ru'),
193194
('BZ', 'Belize', 'Belize', '501', 'NA', 'Belmopan', 'BZD', 'en,es'),
194195
('CA', 'Canada', 'Canada', '1', 'NA', 'Ottawa', 'CAD', 'en,fr'),
195196
('CC', 'Cocos (Keeling) Islands', 'Cocos (Keeling) Islands', '61', 'AS', 'West Island', 'AUD', 'en'),
196197
('CD', 'Democratic Republic of the Congo', 'République démocratique du Congo', '243', 'AF', 'Kinshasa', 'CDF', 'fr,ln,kg,sw,lu'),
197198
('CF', 'Central African Republic', 'Ködörösêse tî Bêafrîka', '236', 'AF', 'Bangui', 'XAF', 'fr,sg'),
198199
('CG', 'Republic of the Congo', 'République du Congo', '242', 'AF', 'Brazzaville', 'XAF', 'fr,ln'),
199-
('CH', 'Switzerland', 'Schweiz', '41', 'EU', 'Bern', 'CHE,CHF,CHW', 'de,fr,it'),
200+
('CH', 'Switzerland', 'Schweiz', '41', 'EU', 'Bern', 'CHF,CHE,CHW', 'de,fr,it'),
200201
('CI', 'Ivory Coast', 'Côte d''Ivoire', '225', 'AF', 'Yamoussoukro', 'XOF', 'fr'),
201202
('CK', 'Cook Islands', 'Cook Islands', '682', 'OC', 'Avarua', 'NZD', 'en'),
202203
('CL', 'Chile', 'Chile', '56', 'SA', 'Santiago', 'CLF,CLP', 'es'),
203204
('CM', 'Cameroon', 'Cameroon', '237', 'AF', 'Yaoundé', 'XAF', 'en,fr'),
204205
('CN', 'China', '中国', '86', 'AS', 'Beijing', 'CNY', 'zh'),
205206
('CO', 'Colombia', 'Colombia', '57', 'SA', 'Bogotá', 'COP', 'es'),
206207
('CR', 'Costa Rica', 'Costa Rica', '506', 'NA', 'San José', 'CRC', 'es'),
207-
('CU', 'Cuba', 'Cuba', '53', 'NA', 'Havana', 'CUC,CUP', 'es'),
208+
('CU', 'Cuba', 'Cuba', '53', 'NA', 'Havana', 'CUP', 'es'),
208209
('CV', 'Cape Verde', 'Cabo Verde', '238', 'AF', 'Praia', 'CVE', 'pt'),
209210
('CW', 'Curacao', 'Curaçao', '5999', 'NA', 'Willemstad', 'ANG', 'nl,pa,en'),
210211
('CX', 'Christmas Island', 'Christmas Island', '61', 'AS', 'Flying Fish Cove', 'AUD', 'en'),
@@ -270,7 +271,7 @@ INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capita
270271
('JP', 'Japan', '日本', '81', 'AS', 'Tokyo', 'JPY', 'ja'),
271272
('KE', 'Kenya', 'Kenya', '254', 'AF', 'Nairobi', 'KES', 'en,sw'),
272273
('KG', 'Kyrgyzstan', 'Кыргызстан', '996', 'AS', 'Bishkek', 'KGS', 'ky,ru'),
273-
('KH', 'Cambodia', 'Kâmpŭchéa', '855', 'AS', 'Phnom Penh', 'KHR', 'km'),
274+
('KH', 'Cambodia', 'កម្ពុជា', '855', 'AS', 'Phnom Penh', 'KHR', 'km'),
274275
('KI', 'Kiribati', 'Kiribati', '686', 'OC', 'South Tarawa', 'AUD', 'en'),
275276
('KM', 'Comoros', 'Komori', '269', 'AF', 'Moroni', 'KMF', 'ar,fr'),
276277
('KN', 'Saint Kitts and Nevis', 'Saint Kitts and Nevis', '1869', 'NA', 'Basseterre', 'XCD', 'en'),
@@ -330,7 +331,7 @@ INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capita
330331
('PE', 'Peru', 'Perú', '51', 'SA', 'Lima', 'PEN', 'es'),
331332
('PF', 'French Polynesia', 'Polynésie française', '689', 'OC', 'Papeetē', 'XPF', 'fr'),
332333
('PG', 'Papua New Guinea', 'Papua Niugini', '675', 'OC', 'Port Moresby', 'PGK', 'en'),
333-
('PH', 'Philippines', 'Pilipinas', '63', 'AS', 'Manila', 'PHP', 'en'),
334+
('PH', 'Philippines', 'Pilipinas', '63', 'AS', 'Manila', 'PHP', 'en,tl'),
334335
('PK', 'Pakistan', 'Pakistan', '92', 'AS', 'Islamabad', 'PKR', 'en,ur'),
335336
('PL', 'Poland', 'Polska', '48', 'EU', 'Warsaw', 'PLN', 'pl'),
336337
('PM', 'Saint Pierre and Miquelon', 'Saint-Pierre-et-Miquelon', '508', 'NA', 'Saint-Pierre', 'EUR', 'fr'),
@@ -346,7 +347,7 @@ INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capita
346347
('RS', 'Serbia', 'Србија', '381', 'EU', 'Belgrade', 'RSD', 'sr'),
347348
('RU', 'Russia', 'Россия', '7', 'AS', 'Moscow', 'RUB', 'ru'),
348349
('RW', 'Rwanda', 'Rwanda', '250', 'AF', 'Kigali', 'RWF', 'rw,en,fr'),
349-
('SA', 'Saudi Arabia', 'العربية السعودية', '966', 'AS', 'Riyadh', 'SAR', 'ar'),
350+
('SA', 'Saudi Arabia', 'المملكة العربية السعودية', '966', 'AS', 'Riyadh', 'SAR', 'ar'),
350351
('SB', 'Solomon Islands', 'Solomon Islands', '677', 'OC', 'Honiara', 'SBD', 'en'),
351352
('SC', 'Seychelles', 'Seychelles', '248', 'AF', 'Victoria', 'SCR', 'fr,en'),
352353
('SD', 'Sudan', 'السودان', '249', 'AF', 'Khartoum', 'SDG', 'ar,en'),

dist/index.iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)