cozy-client 46.10.1 → 47.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,167 @@
1
+ import {
2
+ checkCountryCode,
3
+ getAllCountries,
4
+ getAllCountryNames,
5
+ getAllNationalities,
6
+ getCountryNameByCodeISO,
7
+ getEmojiByCountry
8
+ } from './countries'
9
+ import logger from '../../logger'
10
+
11
+ describe('checkCountryCode', () => {
12
+ it('should return true for valid country codes', () => {
13
+ expect(checkCountryCode('FR')).toBe(true)
14
+ expect(checkCountryCode('fr')).toBe(true)
15
+ expect(checkCountryCode('FRA')).toBe(true)
16
+ expect(checkCountryCode('fra')).toBe(true)
17
+ expect(checkCountryCode('US')).toBe(true)
18
+ expect(checkCountryCode('us')).toBe(true)
19
+ })
20
+
21
+ it('should return false for invalid country codes', () => {
22
+ expect(checkCountryCode(undefined)).toBe(false)
23
+ expect(checkCountryCode(null)).toBe(false)
24
+ expect(checkCountryCode('')).toBe(false)
25
+ })
26
+ })
27
+
28
+ describe('getCountryNameByCodeISO', () => {
29
+ it('should return the country name for valid country codes', () => {
30
+ expect(getCountryNameByCodeISO('FR')).toBe('France')
31
+ expect(getCountryNameByCodeISO('fr')).toBe('France')
32
+ expect(getCountryNameByCodeISO('FRA')).toBe('France')
33
+ expect(getCountryNameByCodeISO('fra')).toBe('France')
34
+ expect(getCountryNameByCodeISO('250')).toBe('France')
35
+ expect(getCountryNameByCodeISO('us', { lang: 'fr' })).toBe(
36
+ "États-Unis d'Amérique"
37
+ )
38
+ })
39
+
40
+ it('should return null for invalid country codes', () => {
41
+ expect(getCountryNameByCodeISO(undefined)).toBe(null)
42
+ expect(getCountryNameByCodeISO(null)).toBe(null)
43
+ expect(getCountryNameByCodeISO('')).toBe(null)
44
+ expect(getCountryNameByCodeISO('Mercure')).toBe(null)
45
+ expect(getCountryNameByCodeISO('1234')).toBe(null)
46
+ })
47
+ })
48
+
49
+ describe('getAllCountries', () => {
50
+ it('should return array of country names', () => {
51
+ const countries = getAllCountries()
52
+ expect(countries).toEqual(
53
+ expect.arrayContaining([
54
+ {
55
+ code2: 'FR',
56
+ code3: 'FRA',
57
+ number: '250',
58
+ name: 'France',
59
+ nationality: 'French'
60
+ },
61
+ {
62
+ code2: 'US',
63
+ code3: 'USA',
64
+ number: '840',
65
+ name: 'United States of America',
66
+ nationality: 'American'
67
+ }
68
+ ])
69
+ )
70
+ })
71
+
72
+ it('should return array of country names in spécific lang', () => {
73
+ const countries = getAllCountries('fr')
74
+ expect(countries).toEqual(
75
+ expect.arrayContaining([
76
+ {
77
+ code2: 'FR',
78
+ code3: 'FRA',
79
+ number: '250',
80
+ name: 'France',
81
+ nationality: 'Français'
82
+ },
83
+ {
84
+ code2: 'US',
85
+ code3: 'USA',
86
+ number: '840',
87
+ name: "États-Unis d'Amérique",
88
+ nationality: 'Américain'
89
+ }
90
+ ])
91
+ )
92
+ })
93
+ })
94
+
95
+ describe('getAllCountryNames', () => {
96
+ it('should return array of country names', () => {
97
+ const countryNames = getAllCountryNames()
98
+ expect(countryNames).toEqual(
99
+ expect.arrayContaining(['Andorra', 'United States of America'])
100
+ )
101
+ })
102
+
103
+ it('should return array of country names in spécific lang', () => {
104
+ const countryNames = getAllCountryNames('fr')
105
+ expect(countryNames).toEqual(
106
+ expect.arrayContaining(['Andorre', "États-Unis d'Amérique"])
107
+ )
108
+ })
109
+ })
110
+
111
+ describe('getAllNationalities', () => {
112
+ it('should return array of country names', () => {
113
+ const nationalities = getAllNationalities()
114
+ expect(nationalities).toEqual(
115
+ expect.arrayContaining(['French', 'American'])
116
+ )
117
+ })
118
+
119
+ it('should return array of country names in spécific lang', () => {
120
+ const nationalities = getAllNationalities('fr')
121
+ expect(nationalities).toEqual(
122
+ expect.arrayContaining(['Français', 'Américain'])
123
+ )
124
+ })
125
+ })
126
+
127
+ describe('getEmojiByCountry', () => {
128
+ beforeEach(() => {
129
+ jest.spyOn(logger, 'error').mockImplementation(() => jest.fn())
130
+ })
131
+ afterEach(() => {
132
+ logger.error.mockRestore()
133
+ })
134
+
135
+ it('should return French flag', () => {
136
+ const res = getEmojiByCountry('fr')
137
+
138
+ expect(res).toBe('🇫🇷')
139
+ })
140
+
141
+ it('should return Belgian flag', () => {
142
+ const res = getEmojiByCountry('be')
143
+
144
+ expect(res).toBe('🇧🇪')
145
+ })
146
+
147
+ it('should return "null" if the country is not ISO 3166-1 alpha-2 string', () => {
148
+ const res = getEmojiByCountry('fra')
149
+
150
+ expect(logger.error).toHaveBeenCalledTimes(1)
151
+ expect(res).toBe(null)
152
+ })
153
+
154
+ it('should return "null" if the country is undefined', () => {
155
+ const res = getEmojiByCountry(undefined)
156
+
157
+ expect(logger.error).not.toHaveBeenCalled()
158
+ expect(res).toBe(null)
159
+ })
160
+
161
+ it('should return "null" if the country is ISO 3166-1 alpha-2 string but not found in COUNTRIES_ISO list', () => {
162
+ const res = getEmojiByCountry('aa')
163
+
164
+ expect(logger.error).toHaveBeenCalledTimes(1)
165
+ expect(res).toBe(null)
166
+ })
167
+ })
@@ -0,0 +1,496 @@
1
+ {
2
+ "nationalities": {
3
+ "AD": "Andorran",
4
+ "AE": "Emirian",
5
+ "AF": "Afghan",
6
+ "AG": "Antiguans",
7
+ "AL": "Albanian",
8
+ "AM": "Armenian",
9
+ "AO": "Angolan",
10
+ "AR": "Argentinean",
11
+ "AT": "Austrian",
12
+ "AU": "Australian",
13
+ "AX": "Åland Islands",
14
+ "AZ": "Azerbaijani",
15
+ "BA": "Bosnian - Herzegovinian",
16
+ "BB": "Barbadian",
17
+ "BD": "Bangladeshi",
18
+ "BE": "Belgian",
19
+ "BF": "Burkinabe",
20
+ "BG": "Bulgarian",
21
+ "BH": "Bahraini",
22
+ "BI": "Burundian",
23
+ "BJ": "Beninese",
24
+ "BL": "Saint Barthélemy",
25
+ "BM": "Bermuda",
26
+ "BN": "Bruneian",
27
+ "BO": "Bolivian",
28
+ "BQ": "Bonaire, Sint Eustatius and Saba",
29
+ "BR": "Brazilian",
30
+ "BS": "Bahamian",
31
+ "BT": "Bhutanese",
32
+ "BV": "Bouvet Island",
33
+ "BW": "Batswana",
34
+ "BY": "Belarusian",
35
+ "BZ": "Belizean",
36
+ "CA": "Canadian",
37
+ "CC": "Cocos (Keeling) Islands",
38
+ "CD": "Congolese (Democratic Republic of the Congo)",
39
+ "CF": "Central African",
40
+ "CG": "Congolese (Republic of the Congo)",
41
+ "CH": "Swiss",
42
+ "CI": "Ivorian",
43
+ "CK": "Cook Islands",
44
+ "CL": "Chilean",
45
+ "CM": "Cameroonian",
46
+ "CN": "Chinese",
47
+ "CO": "Colombian",
48
+ "CR": "Costa Rican",
49
+ "CU": "Cuban",
50
+ "CV": "Cape Verdean",
51
+ "CW": "Curaçao",
52
+ "CX": "Christmas Island",
53
+ "CY": "Cypriot",
54
+ "CZ": "Czech",
55
+ "DE": "German",
56
+ "DJ": "Djibouti",
57
+ "DK": "Danish",
58
+ "DM": "Dominican (Dominica)",
59
+ "DO": "Dominican (Dominican Republic)",
60
+ "DZ": "Algerian",
61
+ "EC": "Ecuadorean",
62
+ "EE": "Estonian",
63
+ "EG": "Egyptian",
64
+ "EH": "Western Sahara",
65
+ "ER": "Eritrean",
66
+ "ES": "Spanish",
67
+ "ET": "Ethiopian",
68
+ "FI": "Finnish",
69
+ "FJ": "Fijian",
70
+ "FK": "Falkland Islands (Malvinas)",
71
+ "FM": "Micronesian",
72
+ "FO": "Faroe Islands",
73
+ "FR": "French",
74
+ "GA": "Gabonese",
75
+ "GB": "British",
76
+ "GD": "Grenadian",
77
+ "GE": "Georgian",
78
+ "GF": "French (French Guiana)",
79
+ "GG": "Guernsey",
80
+ "GH": "Ghanaian",
81
+ "GI": "Gibraltar",
82
+ "GL": "Greenland",
83
+ "GM": "Gambian",
84
+ "GN": "Guinean",
85
+ "GP": "Guadeloupe",
86
+ "GQ": "Equatorial Guinean",
87
+ "GR": "Greek",
88
+ "GS": "South Georgia and the South Sandwich Islands",
89
+ "GT": "Guatemalan",
90
+ "GU": "Guam",
91
+ "GW": "Guinea-Bissauan",
92
+ "GY": "Guyanese",
93
+ "HK": "Hong Kong",
94
+ "HM": "Heard Island and Mcdonald Islands",
95
+ "HN": "Honduran",
96
+ "HR": "Croatian",
97
+ "HT": "Haitian",
98
+ "HU": "Hungarian",
99
+ "ID": "Indonesian",
100
+ "IE": "Irish",
101
+ "IL": "Israeli",
102
+ "IM": "Manx",
103
+ "IN": "Indian",
104
+ "IO": "British Indian Ocean Territory",
105
+ "IQ": "Iraqi",
106
+ "IR": "Iranian",
107
+ "IS": "Icelandic",
108
+ "IT": "Italian",
109
+ "JE": "Jersey",
110
+ "JM": "Jamaican",
111
+ "JO": "Jordanian",
112
+ "JP": "Japanese",
113
+ "KE": "Kenyan",
114
+ "KG": "Kyrgyz",
115
+ "KH": "Cambodian",
116
+ "KI": "I-Kiribati",
117
+ "KM": "Comoran",
118
+ "KN": "Kittian and Nevisian",
119
+ "KP": "North Korean",
120
+ "KR": "South Korean",
121
+ "KW": "Kuwaiti",
122
+ "KY": "Cayman Islands",
123
+ "KZ": "Kazakhstani",
124
+ "LA": "Laotian",
125
+ "LB": "Lebanese",
126
+ "LC": "Saint Lucian",
127
+ "LI": "Liechtensteiner",
128
+ "LK": "Sri Lankan",
129
+ "LR": "Liberian",
130
+ "LS": "Mosotho",
131
+ "LT": "Lithuanian",
132
+ "LU": "Luxembourger",
133
+ "LV": "Latvian",
134
+ "LY": "Libyan",
135
+ "MA": "Moroccan",
136
+ "MC": "Monacan",
137
+ "MD": "Moldovan",
138
+ "ME": "Montenegrin",
139
+ "MF": "Saint Martin (French part)",
140
+ "MG": "Malagasy",
141
+ "MH": "Marshallese",
142
+ "MK": "Macedonian",
143
+ "ML": "Malian",
144
+ "MM": "Burmese",
145
+ "MN": "Mongolian",
146
+ "MO": "Macao",
147
+ "MP": "Northern Mariana Islands",
148
+ "MQ": "Martinique",
149
+ "MR": "Mauritanian",
150
+ "MS": "Montserrat",
151
+ "MT": "Maltese",
152
+ "MU": "Mauritian",
153
+ "MV": "Maldivan",
154
+ "MW": "Malawian",
155
+ "MX": "Mexican",
156
+ "MY": "Malaysian",
157
+ "MZ": "Mozambican",
158
+ "NA": "Namibian",
159
+ "NC": "New Caledonia",
160
+ "NE": "Nigerien",
161
+ "NF": "Norfolk Island",
162
+ "NG": "Nigerian",
163
+ "NI": "Nicaraguan",
164
+ "NL": "Dutch",
165
+ "NO": "Norwegian",
166
+ "NP": "Nepalese",
167
+ "NR": "Nauruan",
168
+ "NU": "Niue",
169
+ "NZ": "New Zealander",
170
+ "OM": "Omani",
171
+ "PA": "Panamanian",
172
+ "PE": "Peruvian",
173
+ "PF": "French (French Polynesia)",
174
+ "PG": "Papua New Guinea",
175
+ "PH": "Filipino",
176
+ "PK": "Pakistani",
177
+ "PL": "Polish",
178
+ "PM": "Saint Pierre and Miquelon",
179
+ "PN": "Pitcairn",
180
+ "PR": "Puerto Rico",
181
+ "PS": "Palestinian Territory, Occupied",
182
+ "PT": "Portuguese",
183
+ "PW": "Palauan",
184
+ "PY": "Paraguayan",
185
+ "QA": "Qatari",
186
+ "RE": "Reunion",
187
+ "RO": "Romanian",
188
+ "RS": "Serbian",
189
+ "RU": "Russian",
190
+ "RW": "Rwandan",
191
+ "SA": "Saudi",
192
+ "SB": "Solomon Islander",
193
+ "SC": "Seychellois",
194
+ "SD": "Sudanese",
195
+ "SE": "Swedish",
196
+ "SG": "Singaporean",
197
+ "SH": "Saint Helena",
198
+ "SI": "Slovenian",
199
+ "SJ": "Svalbard and Jan Mayen",
200
+ "SK": "Slovakian",
201
+ "SL": "Sierra Leonean",
202
+ "SM": "San Marinese",
203
+ "SN": "Senegalese",
204
+ "SO": "Somali",
205
+ "SR": "Surinamer",
206
+ "SS": "South Sudan",
207
+ "ST": "Sao Tomean",
208
+ "SV": "Salvadoran",
209
+ "SX": "Sint Maarten (Dutch part)",
210
+ "SY": "Syrian",
211
+ "SZ": "Swazi",
212
+ "TC": "Turks and Caicos Islands",
213
+ "TD": "Chadian",
214
+ "TF": "French (French Southern Territories)",
215
+ "TG": "Togolese",
216
+ "TH": "Thai",
217
+ "TJ": "Tajik",
218
+ "TK": "Tokelau",
219
+ "TL": "East Timorese",
220
+ "TM": "Turkmenistan",
221
+ "TN": "Tunisian",
222
+ "TO": "Tongan",
223
+ "TR": "Turkish",
224
+ "TT": "Trinidadian or Tobagonian",
225
+ "TV": "Tuvaluan",
226
+ "TW": "Taiwanese",
227
+ "TZ": "Tanzanian",
228
+ "UA": "Ukrainian",
229
+ "UG": "Ugandan",
230
+ "UM": "United States Minor Outlying Islands",
231
+ "US": "American",
232
+ "UY": "Uruguayan",
233
+ "UZ": "Uzbekistani",
234
+ "VA": "Holy See (Vatican City State)",
235
+ "VC": "Saint Vincent and the Grenadines",
236
+ "VE": "Venezuelan",
237
+ "VG": "Virgin Islands, British",
238
+ "VI": "Virgin Islands, U.S.",
239
+ "VN": "Vietnamese",
240
+ "VU": "Vanuatu",
241
+ "WF": "Welsh",
242
+ "WS": "Samoan",
243
+ "YE": "Yemenite",
244
+ "YT": "Mayotte",
245
+ "ZA": "South African",
246
+ "ZM": "Zambian",
247
+ "ZW": "Zimbabwean"
248
+ },
249
+ "countries": {
250
+ "AD": "Andorra",
251
+ "AE": "United Arab Emirates",
252
+ "AF": "Afghanistan",
253
+ "AG": "Antigua and Barbuda",
254
+ "AL": "Albania",
255
+ "AM": "Armenia",
256
+ "AO": "Angola",
257
+ "AR": "Argentina",
258
+ "AT": "Austria",
259
+ "AU": "Australia",
260
+ "AX": "Åland Islands",
261
+ "AZ": "Azerbaijan",
262
+ "BA": "Bosnia and Herzegovina",
263
+ "BB": "Barbados",
264
+ "BD": "Bangladesh",
265
+ "BE": "Belgium",
266
+ "BF": "Burkina Faso",
267
+ "BG": "Bulgaria",
268
+ "BH": "Bahrain",
269
+ "BI": "Burundi",
270
+ "BJ": "Benin",
271
+ "BL": "Saint Barthélemy",
272
+ "BM": "Bermuda",
273
+ "BN": "Brunei Darussalam",
274
+ "BO": "Bolivia",
275
+ "BQ": "Bonaire, Sint Eustatius and Saba",
276
+ "BR": "Brazil",
277
+ "BS": "Bahamas",
278
+ "BT": "Bhutan",
279
+ "BV": "Bouvet Island",
280
+ "BW": "Botswana",
281
+ "BY": "Belarus",
282
+ "BZ": "Belize",
283
+ "CA": "Canada",
284
+ "CC": "Cocos (Keeling) Islands",
285
+ "CD": "Democratic Republic of the Congo",
286
+ "CF": "Central African Republic",
287
+ "CG": "Republic of the Congo",
288
+ "CH": "Switzerland",
289
+ "CI": "Ivory Coast",
290
+ "CK": "Cook Islands",
291
+ "CL": "Chile",
292
+ "CM": "Cameroon",
293
+ "CN": "People's Republic of China",
294
+ "CO": "Colombia",
295
+ "CR": "Costa Rica",
296
+ "CU": "Cuba",
297
+ "CV": "Cape Verde",
298
+ "CW": "Curaçao",
299
+ "CX": "Christmas Island",
300
+ "CY": "Cyprus",
301
+ "CZ": "Czech Republic",
302
+ "DE": "Germany",
303
+ "DJ": "Djibouti",
304
+ "DK": "Denmark",
305
+ "DM": "Dominica",
306
+ "DO": "Dominican Republic",
307
+ "DZ": "Algeria",
308
+ "EC": "Ecuador",
309
+ "EE": "Estonia",
310
+ "EG": "Egypt",
311
+ "EH": "Western Sahara",
312
+ "ER": "Eritrea",
313
+ "ES": "Spain",
314
+ "ET": "Ethiopia",
315
+ "FI": "Finland",
316
+ "FJ": "Fiji",
317
+ "FK": "Falkland Islands (Malvinas)",
318
+ "FM": "Micronesia, Federated States of",
319
+ "FO": "Faroe Islands",
320
+ "FR": "France",
321
+ "GA": "Gabon",
322
+ "GB": "United Kingdom",
323
+ "GD": "Grenada",
324
+ "GE": "Georgia",
325
+ "GF": "French Guiana",
326
+ "GG": "Guernsey",
327
+ "GH": "Ghana",
328
+ "GI": "Gibraltar",
329
+ "GL": "Greenland",
330
+ "GM": "Gambia",
331
+ "GN": "Guinea",
332
+ "GP": "Guadeloupe",
333
+ "GQ": "Equatorial Guinea",
334
+ "GR": "Greece",
335
+ "GS": "South Georgia and the South Sandwich Islands",
336
+ "GT": "Guatemala",
337
+ "GU": "Guam",
338
+ "GW": "Guinea-Bissau",
339
+ "GY": "Guyana",
340
+ "HK": "Hong Kong",
341
+ "HM": "Heard Island and McDonald Islands",
342
+ "HN": "Honduras",
343
+ "HR": "Croatia",
344
+ "HT": "Haiti",
345
+ "HU": "Hungary",
346
+ "ID": "Indonesia",
347
+ "IE": "Ireland",
348
+ "IL": "Israel",
349
+ "IM": "Isle of Man",
350
+ "IN": "India",
351
+ "IO": "British Indian Ocean Territory",
352
+ "IQ": "Iraq",
353
+ "IR": "Iran",
354
+ "IS": "Iceland",
355
+ "IT": "Italy",
356
+ "JE": "Jersey",
357
+ "JM": "Jamaica",
358
+ "JO": "Jordan",
359
+ "JP": "Japan",
360
+ "KE": "Kenya",
361
+ "KG": "Kyrgyzstan",
362
+ "KH": "Cambodia",
363
+ "KI": "Kiribati",
364
+ "KM": "Comoros",
365
+ "KN": "Saint Kitts and Nevis",
366
+ "KP": "North Korea",
367
+ "KR": "South Korea",
368
+ "KW": "Kuwait",
369
+ "KY": "Cayman Islands",
370
+ "KZ": "Kazakhstan",
371
+ "LA": "Lao People's Democratic Republic",
372
+ "LB": "Lebanon",
373
+ "LC": "Saint Lucia",
374
+ "LI": "Liechtenstein",
375
+ "LK": "Sri Lanka",
376
+ "LR": "Liberia",
377
+ "LS": "Lesotho",
378
+ "LT": "Lithuania",
379
+ "LU": "Luxembourg",
380
+ "LV": "Latvia",
381
+ "LY": "Libya",
382
+ "MA": "Morocco",
383
+ "MC": "Monaco",
384
+ "MD": "Moldova, Republic of",
385
+ "ME": "Montenegro",
386
+ "MF": "Saint Martin (French part)",
387
+ "MG": "Madagascar",
388
+ "MH": "Marshall Islands",
389
+ "MK": "North Macedonia",
390
+ "ML": "Mali",
391
+ "MM": "Myanmar",
392
+ "MN": "Mongolia",
393
+ "MO": "Macao",
394
+ "MP": "Northern Mariana Islands",
395
+ "MQ": "Martinique",
396
+ "MR": "Mauritania",
397
+ "MS": "Montserrat",
398
+ "MT": "Malta",
399
+ "MU": "Mauritius",
400
+ "MV": "Maldives",
401
+ "MW": "Malawi",
402
+ "MX": "Mexico",
403
+ "MY": "Malaysia",
404
+ "MZ": "Mozambique",
405
+ "NA": "Namibia",
406
+ "NC": "New Caledonia",
407
+ "NE": "Niger",
408
+ "NF": "Norfolk Island",
409
+ "NG": "Nigeria",
410
+ "NI": "Nicaragua",
411
+ "NL": "Netherlands",
412
+ "NO": "Norway",
413
+ "NP": "Nepal",
414
+ "NR": "Nauru",
415
+ "NU": "Niue",
416
+ "NZ": "New Zealand",
417
+ "OM": "Oman",
418
+ "PA": "Panama",
419
+ "PE": "Peru",
420
+ "PF": "French Polynesia",
421
+ "PG": "Papua New Guinea",
422
+ "PH": "Philippines",
423
+ "PK": "Pakistan",
424
+ "PL": "Poland",
425
+ "PM": "Saint Pierre and Miquelon",
426
+ "PN": "Pitcairn Islands",
427
+ "PR": "Puerto Rico",
428
+ "PS": "Palestine",
429
+ "PT": "Portugal",
430
+ "PW": "Palau",
431
+ "PY": "Paraguay",
432
+ "QA": "Qatar",
433
+ "RE": "Reunion",
434
+ "RO": "Romania",
435
+ "RS": "Serbia",
436
+ "RU": "Russia",
437
+ "RW": "Rwanda",
438
+ "SA": "Saudi Arabia",
439
+ "SB": "Solomon Islands",
440
+ "SC": "Seychelles",
441
+ "SD": "Sudan",
442
+ "SE": "Sweden",
443
+ "SG": "Singapore",
444
+ "SH": "Saint Helena",
445
+ "SI": "Slovenia",
446
+ "SJ": "Svalbard and Jan Mayen",
447
+ "SK": "Slovakia",
448
+ "SL": "Sierra Leone",
449
+ "SM": "San Marino",
450
+ "SN": "Senegal",
451
+ "SO": "Somalia",
452
+ "SR": "Suriname",
453
+ "SS": "South Sudan",
454
+ "ST": "Sao Tome and Principe",
455
+ "SV": "El Salvador",
456
+ "SX": "Sint Maarten (Dutch part)",
457
+ "SY": "Syrian Arab Republic",
458
+ "SZ": "Eswatini",
459
+ "TC": "Turks and Caicos Islands",
460
+ "TD": "Chad",
461
+ "TF": "French Southern Territories",
462
+ "TG": "Togo",
463
+ "TH": "Thailand",
464
+ "TJ": "Tajikistan",
465
+ "TK": "Tokelau",
466
+ "TL": "Timor-Leste",
467
+ "TM": "Turkmenistan",
468
+ "TN": "Tunisia",
469
+ "TO": "Tonga",
470
+ "TR": "Turkey",
471
+ "TT": "Trinidad and Tobago",
472
+ "TV": "Tuvalu",
473
+ "TW": "Taiwan",
474
+ "TZ": "United Republic of Tanzania",
475
+ "UA": "Ukraine",
476
+ "UG": "Uganda",
477
+ "UM": "United States Minor Outlying Islands",
478
+ "US": "United States of America",
479
+ "UY": "Uruguay",
480
+ "UZ": "Uzbekistan",
481
+ "VA": "Holy See (Vatican City State)",
482
+ "VC": "Saint Vincent and the Grenadines",
483
+ "VE": "Venezuela",
484
+ "VG": "Virgin Islands, British",
485
+ "VI": "Virgin Islands, U.S.",
486
+ "VN": "Vietnam",
487
+ "VU": "Vanuatu",
488
+ "WF": "Wallis and Futuna",
489
+ "WS": "Samoa",
490
+ "YE": "Yemen",
491
+ "YT": "Mayotte",
492
+ "ZA": "South Africa",
493
+ "ZM": "Zambia",
494
+ "ZW": "Zimbabwe"
495
+ }
496
+ }