Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
List of countries in YAML, CSV and TXT format
@marijn

This comment has been minimized.

Show comment Hide comment
@OE-Tester

This comment has been minimized.

Show comment Hide comment
@r3wt

This comment has been minimized.

Show comment Hide comment
@r3wt

r3wt Jul 19, 2014

for anyone wishing to work with the list in php to insert it into some type of database, here is a simple script i wrote.


$list = 'AF|Afghanistan
AL|Albania
DZ|Algeria
AS|American Samoa
AD|Andorra
AO|Angola
AI|Anguilla
AQ|Antarctica
AG|Antigua And Barbuda
AR|Argentina
AM|Armenia
AW|Aruba
AU|Australia
AT|Austria
AZ|Azerbaijan
BS|Bahamas
BH|Bahrain
BD|Bangladesh
BB|Barbados
BY|Belarus
BE|Belgium
BZ|Belize
BJ|Benin
BM|Bermuda
BT|Bhutan
BO|Bolivia
BA|Bosnia And Herzegovina
BW|Botswana
BV|Bouvet Island
BR|Brazil
IO|British Indian Ocean Territory
BN|Brunei Darussalam
BG|Bulgaria
BF|Burkina Faso
BI|Burundi
KH|Cambodia
CM|Cameroon
CA|Canada
CV|Cape Verde
KY|Cayman Islands
CF|Central African Republic
TD|Chad
CL|Chile
CN|China
CX|Christmas Island
CC|Cocos (keeling) Islands
CO|Colombia
KM|Comoros
CG|Congo
CD|Congo, The Democratic Republic Of The
CK|Cook Islands
CR|Costa Rica
CI|Cote D\'ivoire
HR|Croatia
CU|Cuba
CY|Cyprus
CZ|Czech Republic
DK|Denmark
DJ|Djibouti
DM|Dominica
DO|Dominican Republic
TP|East Timor
EC|Ecuador
EG|Egypt
SV|El Salvador
GQ|Equatorial Guinea
ER|Eritrea
EE|Estonia
ET|Ethiopia
FK|Falkland Islands (malvinas)
FO|Faroe Islands
FJ|Fiji
FI|Finland
FR|France
GF|French Guiana
PF|French Polynesia
TF|French Southern Territories
GA|Gabon
GM|Gambia
GE|Georgia
DE|Germany
GH|Ghana
GI|Gibraltar
GR|Greece
GL|Greenland
GD|Grenada
GP|Guadeloupe
GU|Guam
GT|Guatemala
GN|Guinea
GW|Guinea-bissau
GY|Guyana
HT|Haiti
HM|Heard Island And Mcdonald Islands
VA|Holy See (vatican City State)
HN|Honduras
HK|Hong Kong
HU|Hungary
IS|Iceland
IN|India
ID|Indonesia
IR|Iran, Islamic Republic Of
IQ|Iraq
IE|Ireland
IL|Israel
IT|Italy
JM|Jamaica
JP|Japan
JO|Jordan
KZ|Kazakstan
KE|Kenya
KI|Kiribati
KP|Korea, Democratic People\'s Republic Of
KR|Korea, Republic Of
KV|Kosovo
KW|Kuwait
KG|Kyrgyzstan
LA|Lao People\'s Democratic Republic
LV|Latvia
LB|Lebanon
LS|Lesotho
LR|Liberia
LY|Libyan Arab Jamahiriya
LI|Liechtenstein
LT|Lithuania
LU|Luxembourg
MO|Macau
MK|Macedonia, The Former Yugoslav Republic Of
MG|Madagascar
MW|Malawi
MY|Malaysia
MV|Maldives
ML|Mali
MT|Malta
MH|Marshall Islands
MQ|Martinique
MR|Mauritania
MU|Mauritius
YT|Mayotte
MX|Mexico
FM|Micronesia, Federated States Of
MD|Moldova, Republic Of
MC|Monaco
MN|Mongolia
MS|Montserrat
ME|Montenegro
MA|Morocco
MZ|Mozambique
MM|Myanmar
NA|Namibia
NR|Nauru
NP|Nepal
NL|Netherlands
AN|Netherlands Antilles
NC|New Caledonia
NZ|New Zealand
NI|Nicaragua
NE|Niger
NG|Nigeria
NU|Niue
NF|Norfolk Island
MP|Northern Mariana Islands
NO|Norway
OM|Oman
PK|Pakistan
PW|Palau
PS|Palestinian Territory, Occupied
PA|Panama
PG|Papua New Guinea
PY|Paraguay
PE|Peru
PH|Philippines
PN|Pitcairn
PL|Poland
PT|Portugal
PR|Puerto Rico
QA|Qatar
RE|Reunion
RO|Romania
RU|Russian Federation
RW|Rwanda
SH|Saint Helena
KN|Saint Kitts And Nevis
LC|Saint Lucia
PM|Saint Pierre And Miquelon
VC|Saint Vincent And The Grenadines
WS|Samoa
SM|San Marino
ST|Sao Tome And Principe
SA|Saudi Arabia
SN|Senegal
RS|Serbia
SC|Seychelles
SL|Sierra Leone
SG|Singapore
SK|Slovakia
SI|Slovenia
SB|Solomon Islands
SO|Somalia
ZA|South Africa
GS|South Georgia And The South Sandwich Islands
ES|Spain
LK|Sri Lanka
SD|Sudan
SR|Suriname
SJ|Svalbard And Jan Mayen
SZ|Swaziland
SE|Sweden
CH|Switzerland
SY|Syrian Arab Republic
TW|Taiwan, Province Of China
TJ|Tajikistan
TZ|Tanzania, United Republic Of
TH|Thailand
TG|Togo
TK|Tokelau
TO|Tonga
TT|Trinidad And Tobago
TN|Tunisia
TR|Turkey
TM|Turkmenistan
TC|Turks And Caicos Islands
TV|Tuvalu
UG|Uganda
UA|Ukraine
AE|United Arab Emirates
GB|United Kingdom
US|United States
UM|United States Minor Outlying Islands
UY|Uruguay
UZ|Uzbekistan
VU|Vanuatu
VE|Venezuela
VN|Viet Nam
VG|Virgin Islands, British
VI|Virgin Islands, U.s.
WF|Wallis And Futuna
EH|Western Sahara
YE|Yemen
ZM|Zambia
ZW|Zimbabwe';
echo '<pre>';
$list = explode("\r\n",$list);
foreach($list as $list2){
    $list3[] = explode('|',$list2);
}
print_r($list3,false);

r3wt commented Jul 19, 2014

for anyone wishing to work with the list in php to insert it into some type of database, here is a simple script i wrote.


$list = 'AF|Afghanistan
AL|Albania
DZ|Algeria
AS|American Samoa
AD|Andorra
AO|Angola
AI|Anguilla
AQ|Antarctica
AG|Antigua And Barbuda
AR|Argentina
AM|Armenia
AW|Aruba
AU|Australia
AT|Austria
AZ|Azerbaijan
BS|Bahamas
BH|Bahrain
BD|Bangladesh
BB|Barbados
BY|Belarus
BE|Belgium
BZ|Belize
BJ|Benin
BM|Bermuda
BT|Bhutan
BO|Bolivia
BA|Bosnia And Herzegovina
BW|Botswana
BV|Bouvet Island
BR|Brazil
IO|British Indian Ocean Territory
BN|Brunei Darussalam
BG|Bulgaria
BF|Burkina Faso
BI|Burundi
KH|Cambodia
CM|Cameroon
CA|Canada
CV|Cape Verde
KY|Cayman Islands
CF|Central African Republic
TD|Chad
CL|Chile
CN|China
CX|Christmas Island
CC|Cocos (keeling) Islands
CO|Colombia
KM|Comoros
CG|Congo
CD|Congo, The Democratic Republic Of The
CK|Cook Islands
CR|Costa Rica
CI|Cote D\'ivoire
HR|Croatia
CU|Cuba
CY|Cyprus
CZ|Czech Republic
DK|Denmark
DJ|Djibouti
DM|Dominica
DO|Dominican Republic
TP|East Timor
EC|Ecuador
EG|Egypt
SV|El Salvador
GQ|Equatorial Guinea
ER|Eritrea
EE|Estonia
ET|Ethiopia
FK|Falkland Islands (malvinas)
FO|Faroe Islands
FJ|Fiji
FI|Finland
FR|France
GF|French Guiana
PF|French Polynesia
TF|French Southern Territories
GA|Gabon
GM|Gambia
GE|Georgia
DE|Germany
GH|Ghana
GI|Gibraltar
GR|Greece
GL|Greenland
GD|Grenada
GP|Guadeloupe
GU|Guam
GT|Guatemala
GN|Guinea
GW|Guinea-bissau
GY|Guyana
HT|Haiti
HM|Heard Island And Mcdonald Islands
VA|Holy See (vatican City State)
HN|Honduras
HK|Hong Kong
HU|Hungary
IS|Iceland
IN|India
ID|Indonesia
IR|Iran, Islamic Republic Of
IQ|Iraq
IE|Ireland
IL|Israel
IT|Italy
JM|Jamaica
JP|Japan
JO|Jordan
KZ|Kazakstan
KE|Kenya
KI|Kiribati
KP|Korea, Democratic People\'s Republic Of
KR|Korea, Republic Of
KV|Kosovo
KW|Kuwait
KG|Kyrgyzstan
LA|Lao People\'s Democratic Republic
LV|Latvia
LB|Lebanon
LS|Lesotho
LR|Liberia
LY|Libyan Arab Jamahiriya
LI|Liechtenstein
LT|Lithuania
LU|Luxembourg
MO|Macau
MK|Macedonia, The Former Yugoslav Republic Of
MG|Madagascar
MW|Malawi
MY|Malaysia
MV|Maldives
ML|Mali
MT|Malta
MH|Marshall Islands
MQ|Martinique
MR|Mauritania
MU|Mauritius
YT|Mayotte
MX|Mexico
FM|Micronesia, Federated States Of
MD|Moldova, Republic Of
MC|Monaco
MN|Mongolia
MS|Montserrat
ME|Montenegro
MA|Morocco
MZ|Mozambique
MM|Myanmar
NA|Namibia
NR|Nauru
NP|Nepal
NL|Netherlands
AN|Netherlands Antilles
NC|New Caledonia
NZ|New Zealand
NI|Nicaragua
NE|Niger
NG|Nigeria
NU|Niue
NF|Norfolk Island
MP|Northern Mariana Islands
NO|Norway
OM|Oman
PK|Pakistan
PW|Palau
PS|Palestinian Territory, Occupied
PA|Panama
PG|Papua New Guinea
PY|Paraguay
PE|Peru
PH|Philippines
PN|Pitcairn
PL|Poland
PT|Portugal
PR|Puerto Rico
QA|Qatar
RE|Reunion
RO|Romania
RU|Russian Federation
RW|Rwanda
SH|Saint Helena
KN|Saint Kitts And Nevis
LC|Saint Lucia
PM|Saint Pierre And Miquelon
VC|Saint Vincent And The Grenadines
WS|Samoa
SM|San Marino
ST|Sao Tome And Principe
SA|Saudi Arabia
SN|Senegal
RS|Serbia
SC|Seychelles
SL|Sierra Leone
SG|Singapore
SK|Slovakia
SI|Slovenia
SB|Solomon Islands
SO|Somalia
ZA|South Africa
GS|South Georgia And The South Sandwich Islands
ES|Spain
LK|Sri Lanka
SD|Sudan
SR|Suriname
SJ|Svalbard And Jan Mayen
SZ|Swaziland
SE|Sweden
CH|Switzerland
SY|Syrian Arab Republic
TW|Taiwan, Province Of China
TJ|Tajikistan
TZ|Tanzania, United Republic Of
TH|Thailand
TG|Togo
TK|Tokelau
TO|Tonga
TT|Trinidad And Tobago
TN|Tunisia
TR|Turkey
TM|Turkmenistan
TC|Turks And Caicos Islands
TV|Tuvalu
UG|Uganda
UA|Ukraine
AE|United Arab Emirates
GB|United Kingdom
US|United States
UM|United States Minor Outlying Islands
UY|Uruguay
UZ|Uzbekistan
VU|Vanuatu
VE|Venezuela
VN|Viet Nam
VG|Virgin Islands, British
VI|Virgin Islands, U.s.
WF|Wallis And Futuna
EH|Western Sahara
YE|Yemen
ZM|Zambia
ZW|Zimbabwe';
echo '<pre>';
$list = explode("\r\n",$list);
foreach($list as $list2){
    $list3[] = explode('|',$list2);
}
print_r($list3,false);
@emilushi

This comment has been minimized.

Show comment Hide comment
@emilushi

emilushi Apr 13, 2016

For everyone "like me" who needs the list as a plain text and only the country name i changed @r3wt code to this one:

$list = 'AF|Afghanistan
AL|Albania
DZ|Algeria
AS|American Samoa
AD|Andorra
AO|Angola
AI|Anguilla
AQ|Antarctica
AG|Antigua And Barbuda
AR|Argentina
AM|Armenia
AW|Aruba
AU|Australia
AT|Austria
AZ|Azerbaijan
BS|Bahamas
BH|Bahrain
BD|Bangladesh
BB|Barbados
BY|Belarus
BE|Belgium
BZ|Belize
BJ|Benin
BM|Bermuda
BT|Bhutan
BO|Bolivia
BA|Bosnia And Herzegovina
BW|Botswana
BV|Bouvet Island
BR|Brazil
IO|British Indian Ocean Territory
BN|Brunei Darussalam
BG|Bulgaria
BF|Burkina Faso
BI|Burundi
KH|Cambodia
CM|Cameroon
CA|Canada
CV|Cape Verde
KY|Cayman Islands
CF|Central African Republic
TD|Chad
CL|Chile
CN|China
CX|Christmas Island
CC|Cocos (keeling) Islands
CO|Colombia
KM|Comoros
CG|Congo
CD|Congo, The Democratic Republic Of The
CK|Cook Islands
CR|Costa Rica
CI|Cote D\'ivoire
HR|Croatia
CU|Cuba
CY|Cyprus
CZ|Czech Republic
DK|Denmark
DJ|Djibouti
DM|Dominica
DO|Dominican Republic
TP|East Timor
EC|Ecuador
EG|Egypt
SV|El Salvador
GQ|Equatorial Guinea
ER|Eritrea
EE|Estonia
ET|Ethiopia
FK|Falkland Islands (malvinas)
FO|Faroe Islands
FJ|Fiji
FI|Finland
FR|France
GF|French Guiana
PF|French Polynesia
TF|French Southern Territories
GA|Gabon
GM|Gambia
GE|Georgia
DE|Germany
GH|Ghana
GI|Gibraltar
GR|Greece
GL|Greenland
GD|Grenada
GP|Guadeloupe
GU|Guam
GT|Guatemala
GN|Guinea
GW|Guinea-bissau
GY|Guyana
HT|Haiti
HM|Heard Island And Mcdonald Islands
VA|Holy See (vatican City State)
HN|Honduras
HK|Hong Kong
HU|Hungary
IS|Iceland
IN|India
ID|Indonesia
IR|Iran, Islamic Republic Of
IQ|Iraq
IE|Ireland
IL|Israel
IT|Italy
JM|Jamaica
JP|Japan
JO|Jordan
KZ|Kazakstan
KE|Kenya
KI|Kiribati
KP|Korea, Democratic People\'s Republic Of
KR|Korea, Republic Of
KV|Kosovo
KW|Kuwait
KG|Kyrgyzstan
LA|Lao People\'s Democratic Republic
LV|Latvia
LB|Lebanon
LS|Lesotho
LR|Liberia
LY|Libyan Arab Jamahiriya
LI|Liechtenstein
LT|Lithuania
LU|Luxembourg
MO|Macau
MK|Macedonia, The Former Yugoslav Republic Of
MG|Madagascar
MW|Malawi
MY|Malaysia
MV|Maldives
ML|Mali
MT|Malta
MH|Marshall Islands
MQ|Martinique
MR|Mauritania
MU|Mauritius
YT|Mayotte
MX|Mexico
FM|Micronesia, Federated States Of
MD|Moldova, Republic Of
MC|Monaco
MN|Mongolia
MS|Montserrat
ME|Montenegro
MA|Morocco
MZ|Mozambique
MM|Myanmar
NA|Namibia
NR|Nauru
NP|Nepal
NL|Netherlands
AN|Netherlands Antilles
NC|New Caledonia
NZ|New Zealand
NI|Nicaragua
NE|Niger
NG|Nigeria
NU|Niue
NF|Norfolk Island
MP|Northern Mariana Islands
NO|Norway
OM|Oman
PK|Pakistan
PW|Palau
PS|Palestinian Territory, Occupied
PA|Panama
PG|Papua New Guinea
PY|Paraguay
PE|Peru
PH|Philippines
PN|Pitcairn
PL|Poland
PT|Portugal
PR|Puerto Rico
QA|Qatar
RE|Reunion
RO|Romania
RU|Russian Federation
RW|Rwanda
SH|Saint Helena
KN|Saint Kitts And Nevis
LC|Saint Lucia
PM|Saint Pierre And Miquelon
VC|Saint Vincent And The Grenadines
WS|Samoa
SM|San Marino
ST|Sao Tome And Principe
SA|Saudi Arabia
SN|Senegal
RS|Serbia
SC|Seychelles
SL|Sierra Leone
SG|Singapore
SK|Slovakia
SI|Slovenia
SB|Solomon Islands
SO|Somalia
ZA|South Africa
GS|South Georgia And The South Sandwich Islands
ES|Spain
LK|Sri Lanka
SD|Sudan
SR|Suriname
SJ|Svalbard And Jan Mayen
SZ|Swaziland
SE|Sweden
CH|Switzerland
SY|Syrian Arab Republic
TW|Taiwan, Province Of China
TJ|Tajikistan
TZ|Tanzania, United Republic Of
TH|Thailand
TG|Togo
TK|Tokelau
TO|Tonga
TT|Trinidad And Tobago
TN|Tunisia
TR|Turkey
TM|Turkmenistan
TC|Turks And Caicos Islands
TV|Tuvalu
UG|Uganda
UA|Ukraine
AE|United Arab Emirates
GB|United Kingdom
US|United States
UM|United States Minor Outlying Islands
UY|Uruguay
UZ|Uzbekistan
VU|Vanuatu
VE|Venezuela
VN|Viet Nam
VG|Virgin Islands, British
VI|Virgin Islands, U.s.
WF|Wallis And Futuna
EH|Western Sahara
YE|Yemen
ZM|Zambia
ZW|Zimbabwe';
echo '<pre>';
$list = explode("\r\n",$list);
foreach($list as $list2){
    $list3[] = explode('|', $list2);
}
$country = call_user_func_array('array_merge', $list3);
for($i=0;$i<count($country);$i++) {
    if($i%2==0) {
        echo $country[$i+1] . '<br />';
    }
}

For everyone "like me" who needs the list as a plain text and only the country name i changed @r3wt code to this one:

$list = 'AF|Afghanistan
AL|Albania
DZ|Algeria
AS|American Samoa
AD|Andorra
AO|Angola
AI|Anguilla
AQ|Antarctica
AG|Antigua And Barbuda
AR|Argentina
AM|Armenia
AW|Aruba
AU|Australia
AT|Austria
AZ|Azerbaijan
BS|Bahamas
BH|Bahrain
BD|Bangladesh
BB|Barbados
BY|Belarus
BE|Belgium
BZ|Belize
BJ|Benin
BM|Bermuda
BT|Bhutan
BO|Bolivia
BA|Bosnia And Herzegovina
BW|Botswana
BV|Bouvet Island
BR|Brazil
IO|British Indian Ocean Territory
BN|Brunei Darussalam
BG|Bulgaria
BF|Burkina Faso
BI|Burundi
KH|Cambodia
CM|Cameroon
CA|Canada
CV|Cape Verde
KY|Cayman Islands
CF|Central African Republic
TD|Chad
CL|Chile
CN|China
CX|Christmas Island
CC|Cocos (keeling) Islands
CO|Colombia
KM|Comoros
CG|Congo
CD|Congo, The Democratic Republic Of The
CK|Cook Islands
CR|Costa Rica
CI|Cote D\'ivoire
HR|Croatia
CU|Cuba
CY|Cyprus
CZ|Czech Republic
DK|Denmark
DJ|Djibouti
DM|Dominica
DO|Dominican Republic
TP|East Timor
EC|Ecuador
EG|Egypt
SV|El Salvador
GQ|Equatorial Guinea
ER|Eritrea
EE|Estonia
ET|Ethiopia
FK|Falkland Islands (malvinas)
FO|Faroe Islands
FJ|Fiji
FI|Finland
FR|France
GF|French Guiana
PF|French Polynesia
TF|French Southern Territories
GA|Gabon
GM|Gambia
GE|Georgia
DE|Germany
GH|Ghana
GI|Gibraltar
GR|Greece
GL|Greenland
GD|Grenada
GP|Guadeloupe
GU|Guam
GT|Guatemala
GN|Guinea
GW|Guinea-bissau
GY|Guyana
HT|Haiti
HM|Heard Island And Mcdonald Islands
VA|Holy See (vatican City State)
HN|Honduras
HK|Hong Kong
HU|Hungary
IS|Iceland
IN|India
ID|Indonesia
IR|Iran, Islamic Republic Of
IQ|Iraq
IE|Ireland
IL|Israel
IT|Italy
JM|Jamaica
JP|Japan
JO|Jordan
KZ|Kazakstan
KE|Kenya
KI|Kiribati
KP|Korea, Democratic People\'s Republic Of
KR|Korea, Republic Of
KV|Kosovo
KW|Kuwait
KG|Kyrgyzstan
LA|Lao People\'s Democratic Republic
LV|Latvia
LB|Lebanon
LS|Lesotho
LR|Liberia
LY|Libyan Arab Jamahiriya
LI|Liechtenstein
LT|Lithuania
LU|Luxembourg
MO|Macau
MK|Macedonia, The Former Yugoslav Republic Of
MG|Madagascar
MW|Malawi
MY|Malaysia
MV|Maldives
ML|Mali
MT|Malta
MH|Marshall Islands
MQ|Martinique
MR|Mauritania
MU|Mauritius
YT|Mayotte
MX|Mexico
FM|Micronesia, Federated States Of
MD|Moldova, Republic Of
MC|Monaco
MN|Mongolia
MS|Montserrat
ME|Montenegro
MA|Morocco
MZ|Mozambique
MM|Myanmar
NA|Namibia
NR|Nauru
NP|Nepal
NL|Netherlands
AN|Netherlands Antilles
NC|New Caledonia
NZ|New Zealand
NI|Nicaragua
NE|Niger
NG|Nigeria
NU|Niue
NF|Norfolk Island
MP|Northern Mariana Islands
NO|Norway
OM|Oman
PK|Pakistan
PW|Palau
PS|Palestinian Territory, Occupied
PA|Panama
PG|Papua New Guinea
PY|Paraguay
PE|Peru
PH|Philippines
PN|Pitcairn
PL|Poland
PT|Portugal
PR|Puerto Rico
QA|Qatar
RE|Reunion
RO|Romania
RU|Russian Federation
RW|Rwanda
SH|Saint Helena
KN|Saint Kitts And Nevis
LC|Saint Lucia
PM|Saint Pierre And Miquelon
VC|Saint Vincent And The Grenadines
WS|Samoa
SM|San Marino
ST|Sao Tome And Principe
SA|Saudi Arabia
SN|Senegal
RS|Serbia
SC|Seychelles
SL|Sierra Leone
SG|Singapore
SK|Slovakia
SI|Slovenia
SB|Solomon Islands
SO|Somalia
ZA|South Africa
GS|South Georgia And The South Sandwich Islands
ES|Spain
LK|Sri Lanka
SD|Sudan
SR|Suriname
SJ|Svalbard And Jan Mayen
SZ|Swaziland
SE|Sweden
CH|Switzerland
SY|Syrian Arab Republic
TW|Taiwan, Province Of China
TJ|Tajikistan
TZ|Tanzania, United Republic Of
TH|Thailand
TG|Togo
TK|Tokelau
TO|Tonga
TT|Trinidad And Tobago
TN|Tunisia
TR|Turkey
TM|Turkmenistan
TC|Turks And Caicos Islands
TV|Tuvalu
UG|Uganda
UA|Ukraine
AE|United Arab Emirates
GB|United Kingdom
US|United States
UM|United States Minor Outlying Islands
UY|Uruguay
UZ|Uzbekistan
VU|Vanuatu
VE|Venezuela
VN|Viet Nam
VG|Virgin Islands, British
VI|Virgin Islands, U.s.
WF|Wallis And Futuna
EH|Western Sahara
YE|Yemen
ZM|Zambia
ZW|Zimbabwe';
echo '<pre>';
$list = explode("\r\n",$list);
foreach($list as $list2){
    $list3[] = explode('|', $list2);
}
$country = call_user_func_array('array_merge', $list3);
for($i=0;$i<count($country);$i++) {
    if($i%2==0) {
        echo $country[$i+1] . '<br />';
    }
}
@wyred

This comment has been minimized.

Show comment Hide comment
@wyred

wyred Apr 26, 2016

Now for PHP array format!

return [
    'AF' => 'Afghanistan',
    'AL' => 'Albania',
    'DZ' => 'Algeria',
    'AS' => 'American Samoa',
    'AD' => 'Andorra',
    'AO' => 'Angola',
    'AI' => 'Anguilla',
    'AQ' => 'Antarctica',
    'AG' => 'Antigua And Barbuda',
    'AR' => 'Argentina',
    'AM' => 'Armenia',
    'AW' => 'Aruba',
    'AU' => 'Australia',
    'AT' => 'Austria',
    'AZ' => 'Azerbaijan',
    'BS' => 'Bahamas',
    'BH' => 'Bahrain',
    'BD' => 'Bangladesh',
    'BB' => 'Barbados',
    'BY' => 'Belarus',
    'BE' => 'Belgium',
    'BZ' => 'Belize',
    'BJ' => 'Benin',
    'BM' => 'Bermuda',
    'BT' => 'Bhutan',
    'BO' => 'Bolivia',
    'BA' => 'Bosnia And Herzegovina',
    'BW' => 'Botswana',
    'BV' => 'Bouvet Island',
    'BR' => 'Brazil',
    'IO' => 'British Indian Ocean Territory',
    'BN' => 'Brunei Darussalam',
    'BG' => 'Bulgaria',
    'BF' => 'Burkina Faso',
    'BI' => 'Burundi',
    'KH' => 'Cambodia',
    'CM' => 'Cameroon',
    'CA' => 'Canada',
    'CV' => 'Cape Verde',
    'KY' => 'Cayman Islands',
    'CF' => 'Central African Republic',
    'TD' => 'Chad',
    'CL' => 'Chile',
    'CN' => 'China',
    'CX' => 'Christmas Island',
    'CC' => 'Cocos (keeling) Islands',
    'CO' => 'Colombia',
    'KM' => 'Comoros',
    'CG' => 'Congo',
    'CD' => 'Congo, The Democratic Republic Of The',
    'CK' => 'Cook Islands',
    'CR' => 'Costa Rica',
    'CI' => 'Cote D\'ivoire',
    'HR' => 'Croatia',
    'CU' => 'Cuba',
    'CY' => 'Cyprus',
    'CZ' => 'Czech Republic',
    'DK' => 'Denmark',
    'DJ' => 'Djibouti',
    'DM' => 'Dominica',
    'DO' => 'Dominican Republic',
    'TP' => 'East Timor',
    'EC' => 'Ecuador',
    'EG' => 'Egypt',
    'SV' => 'El Salvador',
    'GQ' => 'Equatorial Guinea',
    'ER' => 'Eritrea',
    'EE' => 'Estonia',
    'ET' => 'Ethiopia',
    'FK' => 'Falkland Islands (malvinas)',
    'FO' => 'Faroe Islands',
    'FJ' => 'Fiji',
    'FI' => 'Finland',
    'FR' => 'France',
    'GF' => 'French Guiana',
    'PF' => 'French Polynesia',
    'TF' => 'French Southern Territories',
    'GA' => 'Gabon',
    'GM' => 'Gambia',
    'GE' => 'Georgia',
    'DE' => 'Germany',
    'GH' => 'Ghana',
    'GI' => 'Gibraltar',
    'GR' => 'Greece',
    'GL' => 'Greenland',
    'GD' => 'Grenada',
    'GP' => 'Guadeloupe',
    'GU' => 'Guam',
    'GT' => 'Guatemala',
    'GN' => 'Guinea',
    'GW' => 'Guinea-bissau',
    'GY' => 'Guyana',
    'HT' => 'Haiti',
    'HM' => 'Heard Island And Mcdonald Islands',
    'VA' => 'Holy See (vatican City State)',
    'HN' => 'Honduras',
    'HK' => 'Hong Kong',
    'HU' => 'Hungary',
    'IS' => 'Iceland',
    'IN' => 'India',
    'ID' => 'Indonesia',
    'IR' => 'Iran, Islamic Republic Of',
    'IQ' => 'Iraq',
    'IE' => 'Ireland',
    'IL' => 'Israel',
    'IT' => 'Italy',
    'JM' => 'Jamaica',
    'JP' => 'Japan',
    'JO' => 'Jordan',
    'KZ' => 'Kazakstan',
    'KE' => 'Kenya',
    'KI' => 'Kiribati',
    'KP' => 'Korea, Democratic People\'s Republic Of',
    'KR' => 'Korea, Republic Of',
    'KV' => 'Kosovo',
    'KW' => 'Kuwait',
    'KG' => 'Kyrgyzstan',
    'LA' => 'Lao People\'s Democratic Republic',
    'LV' => 'Latvia',
    'LB' => 'Lebanon',
    'LS' => 'Lesotho',
    'LR' => 'Liberia',
    'LY' => 'Libyan Arab Jamahiriya',
    'LI' => 'Liechtenstein',
    'LT' => 'Lithuania',
    'LU' => 'Luxembourg',
    'MO' => 'Macau',
    'MK' => 'Macedonia, The Former Yugoslav Republic Of',
    'MG' => 'Madagascar',
    'MW' => 'Malawi',
    'MY' => 'Malaysia',
    'MV' => 'Maldives',
    'ML' => 'Mali',
    'MT' => 'Malta',
    'MH' => 'Marshall Islands',
    'MQ' => 'Martinique',
    'MR' => 'Mauritania',
    'MU' => 'Mauritius',
    'YT' => 'Mayotte',
    'MX' => 'Mexico',
    'FM' => 'Micronesia, Federated States Of',
    'MD' => 'Moldova, Republic Of',
    'MC' => 'Monaco',
    'MN' => 'Mongolia',
    'MS' => 'Montserrat',
    'ME' => 'Montenegro',
    'MA' => 'Morocco',
    'MZ' => 'Mozambique',
    'MM' => 'Myanmar',
    'NA' => 'Namibia',
    'NR' => 'Nauru',
    'NP' => 'Nepal',
    'NL' => 'Netherlands',
    'AN' => 'Netherlands Antilles',
    'NC' => 'New Caledonia',
    'NZ' => 'New Zealand',
    'NI' => 'Nicaragua',
    'NE' => 'Niger',
    'NG' => 'Nigeria',
    'NU' => 'Niue',
    'NF' => 'Norfolk Island',
    'MP' => 'Northern Mariana Islands',
    'NO' => 'Norway',
    'OM' => 'Oman',
    'PK' => 'Pakistan',
    'PW' => 'Palau',
    'PS' => 'Palestinian Territory, Occupied',
    'PA' => 'Panama',
    'PG' => 'Papua New Guinea',
    'PY' => 'Paraguay',
    'PE' => 'Peru',
    'PH' => 'Philippines',
    'PN' => 'Pitcairn',
    'PL' => 'Poland',
    'PT' => 'Portugal',
    'PR' => 'Puerto Rico',
    'QA' => 'Qatar',
    'RE' => 'Reunion',
    'RO' => 'Romania',
    'RU' => 'Russian Federation',
    'RW' => 'Rwanda',
    'SH' => 'Saint Helena',
    'KN' => 'Saint Kitts And Nevis',
    'LC' => 'Saint Lucia',
    'PM' => 'Saint Pierre And Miquelon',
    'VC' => 'Saint Vincent And The Grenadines',
    'WS' => 'Samoa',
    'SM' => 'San Marino',
    'ST' => 'Sao Tome And Principe',
    'SA' => 'Saudi Arabia',
    'SN' => 'Senegal',
    'RS' => 'Serbia',
    'SC' => 'Seychelles',
    'SL' => 'Sierra Leone',
    'SG' => 'Singapore',
    'SK' => 'Slovakia',
    'SI' => 'Slovenia',
    'SB' => 'Solomon Islands',
    'SO' => 'Somalia',
    'ZA' => 'South Africa',
    'GS' => 'South Georgia And The South Sandwich Islands',
    'ES' => 'Spain',
    'LK' => 'Sri Lanka',
    'SD' => 'Sudan',
    'SR' => 'Suriname',
    'SJ' => 'Svalbard And Jan Mayen',
    'SZ' => 'Swaziland',
    'SE' => 'Sweden',
    'CH' => 'Switzerland',
    'SY' => 'Syrian Arab Republic',
    'TW' => 'Taiwan, Province Of China',
    'TJ' => 'Tajikistan',
    'TZ' => 'Tanzania, United Republic Of',
    'TH' => 'Thailand',
    'TG' => 'Togo',
    'TK' => 'Tokelau',
    'TO' => 'Tonga',
    'TT' => 'Trinidad And Tobago',
    'TN' => 'Tunisia',
    'TR' => 'Turkey',
    'TM' => 'Turkmenistan',
    'TC' => 'Turks And Caicos Islands',
    'TV' => 'Tuvalu',
    'UG' => 'Uganda',
    'UA' => 'Ukraine',
    'AE' => 'United Arab Emirates',
    'GB' => 'United Kingdom',
    'US' => 'United States',
    'UM' => 'United States Minor Outlying Islands',
    'UY' => 'Uruguay',
    'UZ' => 'Uzbekistan',
    'VU' => 'Vanuatu',
    'VE' => 'Venezuela',
    'VN' => 'Viet Nam',
    'VG' => 'Virgin Islands, British',
    'VI' => 'Virgin Islands, U.s.',
    'WF' => 'Wallis And Futuna',
    'EH' => 'Western Sahara',
    'YE' => 'Yemen',
    'ZM' => 'Zambia',
    'ZW' => 'Zimbabwe',
];

wyred commented Apr 26, 2016

Now for PHP array format!

return [
    'AF' => 'Afghanistan',
    'AL' => 'Albania',
    'DZ' => 'Algeria',
    'AS' => 'American Samoa',
    'AD' => 'Andorra',
    'AO' => 'Angola',
    'AI' => 'Anguilla',
    'AQ' => 'Antarctica',
    'AG' => 'Antigua And Barbuda',
    'AR' => 'Argentina',
    'AM' => 'Armenia',
    'AW' => 'Aruba',
    'AU' => 'Australia',
    'AT' => 'Austria',
    'AZ' => 'Azerbaijan',
    'BS' => 'Bahamas',
    'BH' => 'Bahrain',
    'BD' => 'Bangladesh',
    'BB' => 'Barbados',
    'BY' => 'Belarus',
    'BE' => 'Belgium',
    'BZ' => 'Belize',
    'BJ' => 'Benin',
    'BM' => 'Bermuda',
    'BT' => 'Bhutan',
    'BO' => 'Bolivia',
    'BA' => 'Bosnia And Herzegovina',
    'BW' => 'Botswana',
    'BV' => 'Bouvet Island',
    'BR' => 'Brazil',
    'IO' => 'British Indian Ocean Territory',
    'BN' => 'Brunei Darussalam',
    'BG' => 'Bulgaria',
    'BF' => 'Burkina Faso',
    'BI' => 'Burundi',
    'KH' => 'Cambodia',
    'CM' => 'Cameroon',
    'CA' => 'Canada',
    'CV' => 'Cape Verde',
    'KY' => 'Cayman Islands',
    'CF' => 'Central African Republic',
    'TD' => 'Chad',
    'CL' => 'Chile',
    'CN' => 'China',
    'CX' => 'Christmas Island',
    'CC' => 'Cocos (keeling) Islands',
    'CO' => 'Colombia',
    'KM' => 'Comoros',
    'CG' => 'Congo',
    'CD' => 'Congo, The Democratic Republic Of The',
    'CK' => 'Cook Islands',
    'CR' => 'Costa Rica',
    'CI' => 'Cote D\'ivoire',
    'HR' => 'Croatia',
    'CU' => 'Cuba',
    'CY' => 'Cyprus',
    'CZ' => 'Czech Republic',
    'DK' => 'Denmark',
    'DJ' => 'Djibouti',
    'DM' => 'Dominica',
    'DO' => 'Dominican Republic',
    'TP' => 'East Timor',
    'EC' => 'Ecuador',
    'EG' => 'Egypt',
    'SV' => 'El Salvador',
    'GQ' => 'Equatorial Guinea',
    'ER' => 'Eritrea',
    'EE' => 'Estonia',
    'ET' => 'Ethiopia',
    'FK' => 'Falkland Islands (malvinas)',
    'FO' => 'Faroe Islands',
    'FJ' => 'Fiji',
    'FI' => 'Finland',
    'FR' => 'France',
    'GF' => 'French Guiana',
    'PF' => 'French Polynesia',
    'TF' => 'French Southern Territories',
    'GA' => 'Gabon',
    'GM' => 'Gambia',
    'GE' => 'Georgia',
    'DE' => 'Germany',
    'GH' => 'Ghana',
    'GI' => 'Gibraltar',
    'GR' => 'Greece',
    'GL' => 'Greenland',
    'GD' => 'Grenada',
    'GP' => 'Guadeloupe',
    'GU' => 'Guam',
    'GT' => 'Guatemala',
    'GN' => 'Guinea',
    'GW' => 'Guinea-bissau',
    'GY' => 'Guyana',
    'HT' => 'Haiti',
    'HM' => 'Heard Island And Mcdonald Islands',
    'VA' => 'Holy See (vatican City State)',
    'HN' => 'Honduras',
    'HK' => 'Hong Kong',
    'HU' => 'Hungary',
    'IS' => 'Iceland',
    'IN' => 'India',
    'ID' => 'Indonesia',
    'IR' => 'Iran, Islamic Republic Of',
    'IQ' => 'Iraq',
    'IE' => 'Ireland',
    'IL' => 'Israel',
    'IT' => 'Italy',
    'JM' => 'Jamaica',
    'JP' => 'Japan',
    'JO' => 'Jordan',
    'KZ' => 'Kazakstan',
    'KE' => 'Kenya',
    'KI' => 'Kiribati',
    'KP' => 'Korea, Democratic People\'s Republic Of',
    'KR' => 'Korea, Republic Of',
    'KV' => 'Kosovo',
    'KW' => 'Kuwait',
    'KG' => 'Kyrgyzstan',
    'LA' => 'Lao People\'s Democratic Republic',
    'LV' => 'Latvia',
    'LB' => 'Lebanon',
    'LS' => 'Lesotho',
    'LR' => 'Liberia',
    'LY' => 'Libyan Arab Jamahiriya',
    'LI' => 'Liechtenstein',
    'LT' => 'Lithuania',
    'LU' => 'Luxembourg',
    'MO' => 'Macau',
    'MK' => 'Macedonia, The Former Yugoslav Republic Of',
    'MG' => 'Madagascar',
    'MW' => 'Malawi',
    'MY' => 'Malaysia',
    'MV' => 'Maldives',
    'ML' => 'Mali',
    'MT' => 'Malta',
    'MH' => 'Marshall Islands',
    'MQ' => 'Martinique',
    'MR' => 'Mauritania',
    'MU' => 'Mauritius',
    'YT' => 'Mayotte',
    'MX' => 'Mexico',
    'FM' => 'Micronesia, Federated States Of',
    'MD' => 'Moldova, Republic Of',
    'MC' => 'Monaco',
    'MN' => 'Mongolia',
    'MS' => 'Montserrat',
    'ME' => 'Montenegro',
    'MA' => 'Morocco',
    'MZ' => 'Mozambique',
    'MM' => 'Myanmar',
    'NA' => 'Namibia',
    'NR' => 'Nauru',
    'NP' => 'Nepal',
    'NL' => 'Netherlands',
    'AN' => 'Netherlands Antilles',
    'NC' => 'New Caledonia',
    'NZ' => 'New Zealand',
    'NI' => 'Nicaragua',
    'NE' => 'Niger',
    'NG' => 'Nigeria',
    'NU' => 'Niue',
    'NF' => 'Norfolk Island',
    'MP' => 'Northern Mariana Islands',
    'NO' => 'Norway',
    'OM' => 'Oman',
    'PK' => 'Pakistan',
    'PW' => 'Palau',
    'PS' => 'Palestinian Territory, Occupied',
    'PA' => 'Panama',
    'PG' => 'Papua New Guinea',
    'PY' => 'Paraguay',
    'PE' => 'Peru',
    'PH' => 'Philippines',
    'PN' => 'Pitcairn',
    'PL' => 'Poland',
    'PT' => 'Portugal',
    'PR' => 'Puerto Rico',
    'QA' => 'Qatar',
    'RE' => 'Reunion',
    'RO' => 'Romania',
    'RU' => 'Russian Federation',
    'RW' => 'Rwanda',
    'SH' => 'Saint Helena',
    'KN' => 'Saint Kitts And Nevis',
    'LC' => 'Saint Lucia',
    'PM' => 'Saint Pierre And Miquelon',
    'VC' => 'Saint Vincent And The Grenadines',
    'WS' => 'Samoa',
    'SM' => 'San Marino',
    'ST' => 'Sao Tome And Principe',
    'SA' => 'Saudi Arabia',
    'SN' => 'Senegal',
    'RS' => 'Serbia',
    'SC' => 'Seychelles',
    'SL' => 'Sierra Leone',
    'SG' => 'Singapore',
    'SK' => 'Slovakia',
    'SI' => 'Slovenia',
    'SB' => 'Solomon Islands',
    'SO' => 'Somalia',
    'ZA' => 'South Africa',
    'GS' => 'South Georgia And The South Sandwich Islands',
    'ES' => 'Spain',
    'LK' => 'Sri Lanka',
    'SD' => 'Sudan',
    'SR' => 'Suriname',
    'SJ' => 'Svalbard And Jan Mayen',
    'SZ' => 'Swaziland',
    'SE' => 'Sweden',
    'CH' => 'Switzerland',
    'SY' => 'Syrian Arab Republic',
    'TW' => 'Taiwan, Province Of China',
    'TJ' => 'Tajikistan',
    'TZ' => 'Tanzania, United Republic Of',
    'TH' => 'Thailand',
    'TG' => 'Togo',
    'TK' => 'Tokelau',
    'TO' => 'Tonga',
    'TT' => 'Trinidad And Tobago',
    'TN' => 'Tunisia',
    'TR' => 'Turkey',
    'TM' => 'Turkmenistan',
    'TC' => 'Turks And Caicos Islands',
    'TV' => 'Tuvalu',
    'UG' => 'Uganda',
    'UA' => 'Ukraine',
    'AE' => 'United Arab Emirates',
    'GB' => 'United Kingdom',
    'US' => 'United States',
    'UM' => 'United States Minor Outlying Islands',
    'UY' => 'Uruguay',
    'UZ' => 'Uzbekistan',
    'VU' => 'Vanuatu',
    'VE' => 'Venezuela',
    'VN' => 'Viet Nam',
    'VG' => 'Virgin Islands, British',
    'VI' => 'Virgin Islands, U.s.',
    'WF' => 'Wallis And Futuna',
    'EH' => 'Western Sahara',
    'YE' => 'Yemen',
    'ZM' => 'Zambia',
    'ZW' => 'Zimbabwe',
];
@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Jul 18, 2016

<select>
  <option value="Afghanistan">Afghanistan</option>
  <option value="Albania">Albania</option>
  <option value="Algeria">Algeria</option>
  <option value="American Samoa">American Samoa</option>
  <option value="Andorra">Andorra</option>
  <option value="Angola">Angola</option>
  <option value="Anguilla">Anguilla</option>
  <option value="Antarctica">Antarctica</option>
  <option value="Antigua And Barbuda">Antigua And Barbuda</option>
  <option value="Argentina">Argentina</option>
  <option value="Armenia">Armenia</option>
  <option value="Aruba">Aruba</option>
  <option value="Australia">Australia</option>
  <option value="Austria">Austria</option>
  <option value="Azerbaijan">Azerbaijan</option>
  <option value="Bahamas">Bahamas</option>
  <option value="Bahrain">Bahrain</option>
  <option value="Bangladesh">Bangladesh</option>
  <option value="Barbados">Barbados</option>
  <option value="Belarus">Belarus</option>
  <option value="Belgium">Belgium</option>
  <option value="Belize">Belize</option>
  <option value="Benin">Benin</option>
  <option value="Bermuda">Bermuda</option>
  <option value="Bhutan">Bhutan</option>
  <option value="Bolivia">Bolivia</option>
  <option value="Bosnia And Herzegovina">Bosnia And Herzegovina</option>
  <option value="Botswana">Botswana</option>
  <option value="Bouvet Island">Bouvet Island</option>
  <option value="Brazil">Brazil</option>
  <option value="British Indian Ocean Territory">British Indian Ocean Territory</option>
  <option value="Brunei Darussalam">Brunei Darussalam</option>
  <option value="Bulgaria">Bulgaria</option>
  <option value="Burkina Faso">Burkina Faso</option>
  <option value="Burundi">Burundi</option>
  <option value="Cambodia">Cambodia</option>
  <option value="Cameroon">Cameroon</option>
  <option value="Canada">Canada</option>
  <option value="Cape Verde">Cape Verde</option>
  <option value="Cayman Islands">Cayman Islands</option>
  <option value="Central African Republic">Central African Republic</option>
  <option value="Chad">Chad</option>
  <option value="Chile">Chile</option>
  <option value="China">China</option>
  <option value="Christmas Island">Christmas Island</option>
  <option value="Cocos (keeling) Islands">Cocos (keeling) Islands</option>
  <option value="Colombia">Colombia</option>
  <option value="Comoros">Comoros</option>
  <option value="Congo">Congo</option>
  <option value="Congo, The Democratic Republic Of The">Congo, The Democratic Republic Of The</option>
  <option value="Cook Islands">Cook Islands</option>
  <option value="Costa Rica">Costa Rica</option>
  <option value="Cote D'ivoire">Cote D'ivoire</option>
  <option value="Croatia">Croatia</option>
  <option value="Cuba">Cuba</option>
  <option value="Cyprus">Cyprus</option>
  <option value="Czech Republic">Czech Republic</option>
  <option value="Denmark">Denmark</option>
  <option value="Djibouti">Djibouti</option>
  <option value="Dominica">Dominica</option>
  <option value="Dominican Republic">Dominican Republic</option>
  <option value="East Timor">East Timor</option>
  <option value="Ecuador">Ecuador</option>
  <option value="Egypt">Egypt</option>
  <option value="El Salvador">El Salvador</option>
  <option value="Equatorial Guinea">Equatorial Guinea</option>
  <option value="Eritrea">Eritrea</option>
  <option value="Estonia">Estonia</option>
  <option value="Ethiopia">Ethiopia</option>
  <option value="Falkland Islands (malvinas)">Falkland Islands (malvinas)</option>
  <option value="Faroe Islands">Faroe Islands</option>
  <option value="Fiji">Fiji</option>
  <option value="Finland">Finland</option>
  <option value="France">France</option>
  <option value="French Guiana">French Guiana</option>
  <option value="French Polynesia">French Polynesia</option>
  <option value="French Southern Territories">French Southern Territories</option>
  <option value="Gabon">Gabon</option>
  <option value="Gambia">Gambia</option>
  <option value="Georgia">Georgia</option>
  <option value="Germany">Germany</option>
  <option value="Ghana">Ghana</option>
  <option value="Gibraltar">Gibraltar</option>
  <option value="Greece">Greece</option>
  <option value="Greenland">Greenland</option>
  <option value="Grenada">Grenada</option>
  <option value="Guadeloupe">Guadeloupe</option>
  <option value="Guam">Guam</option>
  <option value="Guatemala">Guatemala</option>
  <option value="Guinea">Guinea</option>
  <option value="Guinea-bissau">Guinea-bissau</option>
  <option value="Guyana">Guyana</option>
  <option value="Haiti">Haiti</option>
  <option value="Heard Island And Mcdonald Islands">Heard Island And Mcdonald Islands</option>
  <option value="Holy See (vatican City State)">Holy See (vatican City State)</option>
  <option value="Honduras">Honduras</option>
  <option value="Hong Kong">Hong Kong</option>
  <option value="Hungary">Hungary</option>
  <option value="Iceland">Iceland</option>
  <option value="India">India</option>
  <option value="Indonesia">Indonesia</option>
  <option value="Iran, Islamic Republic Of">Iran, Islamic Republic Of</option>
  <option value="Iraq">Iraq</option>
  <option value="Ireland">Ireland</option>
  <option value="Israel">Israel</option>
  <option value="Italy">Italy</option>
  <option value="Jamaica">Jamaica</option>
  <option value="Japan">Japan</option>
  <option value="Jordan">Jordan</option>
  <option value="Kazakstan">Kazakstan</option>
  <option value="Kenya">Kenya</option>
  <option value="Kiribati">Kiribati</option>
  <option value="Korea, Democratic People's Republic Of">Korea, Democratic People's Republic Of</option>
  <option value="Korea, Republic Of">Korea, Republic Of</option>
  <option value="Kosovo">Kosovo</option>
  <option value="Kuwait">Kuwait</option>
  <option value="Kyrgyzstan">Kyrgyzstan</option>
  <option value="Lao People's Democratic Republic">Lao People's Democratic Republic</option>
  <option value="Latvia">Latvia</option>
  <option value="Lebanon">Lebanon</option>
  <option value="Lesotho">Lesotho</option>
  <option value="Liberia">Liberia</option>
  <option value="Libyan Arab Jamahiriya">Libyan Arab Jamahiriya</option>
  <option value="Liechtenstein">Liechtenstein</option>
  <option value="Lithuania">Lithuania</option>
  <option value="Luxembourg">Luxembourg</option>
  <option value="Macau">Macau</option>
  <option value="Macedonia, The Former Yugoslav Republic Of">Macedonia, The Former Yugoslav Republic Of</option>
  <option value="Madagascar">Madagascar</option>
  <option value="Malawi">Malawi</option>
  <option value="Malaysia">Malaysia</option>
  <option value="Maldives">Maldives</option>
  <option value="Mali">Mali</option>
  <option value="Malta">Malta</option>
  <option value="Marshall Islands">Marshall Islands</option>
  <option value="Martinique">Martinique</option>
  <option value="Mauritania">Mauritania</option>
  <option value="Mauritius">Mauritius</option>
  <option value="Mayotte">Mayotte</option>
  <option value="Mexico">Mexico</option>
  <option value="Micronesia, Federated States Of">Micronesia, Federated States Of</option>
  <option value="Moldova, Republic Of">Moldova, Republic Of</option>
  <option value="Monaco">Monaco</option>
  <option value="Mongolia">Mongolia</option>
  <option value="Montserrat">Montserrat</option>
  <option value="Montenegro">Montenegro</option>
  <option value="Morocco">Morocco</option>
  <option value="Mozambique">Mozambique</option>
  <option value="Myanmar">Myanmar</option>
  <option value="Namibia">Namibia</option>
  <option value="Nauru">Nauru</option>
  <option value="Nepal">Nepal</option>
  <option value="Netherlands">Netherlands</option>
  <option value="Netherlands Antilles">Netherlands Antilles</option>
  <option value="New Caledonia">New Caledonia</option>
  <option value="New Zealand">New Zealand</option>
  <option value="Nicaragua">Nicaragua</option>
  <option value="Niger">Niger</option>
  <option value="Nigeria">Nigeria</option>
  <option value="Niue">Niue</option>
  <option value="Norfolk Island">Norfolk Island</option>
  <option value="Northern Mariana Islands">Northern Mariana Islands</option>
  <option value="Norway">Norway</option>
  <option value="Oman">Oman</option>
  <option value="Pakistan">Pakistan</option>
  <option value="Palau">Palau</option>
  <option value="Palestinian Territory, Occupied">Palestinian Territory, Occupied</option>
  <option value="Panama">Panama</option>
  <option value="Papua New Guinea">Papua New Guinea</option>
  <option value="Paraguay">Paraguay</option>
  <option value="Peru">Peru</option>
  <option value="Philippines">Philippines</option>
  <option value="Pitcairn">Pitcairn</option>
  <option value="Poland">Poland</option>
  <option value="Portugal">Portugal</option>
  <option value="Puerto Rico">Puerto Rico</option>
  <option value="Qatar">Qatar</option>
  <option value="Reunion">Reunion</option>
  <option value="Russian Federation">Russian Federation</option>
  <option value="Rwanda">Rwanda</option>
  <option value="Saint Helena">Saint Helena</option>
  <option value="Saint Kitts And Nevis">Saint Kitts And Nevis</option>
  <option value="Saint Lucia">Saint Lucia</option>
  <option value="Saint Pierre And Miquelon">Saint Pierre And Miquelon</option>
  <option value="Saint Vincent And The Grenadines">Saint Vincent And The Grenadines</option>
  <option value="Samoa">Samoa</option>
  <option value="San Marino">San Marino</option>
  <option value="Sao Tome And Principe">Sao Tome And Principe</option>
  <option value="Saudi Arabia">Saudi Arabia</option>
  <option value="Senegal">Senegal</option>
  <option value="Serbia">Serbia</option>
  <option value="Seychelles">Seychelles</option>
  <option value="Sierra Leone">Sierra Leone</option>
  <option value="Singapore">Singapore</option>
  <option value="Slovakia">Slovakia</option>
  <option value="Slovenia">Slovenia</option>
  <option value="Solomon Islands">Solomon Islands</option>
  <option value="Somalia">Somalia</option>
  <option value="South Africa">South Africa</option>
  <option value="South Georgia And The South Sandwich Islands">South Georgia And The South Sandwich Islands</option>
  <option value="Spain">Spain</option>
  <option value="Sri Lanka">Sri Lanka</option>
  <option value="Sudan">Sudan</option>
  <option value="Suriname">Suriname</option>
  <option value="Svalbard And Jan Mayen">Svalbard And Jan Mayen</option>
  <option value="Swaziland">Swaziland</option>
  <option value="Sweden">Sweden</option>
  <option value="Switzerland">Switzerland</option>
  <option value="Syrian Arab Republic">Syrian Arab Republic</option>
  <option value="Taiwan, Province Of China">Taiwan, Province Of China</option>
  <option value="Tajikistan">Tajikistan</option>
  <option value="Tanzania, United Republic Of">Tanzania, United Republic Of</option>
  <option value="Thailand">Thailand</option>
  <option value="Togo">Togo</option>
  <option value="Tokelau">Tokelau</option>
  <option value="Tonga">Tonga</option>
  <option value="Trinidad And Tobago">Trinidad And Tobago</option>
  <option value="Tunisia">Tunisia</option>
  <option value="Turkey">Turkey</option>
  <option value="Turkmenistan">Turkmenistan</option>
  <option value="Turks And Caicos Islands">Turks And Caicos Islands</option>
  <option value="Tuvalu">Tuvalu</option>
  <option value="Uganda">Uganda</option>
  <option value="Ukraine">Ukraine</option>
  <option value="United Arab Emirates">United Arab Emirates</option>
  <option value="United Kingdom">United Kingdom</option>
  <option value="United States">United States</option>
  <option value="United States Minor Outlying Islands">United States Minor Outlying Islands</option>
  <option value="Uruguay">Uruguay</option>
  <option value="Uzbekistan">Uzbekistan</option>
  <option value="Vanuatu">Vanuatu</option>
  <option value="Venezuela">Venezuela</option>
  <option value="Viet Nam">Viet Nam</option>
  <option value="Virgin Islands, British">Virgin Islands, British</option>
  <option value="Virgin Islands, U.s.">Virgin Islands, U.s.</option>
  <option value="Wallis And Futuna">Wallis And Futuna</option>
  <option value="Western Sahara">Western Sahara</option>
  <option value="Yemen">Yemen</option>
  <option value="Zambia">Zambia</option>
  <option value="Zimbabwe">Zimbabwe</option>
</select>

ghost commented Jul 18, 2016

<select>
  <option value="Afghanistan">Afghanistan</option>
  <option value="Albania">Albania</option>
  <option value="Algeria">Algeria</option>
  <option value="American Samoa">American Samoa</option>
  <option value="Andorra">Andorra</option>
  <option value="Angola">Angola</option>
  <option value="Anguilla">Anguilla</option>
  <option value="Antarctica">Antarctica</option>
  <option value="Antigua And Barbuda">Antigua And Barbuda</option>
  <option value="Argentina">Argentina</option>
  <option value="Armenia">Armenia</option>
  <option value="Aruba">Aruba</option>
  <option value="Australia">Australia</option>
  <option value="Austria">Austria</option>
  <option value="Azerbaijan">Azerbaijan</option>
  <option value="Bahamas">Bahamas</option>
  <option value="Bahrain">Bahrain</option>
  <option value="Bangladesh">Bangladesh</option>
  <option value="Barbados">Barbados</option>
  <option value="Belarus">Belarus</option>
  <option value="Belgium">Belgium</option>
  <option value="Belize">Belize</option>
  <option value="Benin">Benin</option>
  <option value="Bermuda">Bermuda</option>
  <option value="Bhutan">Bhutan</option>
  <option value="Bolivia">Bolivia</option>
  <option value="Bosnia And Herzegovina">Bosnia And Herzegovina</option>
  <option value="Botswana">Botswana</option>
  <option value="Bouvet Island">Bouvet Island</option>
  <option value="Brazil">Brazil</option>
  <option value="British Indian Ocean Territory">British Indian Ocean Territory</option>
  <option value="Brunei Darussalam">Brunei Darussalam</option>
  <option value="Bulgaria">Bulgaria</option>
  <option value="Burkina Faso">Burkina Faso</option>
  <option value="Burundi">Burundi</option>
  <option value="Cambodia">Cambodia</option>
  <option value="Cameroon">Cameroon</option>
  <option value="Canada">Canada</option>
  <option value="Cape Verde">Cape Verde</option>
  <option value="Cayman Islands">Cayman Islands</option>
  <option value="Central African Republic">Central African Republic</option>
  <option value="Chad">Chad</option>
  <option value="Chile">Chile</option>
  <option value="China">China</option>
  <option value="Christmas Island">Christmas Island</option>
  <option value="Cocos (keeling) Islands">Cocos (keeling) Islands</option>
  <option value="Colombia">Colombia</option>
  <option value="Comoros">Comoros</option>
  <option value="Congo">Congo</option>
  <option value="Congo, The Democratic Republic Of The">Congo, The Democratic Republic Of The</option>
  <option value="Cook Islands">Cook Islands</option>
  <option value="Costa Rica">Costa Rica</option>
  <option value="Cote D'ivoire">Cote D'ivoire</option>
  <option value="Croatia">Croatia</option>
  <option value="Cuba">Cuba</option>
  <option value="Cyprus">Cyprus</option>
  <option value="Czech Republic">Czech Republic</option>
  <option value="Denmark">Denmark</option>
  <option value="Djibouti">Djibouti</option>
  <option value="Dominica">Dominica</option>
  <option value="Dominican Republic">Dominican Republic</option>
  <option value="East Timor">East Timor</option>
  <option value="Ecuador">Ecuador</option>
  <option value="Egypt">Egypt</option>
  <option value="El Salvador">El Salvador</option>
  <option value="Equatorial Guinea">Equatorial Guinea</option>
  <option value="Eritrea">Eritrea</option>
  <option value="Estonia">Estonia</option>
  <option value="Ethiopia">Ethiopia</option>
  <option value="Falkland Islands (malvinas)">Falkland Islands (malvinas)</option>
  <option value="Faroe Islands">Faroe Islands</option>
  <option value="Fiji">Fiji</option>
  <option value="Finland">Finland</option>
  <option value="France">France</option>
  <option value="French Guiana">French Guiana</option>
  <option value="French Polynesia">French Polynesia</option>
  <option value="French Southern Territories">French Southern Territories</option>
  <option value="Gabon">Gabon</option>
  <option value="Gambia">Gambia</option>
  <option value="Georgia">Georgia</option>
  <option value="Germany">Germany</option>
  <option value="Ghana">Ghana</option>
  <option value="Gibraltar">Gibraltar</option>
  <option value="Greece">Greece</option>
  <option value="Greenland">Greenland</option>
  <option value="Grenada">Grenada</option>
  <option value="Guadeloupe">Guadeloupe</option>
  <option value="Guam">Guam</option>
  <option value="Guatemala">Guatemala</option>
  <option value="Guinea">Guinea</option>
  <option value="Guinea-bissau">Guinea-bissau</option>
  <option value="Guyana">Guyana</option>
  <option value="Haiti">Haiti</option>
  <option value="Heard Island And Mcdonald Islands">Heard Island And Mcdonald Islands</option>
  <option value="Holy See (vatican City State)">Holy See (vatican City State)</option>
  <option value="Honduras">Honduras</option>
  <option value="Hong Kong">Hong Kong</option>
  <option value="Hungary">Hungary</option>
  <option value="Iceland">Iceland</option>
  <option value="India">India</option>
  <option value="Indonesia">Indonesia</option>
  <option value="Iran, Islamic Republic Of">Iran, Islamic Republic Of</option>
  <option value="Iraq">Iraq</option>
  <option value="Ireland">Ireland</option>
  <option value="Israel">Israel</option>
  <option value="Italy">Italy</option>
  <option value="Jamaica">Jamaica</option>
  <option value="Japan">Japan</option>
  <option value="Jordan">Jordan</option>
  <option value="Kazakstan">Kazakstan</option>
  <option value="Kenya">Kenya</option>
  <option value="Kiribati">Kiribati</option>
  <option value="Korea, Democratic People's Republic Of">Korea, Democratic People's Republic Of</option>
  <option value="Korea, Republic Of">Korea, Republic Of</option>
  <option value="Kosovo">Kosovo</option>
  <option value="Kuwait">Kuwait</option>
  <option value="Kyrgyzstan">Kyrgyzstan</option>
  <option value="Lao People's Democratic Republic">Lao People's Democratic Republic</option>
  <option value="Latvia">Latvia</option>
  <option value="Lebanon">Lebanon</option>
  <option value="Lesotho">Lesotho</option>
  <option value="Liberia">Liberia</option>
  <option value="Libyan Arab Jamahiriya">Libyan Arab Jamahiriya</option>
  <option value="Liechtenstein">Liechtenstein</option>
  <option value="Lithuania">Lithuania</option>
  <option value="Luxembourg">Luxembourg</option>
  <option value="Macau">Macau</option>
  <option value="Macedonia, The Former Yugoslav Republic Of">Macedonia, The Former Yugoslav Republic Of</option>
  <option value="Madagascar">Madagascar</option>
  <option value="Malawi">Malawi</option>
  <option value="Malaysia">Malaysia</option>
  <option value="Maldives">Maldives</option>
  <option value="Mali">Mali</option>
  <option value="Malta">Malta</option>
  <option value="Marshall Islands">Marshall Islands</option>
  <option value="Martinique">Martinique</option>
  <option value="Mauritania">Mauritania</option>
  <option value="Mauritius">Mauritius</option>
  <option value="Mayotte">Mayotte</option>
  <option value="Mexico">Mexico</option>
  <option value="Micronesia, Federated States Of">Micronesia, Federated States Of</option>
  <option value="Moldova, Republic Of">Moldova, Republic Of</option>
  <option value="Monaco">Monaco</option>
  <option value="Mongolia">Mongolia</option>
  <option value="Montserrat">Montserrat</option>
  <option value="Montenegro">Montenegro</option>
  <option value="Morocco">Morocco</option>
  <option value="Mozambique">Mozambique</option>
  <option value="Myanmar">Myanmar</option>
  <option value="Namibia">Namibia</option>
  <option value="Nauru">Nauru</option>
  <option value="Nepal">Nepal</option>
  <option value="Netherlands">Netherlands</option>
  <option value="Netherlands Antilles">Netherlands Antilles</option>
  <option value="New Caledonia">New Caledonia</option>
  <option value="New Zealand">New Zealand</option>
  <option value="Nicaragua">Nicaragua</option>
  <option value="Niger">Niger</option>
  <option value="Nigeria">Nigeria</option>
  <option value="Niue">Niue</option>
  <option value="Norfolk Island">Norfolk Island</option>
  <option value="Northern Mariana Islands">Northern Mariana Islands</option>
  <option value="Norway">Norway</option>
  <option value="Oman">Oman</option>
  <option value="Pakistan">Pakistan</option>
  <option value="Palau">Palau</option>
  <option value="Palestinian Territory, Occupied">Palestinian Territory, Occupied</option>
  <option value="Panama">Panama</option>
  <option value="Papua New Guinea">Papua New Guinea</option>
  <option value="Paraguay">Paraguay</option>
  <option value="Peru">Peru</option>
  <option value="Philippines">Philippines</option>
  <option value="Pitcairn">Pitcairn</option>
  <option value="Poland">Poland</option>
  <option value="Portugal">Portugal</option>
  <option value="Puerto Rico">Puerto Rico</option>
  <option value="Qatar">Qatar</option>
  <option value="Reunion">Reunion</option>
  <option value="Russian Federation">Russian Federation</option>
  <option value="Rwanda">Rwanda</option>
  <option value="Saint Helena">Saint Helena</option>
  <option value="Saint Kitts And Nevis">Saint Kitts And Nevis</option>
  <option value="Saint Lucia">Saint Lucia</option>
  <option value="Saint Pierre And Miquelon">Saint Pierre And Miquelon</option>
  <option value="Saint Vincent And The Grenadines">Saint Vincent And The Grenadines</option>
  <option value="Samoa">Samoa</option>
  <option value="San Marino">San Marino</option>
  <option value="Sao Tome And Principe">Sao Tome And Principe</option>
  <option value="Saudi Arabia">Saudi Arabia</option>
  <option value="Senegal">Senegal</option>
  <option value="Serbia">Serbia</option>
  <option value="Seychelles">Seychelles</option>
  <option value="Sierra Leone">Sierra Leone</option>
  <option value="Singapore">Singapore</option>
  <option value="Slovakia">Slovakia</option>
  <option value="Slovenia">Slovenia</option>
  <option value="Solomon Islands">Solomon Islands</option>
  <option value="Somalia">Somalia</option>
  <option value="South Africa">South Africa</option>
  <option value="South Georgia And The South Sandwich Islands">South Georgia And The South Sandwich Islands</option>
  <option value="Spain">Spain</option>
  <option value="Sri Lanka">Sri Lanka</option>
  <option value="Sudan">Sudan</option>
  <option value="Suriname">Suriname</option>
  <option value="Svalbard And Jan Mayen">Svalbard And Jan Mayen</option>
  <option value="Swaziland">Swaziland</option>
  <option value="Sweden">Sweden</option>
  <option value="Switzerland">Switzerland</option>
  <option value="Syrian Arab Republic">Syrian Arab Republic</option>
  <option value="Taiwan, Province Of China">Taiwan, Province Of China</option>
  <option value="Tajikistan">Tajikistan</option>
  <option value="Tanzania, United Republic Of">Tanzania, United Republic Of</option>
  <option value="Thailand">Thailand</option>
  <option value="Togo">Togo</option>
  <option value="Tokelau">Tokelau</option>
  <option value="Tonga">Tonga</option>
  <option value="Trinidad And Tobago">Trinidad And Tobago</option>
  <option value="Tunisia">Tunisia</option>
  <option value="Turkey">Turkey</option>
  <option value="Turkmenistan">Turkmenistan</option>
  <option value="Turks And Caicos Islands">Turks And Caicos Islands</option>
  <option value="Tuvalu">Tuvalu</option>
  <option value="Uganda">Uganda</option>
  <option value="Ukraine">Ukraine</option>
  <option value="United Arab Emirates">United Arab Emirates</option>
  <option value="United Kingdom">United Kingdom</option>
  <option value="United States">United States</option>
  <option value="United States Minor Outlying Islands">United States Minor Outlying Islands</option>
  <option value="Uruguay">Uruguay</option>
  <option value="Uzbekistan">Uzbekistan</option>
  <option value="Vanuatu">Vanuatu</option>
  <option value="Venezuela">Venezuela</option>
  <option value="Viet Nam">Viet Nam</option>
  <option value="Virgin Islands, British">Virgin Islands, British</option>
  <option value="Virgin Islands, U.s.">Virgin Islands, U.s.</option>
  <option value="Wallis And Futuna">Wallis And Futuna</option>
  <option value="Western Sahara">Western Sahara</option>
  <option value="Yemen">Yemen</option>
  <option value="Zambia">Zambia</option>
  <option value="Zimbabwe">Zimbabwe</option>
</select>
@cedricbousmanne

This comment has been minimized.

Show comment Hide comment
@cedricbousmanne

cedricbousmanne Aug 23, 2016

Here's the simplied YAML list (country_code to name)

countries:
  AF:"Afghanistan"
  AL:"Albania"
  DZ:"Algeria"
  AS:"American Samoa"
  AD:"Andorra"
  AO:"Angola"
  AI:"Anguilla"
  AQ:"Antarctica"
  AG:"Antigua And Barbuda"
  AR:"Argentina"
  AM:"Armenia"
  AW:"Aruba"
  AU:"Australia"
  AT:"Austria"
  AZ:"Azerbaijan"
  BS:"Bahamas"
  BH:"Bahrain"
  BD:"Bangladesh"
  BB:"Barbados"
  BY:"Belarus"
  BE:"Belgium"
  BZ:"Belize"
  BJ:"Benin"
  BM:"Bermuda"
  BT:"Bhutan"
  BO:"Bolivia"
  BA:"Bosnia And Herzegovina"
  BW:"Botswana"
  BV:"Bouvet Island"
  BR:"Brazil"
  IO:"British Indian Ocean Territory"
  BN:"Brunei Darussalam"
  BG:"Bulgaria"
  BF:"Burkina Faso"
  BI:"Burundi"
  KH:"Cambodia"
  CM:"Cameroon"
  CA:"Canada"
  CV:"Cape Verde"
  KY:"Cayman Islands"
  CF:"Central African Republic"
  TD:"Chad"
  CL:"Chile"
  CN:"China"
  CX:"Christmas Island"
  CC:"Cocos (keeling) Islands"
  CO:"Colombia"
  KM:"Comoros"
  CG:"Congo"
  CD:"Congo, The Democratic Republic Of The"
  CK:"Cook Islands"
  CR:"Costa Rica"
  CI:"Cote D'ivoire"
  HR:"Croatia"
  CU:"Cuba"
  CY:"Cyprus"
  CZ:"Czech Republic"
  DK:"Denmark"
  DJ:"Djibouti"
  DM:"Dominica"
  DO:"Dominican Republic"
  TP:"East Timor"
  EC:"Ecuador"
  EG:"Egypt"
  SV:"El Salvador"
  GQ:"Equatorial Guinea"
  ER:"Eritrea"
  EE:"Estonia"
  ET:"Ethiopia"
  FK:"Falkland Islands (malvinas)"
  FO:"Faroe Islands"
  FJ:"Fiji"
  FI:"Finland"
  FR:"France"
  GF:"French Guiana"
  PF:"French Polynesia"
  TF:"French Southern Territories"
  GA:"Gabon"
  GM:"Gambia"
  GE:"Georgia"
  DE:"Germany"
  GH:"Ghana"
  GI:"Gibraltar"
  GR:"Greece"
  GL:"Greenland"
  GD:"Grenada"
  GP:"Guadeloupe"
  GU:"Guam"
  GT:"Guatemala"
  GN:"Guinea"
  GW:"Guinea-bissau"
  GY:"Guyana"
  HT:"Haiti"
  HM:"Heard Island And Mcdonald Islands"
  VA:"Holy See (vatican City State)"
  HN:"Honduras"
  HK:"Hong Kong"
  HU:"Hungary"
  IS:"Iceland"
  IN:"India"
  ID:"Indonesia"
  IR:"Iran, Islamic Republic Of"
  IQ:"Iraq"
  IE:"Ireland"
  IL:"Israel"
  IT:"Italy"
  JM:"Jamaica"
  JP:"Japan"
  JO:"Jordan"
  KZ:"Kazakstan"
  KE:"Kenya"
  KI:"Kiribati"
  KP:"Korea, Democratic People's Republic Of"
  KR:"Korea, Republic Of"
  KV:"Kosovo"
  KW:"Kuwait"
  KG:"Kyrgyzstan"
  LA:"Lao People's Democratic Republic"
  LV:"Latvia"
  LB:"Lebanon"
  LS:"Lesotho"
  LR:"Liberia"
  LY:"Libyan Arab Jamahiriya"
  LI:"Liechtenstein"
  LT:"Lithuania"
  LU:"Luxembourg"
  MO:"Macau"
  MK:"Macedonia, The Former Yugoslav Republic Of"
  MG:"Madagascar"
  MW:"Malawi"
  MY:"Malaysia"
  MV:"Maldives"
  ML:"Mali"
  MT:"Malta"
  MH:"Marshall Islands"
  MQ:"Martinique"
  MR:"Mauritania"
  MU:"Mauritius"
  YT:"Mayotte"
  MX:"Mexico"
  FM:"Micronesia, Federated States Of"
  MD:"Moldova, Republic Of"
  MC:"Monaco"
  MN:"Mongolia"
  MS:"Montserrat"
  ME:"Montenegro"
  MA:"Morocco"
  MZ:"Mozambique"
  MM:"Myanmar"
  NA:"Namibia"
  NR:"Nauru"
  NP:"Nepal"
  NL:"Netherlands"
  AN:"Netherlands Antilles"
  NC:"New Caledonia"
  NZ:"New Zealand"
  NI:"Nicaragua"
  NE:"Niger"
  NG:"Nigeria"
  NU:"Niue"
  NF:"Norfolk Island"
  MP:"Northern Mariana Islands"
  NO:"Norway"
  OM:"Oman"
  PK:"Pakistan"
  PW:"Palau"
  PS:"Palestinian Territory, Occupied"
  PA:"Panama"
  PG:"Papua New Guinea"
  PY:"Paraguay"
  PE:"Peru"
  PH:"Philippines"
  PN:"Pitcairn"
  PL:"Poland"
  PT:"Portugal"
  PR:"Puerto Rico"
  QA:"Qatar"
  RE:"Reunion"
  RO:"Romania"
  RU:"Russian Federation"
  RW:"Rwanda"
  SH:"Saint Helena"
  KN:"Saint Kitts And Nevis"
  LC:"Saint Lucia"
  PM:"Saint Pierre And Miquelon"
  VC:"Saint Vincent And The Grenadines"
  WS:"Samoa"
  SM:"San Marino"
  ST:"Sao Tome And Principe"
  SA:"Saudi Arabia"
  SN:"Senegal"
  RS:"Serbia"
  SC:"Seychelles"
  SL:"Sierra Leone"
  SG:"Singapore"
  SK:"Slovakia"
  SI:"Slovenia"
  SB:"Solomon Islands"
  SO:"Somalia"
  ZA:"South Africa"
  GS:"South Georgia And The South Sandwich Islands"
  ES:"Spain"
  LK:"Sri Lanka"
  SD:"Sudan"
  SR:"Suriname"
  SJ:"Svalbard And Jan Mayen"
  SZ:"Swaziland"
  SE:"Sweden"
  CH:"Switzerland"
  SY:"Syrian Arab Republic"
  TW:"Taiwan, Province Of China"
  TJ:"Tajikistan"
  TZ:"Tanzania, United Republic Of"
  TH:"Thailand"
  TG:"Togo"
  TK:"Tokelau"
  TO:"Tonga"
  TT:"Trinidad And Tobago"
  TN:"Tunisia"
  TR:"Turkey"
  TM:"Turkmenistan"
  TC:"Turks And Caicos Islands"
  TV:"Tuvalu"
  UG:"Uganda"
  UA:"Ukraine"
  AE:"United Arab Emirates"
  GB:"United Kingdom"
  US:"United States"
  UM:"United States Minor Outlying Islands"
  UY:"Uruguay"
  UZ:"Uzbekistan"
  VU:"Vanuatu"
  VE:"Venezuela"
  VN:"Viet Nam"
  VG:"Virgin Islands, British"
  VI:"Virgin Islands, U.s."
  WF:"Wallis And Futuna"
  EH:"Western Sahara"
  YE:"Yemen"
  ZM:"Zambia"
  ZW:"Zimbabwe"

Here's the simplied YAML list (country_code to name)

countries:
  AF:"Afghanistan"
  AL:"Albania"
  DZ:"Algeria"
  AS:"American Samoa"
  AD:"Andorra"
  AO:"Angola"
  AI:"Anguilla"
  AQ:"Antarctica"
  AG:"Antigua And Barbuda"
  AR:"Argentina"
  AM:"Armenia"
  AW:"Aruba"
  AU:"Australia"
  AT:"Austria"
  AZ:"Azerbaijan"
  BS:"Bahamas"
  BH:"Bahrain"
  BD:"Bangladesh"
  BB:"Barbados"
  BY:"Belarus"
  BE:"Belgium"
  BZ:"Belize"
  BJ:"Benin"
  BM:"Bermuda"
  BT:"Bhutan"
  BO:"Bolivia"
  BA:"Bosnia And Herzegovina"
  BW:"Botswana"
  BV:"Bouvet Island"
  BR:"Brazil"
  IO:"British Indian Ocean Territory"
  BN:"Brunei Darussalam"
  BG:"Bulgaria"
  BF:"Burkina Faso"
  BI:"Burundi"
  KH:"Cambodia"
  CM:"Cameroon"
  CA:"Canada"
  CV:"Cape Verde"
  KY:"Cayman Islands"
  CF:"Central African Republic"
  TD:"Chad"
  CL:"Chile"
  CN:"China"
  CX:"Christmas Island"
  CC:"Cocos (keeling) Islands"
  CO:"Colombia"
  KM:"Comoros"
  CG:"Congo"
  CD:"Congo, The Democratic Republic Of The"
  CK:"Cook Islands"
  CR:"Costa Rica"
  CI:"Cote D'ivoire"
  HR:"Croatia"
  CU:"Cuba"
  CY:"Cyprus"
  CZ:"Czech Republic"
  DK:"Denmark"
  DJ:"Djibouti"
  DM:"Dominica"
  DO:"Dominican Republic"
  TP:"East Timor"
  EC:"Ecuador"
  EG:"Egypt"
  SV:"El Salvador"
  GQ:"Equatorial Guinea"
  ER:"Eritrea"
  EE:"Estonia"
  ET:"Ethiopia"
  FK:"Falkland Islands (malvinas)"
  FO:"Faroe Islands"
  FJ:"Fiji"
  FI:"Finland"
  FR:"France"
  GF:"French Guiana"
  PF:"French Polynesia"
  TF:"French Southern Territories"
  GA:"Gabon"
  GM:"Gambia"
  GE:"Georgia"
  DE:"Germany"
  GH:"Ghana"
  GI:"Gibraltar"
  GR:"Greece"
  GL:"Greenland"
  GD:"Grenada"
  GP:"Guadeloupe"
  GU:"Guam"
  GT:"Guatemala"
  GN:"Guinea"
  GW:"Guinea-bissau"
  GY:"Guyana"
  HT:"Haiti"
  HM:"Heard Island And Mcdonald Islands"
  VA:"Holy See (vatican City State)"
  HN:"Honduras"
  HK:"Hong Kong"
  HU:"Hungary"
  IS:"Iceland"
  IN:"India"
  ID:"Indonesia"
  IR:"Iran, Islamic Republic Of"
  IQ:"Iraq"
  IE:"Ireland"
  IL:"Israel"
  IT:"Italy"
  JM:"Jamaica"
  JP:"Japan"
  JO:"Jordan"
  KZ:"Kazakstan"
  KE:"Kenya"
  KI:"Kiribati"
  KP:"Korea, Democratic People's Republic Of"
  KR:"Korea, Republic Of"
  KV:"Kosovo"
  KW:"Kuwait"
  KG:"Kyrgyzstan"
  LA:"Lao People's Democratic Republic"
  LV:"Latvia"
  LB:"Lebanon"
  LS:"Lesotho"
  LR:"Liberia"
  LY:"Libyan Arab Jamahiriya"
  LI:"Liechtenstein"
  LT:"Lithuania"
  LU:"Luxembourg"
  MO:"Macau"
  MK:"Macedonia, The Former Yugoslav Republic Of"
  MG:"Madagascar"
  MW:"Malawi"
  MY:"Malaysia"
  MV:"Maldives"
  ML:"Mali"
  MT:"Malta"
  MH:"Marshall Islands"
  MQ:"Martinique"
  MR:"Mauritania"
  MU:"Mauritius"
  YT:"Mayotte"
  MX:"Mexico"
  FM:"Micronesia, Federated States Of"
  MD:"Moldova, Republic Of"
  MC:"Monaco"
  MN:"Mongolia"
  MS:"Montserrat"
  ME:"Montenegro"
  MA:"Morocco"
  MZ:"Mozambique"
  MM:"Myanmar"
  NA:"Namibia"
  NR:"Nauru"
  NP:"Nepal"
  NL:"Netherlands"
  AN:"Netherlands Antilles"
  NC:"New Caledonia"
  NZ:"New Zealand"
  NI:"Nicaragua"
  NE:"Niger"
  NG:"Nigeria"
  NU:"Niue"
  NF:"Norfolk Island"
  MP:"Northern Mariana Islands"
  NO:"Norway"
  OM:"Oman"
  PK:"Pakistan"
  PW:"Palau"
  PS:"Palestinian Territory, Occupied"
  PA:"Panama"
  PG:"Papua New Guinea"
  PY:"Paraguay"
  PE:"Peru"
  PH:"Philippines"
  PN:"Pitcairn"
  PL:"Poland"
  PT:"Portugal"
  PR:"Puerto Rico"
  QA:"Qatar"
  RE:"Reunion"
  RO:"Romania"
  RU:"Russian Federation"
  RW:"Rwanda"
  SH:"Saint Helena"
  KN:"Saint Kitts And Nevis"
  LC:"Saint Lucia"
  PM:"Saint Pierre And Miquelon"
  VC:"Saint Vincent And The Grenadines"
  WS:"Samoa"
  SM:"San Marino"
  ST:"Sao Tome And Principe"
  SA:"Saudi Arabia"
  SN:"Senegal"
  RS:"Serbia"
  SC:"Seychelles"
  SL:"Sierra Leone"
  SG:"Singapore"
  SK:"Slovakia"
  SI:"Slovenia"
  SB:"Solomon Islands"
  SO:"Somalia"
  ZA:"South Africa"
  GS:"South Georgia And The South Sandwich Islands"
  ES:"Spain"
  LK:"Sri Lanka"
  SD:"Sudan"
  SR:"Suriname"
  SJ:"Svalbard And Jan Mayen"
  SZ:"Swaziland"
  SE:"Sweden"
  CH:"Switzerland"
  SY:"Syrian Arab Republic"
  TW:"Taiwan, Province Of China"
  TJ:"Tajikistan"
  TZ:"Tanzania, United Republic Of"
  TH:"Thailand"
  TG:"Togo"
  TK:"Tokelau"
  TO:"Tonga"
  TT:"Trinidad And Tobago"
  TN:"Tunisia"
  TR:"Turkey"
  TM:"Turkmenistan"
  TC:"Turks And Caicos Islands"
  TV:"Tuvalu"
  UG:"Uganda"
  UA:"Ukraine"
  AE:"United Arab Emirates"
  GB:"United Kingdom"
  US:"United States"
  UM:"United States Minor Outlying Islands"
  UY:"Uruguay"
  UZ:"Uzbekistan"
  VU:"Vanuatu"
  VE:"Venezuela"
  VN:"Viet Nam"
  VG:"Virgin Islands, British"
  VI:"Virgin Islands, U.s."
  WF:"Wallis And Futuna"
  EH:"Western Sahara"
  YE:"Yemen"
  ZM:"Zambia"
  ZW:"Zimbabwe"
@taoski

This comment has been minimized.

Show comment Hide comment
@taoski

taoski Feb 4, 2017

Just a straight list of the country names in CSV format.

Afghanistan,Albania,Algeria,American Samoa,Andorra,Angola,Anguilla,Antarctica,Antigua And Barbuda,Argentina,Armenia,Aruba,Australia,
Austria,Azerbaijan,Bahamas,Bahrain,Bangladesh,Barbados,Belarus,Belgium,Belize,Benin,Bermuda,Bhutan,Bolivia,Bosnia And Herzegovina,
Botswana,Bouvet Island,Brazil,British Indian Ocean Territory,Brunei Darussalam,Bulgaria,Burkina Faso,Burundi,Cambodia,Cameroon,Canada,Cape
Verde,Cayman Islands,Central African Republic,Chad,Chile,China,Christmas Island,Cocos (keeling) Islands,Colombia,Comoros,Congo,Congo,The
Democratic Republic Of The,Cook Islands,Costa Rica,Cote D'ivoire,Croatia,Cuba,Cyprus,Czech Republic,Denmark,Djibouti,Dominica,Dominican
Republic,East Timor,Ecuador,Egypt,El Salvador,Equatorial Guinea,Eritrea,Estonia,Ethiopia,Falkland Islands (malvinas),Faroe Islands,Fiji,
Finland,France,French Guiana,French Polynesia,French Southern Territories,Gabon,Gambia,Georgia,Germany,Ghana,Gibraltar,Greece,Greenland,
Grenada,Guadeloupe,Guam,Guatemala,Guinea,Guinea-bissau,Guyana,Haiti,Heard Island And Mcdonald Islands,Holy See (vatican City State),
Honduras,Hong Kong,Hungary,Iceland,India,Indonesia,Iran,Islamic Republic Of,Iraq,Ireland,Israel,Italy,Jamaica,Japan,Jordan,Kazakstan,
Kenya,Kiribati,Korea,Democratic People's Republic Of,Korea,Republic Of,Kosovo,Kuwait,Kyrgyzstan,Lao People's Democratic Republic,Latvia,
Lebanon,Lesotho,Liberia,Libyan Arab Jamahiriya,Liechtenstein,Lithuania,Luxembourg,Macau,Macedonia,The Former Yugoslav Republic Of,
Madagascar,Malawi,Malaysia,Maldives,Mali,Malta,Marshall Islands,Martinique,Mauritania,Mauritius,Mayotte,Mexico,Micronesia,Federated
States Of,Moldova,Republic Of,Monaco,Mongolia,Montserrat,Montenegro,Morocco,Mozambique,Myanmar,Namibia,Nauru,Nepal,Netherlands,
Netherlands Antilles,New Caledonia,New Zealand,Nicaragua,Niger,Nigeria,Niue,Norfolk Island,Northern Mariana Islands,Norway,Oman,Pakistan,
Palau,Palestinian Territory,Occupied,Panama,Papua New Guinea,Paraguay,Peru,Philippines,Pitcairn,Poland,Portugal,Puerto Rico,Qatar,
Reunion,Romania,Russian Federation,Rwanda,Saint Helena,Saint Kitts And Nevis,Saint Lucia,Saint Pierre And Miquelon,Saint Vincent And The
Grenadines,Samoa,San Marino,Sao Tome And Principe,Saudi Arabia,Senegal,Serbia,Seychelles,Sierra Leone,Singapore,Slovakia,Slovenia,Solomon
Islands,Somalia,South Africa,South Georgia And The South Sandwich Islands,Spain,Sri Lanka,Sudan,Suriname,Svalbard And Jan Mayen,Swaziland,
Sweden,Switzerland,Syrian Arab Republic,Taiwan,Province Of China,Tajikistan,Tanzania,United Republic Of,Thailand,Togo,Tokelau,Tonga,
Trinidad And Tobago,Tunisia,Turkey,Turkmenistan,Turks And Caicos Islands,Tuvalu,Uganda,Ukraine,United Arab Emirates,United Kingdom,United
States,United States Minor Outlying Islands,Uruguay,Uzbekistan,Vanuatu,Venezuela,Viet Nam,Virgin Islands,British,Virgin Islands,U.s.,
Wallis And Futuna,Western Sahara,Yemen,Zambia,Zimbabwe

taoski commented Feb 4, 2017

Just a straight list of the country names in CSV format.

Afghanistan,Albania,Algeria,American Samoa,Andorra,Angola,Anguilla,Antarctica,Antigua And Barbuda,Argentina,Armenia,Aruba,Australia,
Austria,Azerbaijan,Bahamas,Bahrain,Bangladesh,Barbados,Belarus,Belgium,Belize,Benin,Bermuda,Bhutan,Bolivia,Bosnia And Herzegovina,
Botswana,Bouvet Island,Brazil,British Indian Ocean Territory,Brunei Darussalam,Bulgaria,Burkina Faso,Burundi,Cambodia,Cameroon,Canada,Cape
Verde,Cayman Islands,Central African Republic,Chad,Chile,China,Christmas Island,Cocos (keeling) Islands,Colombia,Comoros,Congo,Congo,The
Democratic Republic Of The,Cook Islands,Costa Rica,Cote D'ivoire,Croatia,Cuba,Cyprus,Czech Republic,Denmark,Djibouti,Dominica,Dominican
Republic,East Timor,Ecuador,Egypt,El Salvador,Equatorial Guinea,Eritrea,Estonia,Ethiopia,Falkland Islands (malvinas),Faroe Islands,Fiji,
Finland,France,French Guiana,French Polynesia,French Southern Territories,Gabon,Gambia,Georgia,Germany,Ghana,Gibraltar,Greece,Greenland,
Grenada,Guadeloupe,Guam,Guatemala,Guinea,Guinea-bissau,Guyana,Haiti,Heard Island And Mcdonald Islands,Holy See (vatican City State),
Honduras,Hong Kong,Hungary,Iceland,India,Indonesia,Iran,Islamic Republic Of,Iraq,Ireland,Israel,Italy,Jamaica,Japan,Jordan,Kazakstan,
Kenya,Kiribati,Korea,Democratic People's Republic Of,Korea,Republic Of,Kosovo,Kuwait,Kyrgyzstan,Lao People's Democratic Republic,Latvia,
Lebanon,Lesotho,Liberia,Libyan Arab Jamahiriya,Liechtenstein,Lithuania,Luxembourg,Macau,Macedonia,The Former Yugoslav Republic Of,
Madagascar,Malawi,Malaysia,Maldives,Mali,Malta,Marshall Islands,Martinique,Mauritania,Mauritius,Mayotte,Mexico,Micronesia,Federated
States Of,Moldova,Republic Of,Monaco,Mongolia,Montserrat,Montenegro,Morocco,Mozambique,Myanmar,Namibia,Nauru,Nepal,Netherlands,
Netherlands Antilles,New Caledonia,New Zealand,Nicaragua,Niger,Nigeria,Niue,Norfolk Island,Northern Mariana Islands,Norway,Oman,Pakistan,
Palau,Palestinian Territory,Occupied,Panama,Papua New Guinea,Paraguay,Peru,Philippines,Pitcairn,Poland,Portugal,Puerto Rico,Qatar,
Reunion,Romania,Russian Federation,Rwanda,Saint Helena,Saint Kitts And Nevis,Saint Lucia,Saint Pierre And Miquelon,Saint Vincent And The
Grenadines,Samoa,San Marino,Sao Tome And Principe,Saudi Arabia,Senegal,Serbia,Seychelles,Sierra Leone,Singapore,Slovakia,Slovenia,Solomon
Islands,Somalia,South Africa,South Georgia And The South Sandwich Islands,Spain,Sri Lanka,Sudan,Suriname,Svalbard And Jan Mayen,Swaziland,
Sweden,Switzerland,Syrian Arab Republic,Taiwan,Province Of China,Tajikistan,Tanzania,United Republic Of,Thailand,Togo,Tokelau,Tonga,
Trinidad And Tobago,Tunisia,Turkey,Turkmenistan,Turks And Caicos Islands,Tuvalu,Uganda,Ukraine,United Arab Emirates,United Kingdom,United
States,United States Minor Outlying Islands,Uruguay,Uzbekistan,Vanuatu,Venezuela,Viet Nam,Virgin Islands,British,Virgin Islands,U.s.,
Wallis And Futuna,Western Sahara,Yemen,Zambia,Zimbabwe
@thelinuxer

This comment has been minimized.

Show comment Hide comment
@thelinuxer

thelinuxer Sep 4, 2017

Is there a mapping between nationality and country code ?

Is there a mapping between nationality and country code ?

@kaungmyatlwin

This comment has been minimized.

Show comment Hide comment
@kaungmyatlwin

kaungmyatlwin Sep 8, 2017

Contributing JSON extract from https://restcountries.eu/rest/v2/all.

[
    "Afghanistan",
    "Åland Islands",
    "Albania",
    "Algeria",
    "American Samoa",
    "Andorra",
    "Angola",
    "Anguilla",
    "Antarctica",
    "Antigua and Barbuda",
    "Argentina",
    "Armenia",
    "Aruba",
    "Australia",
    "Austria",
    "Azerbaijan",
    "Bahamas",
    "Bahrain",
    "Bangladesh",
    "Barbados",
    "Belarus",
    "Belgium",
    "Belize",
    "Benin",
    "Bermuda",
    "Bhutan",
    "Bolivia (Plurinational State of)",
    "Bonaire, Sint Eustatius and Saba",
    "Bosnia and Herzegovina",
    "Botswana",
    "Bouvet Island",
    "Brazil",
    "British Indian Ocean Territory",
    "United States Minor Outlying Islands",
    "Virgin Islands (British)",
    "Virgin Islands (U.S.)",
    "Brunei Darussalam",
    "Bulgaria",
    "Burkina Faso",
    "Burundi",
    "Cambodia",
    "Cameroon",
    "Canada",
    "Cabo Verde",
    "Cayman Islands",
    "Central African Republic",
    "Chad",
    "Chile",
    "China",
    "Christmas Island",
    "Cocos (Keeling) Islands",
    "Colombia",
    "Comoros",
    "Congo",
    "Congo (Democratic Republic of the)",
    "Cook Islands",
    "Costa Rica",
    "Croatia",
    "Cuba",
    "Curaçao",
    "Cyprus",
    "Czech Republic",
    "Denmark",
    "Djibouti",
    "Dominica",
    "Dominican Republic",
    "Ecuador",
    "Egypt",
    "El Salvador",
    "Equatorial Guinea",
    "Eritrea",
    "Estonia",
    "Ethiopia",
    "Falkland Islands (Malvinas)",
    "Faroe Islands",
    "Fiji",
    "Finland",
    "France",
    "French Guiana",
    "French Polynesia",
    "French Southern Territories",
    "Gabon",
    "Gambia",
    "Georgia",
    "Germany",
    "Ghana",
    "Gibraltar",
    "Greece",
    "Greenland",
    "Grenada",
    "Guadeloupe",
    "Guam",
    "Guatemala",
    "Guernsey",
    "Guinea",
    "Guinea-Bissau",
    "Guyana",
    "Haiti",
    "Heard Island and McDonald Islands",
    "Holy See",
    "Honduras",
    "Hong Kong",
    "Hungary",
    "Iceland",
    "India",
    "Indonesia",
    "Côte d'Ivoire",
    "Iran (Islamic Republic of)",
    "Iraq",
    "Ireland",
    "Isle of Man",
    "Israel",
    "Italy",
    "Jamaica",
    "Japan",
    "Jersey",
    "Jordan",
    "Kazakhstan",
    "Kenya",
    "Kiribati",
    "Kuwait",
    "Kyrgyzstan",
    "Lao People's Democratic Republic",
    "Latvia",
    "Lebanon",
    "Lesotho",
    "Liberia",
    "Libya",
    "Liechtenstein",
    "Lithuania",
    "Luxembourg",
    "Macao",
    "Macedonia (the former Yugoslav Republic of)",
    "Madagascar",
    "Malawi",
    "Malaysia",
    "Maldives",
    "Mali",
    "Malta",
    "Marshall Islands",
    "Martinique",
    "Mauritania",
    "Mauritius",
    "Mayotte",
    "Mexico",
    "Micronesia (Federated States of)",
    "Moldova (Republic of)",
    "Monaco",
    "Mongolia",
    "Montenegro",
    "Montserrat",
    "Morocco",
    "Mozambique",
    "Myanmar",
    "Namibia",
    "Nauru",
    "Nepal",
    "Netherlands",
    "New Caledonia",
    "New Zealand",
    "Nicaragua",
    "Niger",
    "Nigeria",
    "Niue",
    "Norfolk Island",
    "Korea (Democratic People's Republic of)",
    "Northern Mariana Islands",
    "Norway",
    "Oman",
    "Pakistan",
    "Palau",
    "Palestine, State of",
    "Panama",
    "Papua New Guinea",
    "Paraguay",
    "Peru",
    "Philippines",
    "Pitcairn",
    "Poland",
    "Portugal",
    "Puerto Rico",
    "Qatar",
    "Republic of Kosovo",
    "Réunion",
    "Romania",
    "Russian Federation",
    "Rwanda",
    "Saint Barthélemy",
    "Saint Helena, Ascension and Tristan da Cunha",
    "Saint Kitts and Nevis",
    "Saint Lucia",
    "Saint Martin (French part)",
    "Saint Pierre and Miquelon",
    "Saint Vincent and the Grenadines",
    "Samoa",
    "San Marino",
    "Sao Tome and Principe",
    "Saudi Arabia",
    "Senegal",
    "Serbia",
    "Seychelles",
    "Sierra Leone",
    "Singapore",
    "Sint Maarten (Dutch part)",
    "Slovakia",
    "Slovenia",
    "Solomon Islands",
    "Somalia",
    "South Africa",
    "South Georgia and the South Sandwich Islands",
    "Korea (Republic of)",
    "South Sudan",
    "Spain",
    "Sri Lanka",
    "Sudan",
    "Suriname",
    "Svalbard and Jan Mayen",
    "Swaziland",
    "Sweden",
    "Switzerland",
    "Syrian Arab Republic",
    "Taiwan",
    "Tajikistan",
    "Tanzania, United Republic of",
    "Thailand",
    "Timor-Leste",
    "Togo",
    "Tokelau",
    "Tonga",
    "Trinidad and Tobago",
    "Tunisia",
    "Turkey",
    "Turkmenistan",
    "Turks and Caicos Islands",
    "Tuvalu",
    "Uganda",
    "Ukraine",
    "United Arab Emirates",
    "United Kingdom of Great Britain and Northern Ireland",
    "United States of America",
    "Uruguay",
    "Uzbekistan",
    "Vanuatu",
    "Venezuela (Bolivarian Republic of)",
    "Viet Nam",
    "Wallis and Futuna",
    "Western Sahara",
    "Yemen",
    "Zambia",
    "Zimbabwe"
]

Contributing JSON extract from https://restcountries.eu/rest/v2/all.

[
    "Afghanistan",
    "Åland Islands",
    "Albania",
    "Algeria",
    "American Samoa",
    "Andorra",
    "Angola",
    "Anguilla",
    "Antarctica",
    "Antigua and Barbuda",
    "Argentina",
    "Armenia",
    "Aruba",
    "Australia",
    "Austria",
    "Azerbaijan",
    "Bahamas",
    "Bahrain",
    "Bangladesh",
    "Barbados",
    "Belarus",
    "Belgium",
    "Belize",
    "Benin",
    "Bermuda",
    "Bhutan",
    "Bolivia (Plurinational State of)",
    "Bonaire, Sint Eustatius and Saba",
    "Bosnia and Herzegovina",
    "Botswana",
    "Bouvet Island",
    "Brazil",
    "British Indian Ocean Territory",
    "United States Minor Outlying Islands",
    "Virgin Islands (British)",
    "Virgin Islands (U.S.)",
    "Brunei Darussalam",
    "Bulgaria",
    "Burkina Faso",
    "Burundi",
    "Cambodia",
    "Cameroon",
    "Canada",
    "Cabo Verde",
    "Cayman Islands",
    "Central African Republic",
    "Chad",
    "Chile",
    "China",
    "Christmas Island",
    "Cocos (Keeling) Islands",
    "Colombia",
    "Comoros",
    "Congo",
    "Congo (Democratic Republic of the)",
    "Cook Islands",
    "Costa Rica",
    "Croatia",
    "Cuba",
    "Curaçao",
    "Cyprus",
    "Czech Republic",
    "Denmark",
    "Djibouti",
    "Dominica",
    "Dominican Republic",
    "Ecuador",
    "Egypt",
    "El Salvador",
    "Equatorial Guinea",
    "Eritrea",
    "Estonia",
    "Ethiopia",
    "Falkland Islands (Malvinas)",
    "Faroe Islands",
    "Fiji",
    "Finland",
    "France",
    "French Guiana",
    "French Polynesia",
    "French Southern Territories",
    "Gabon",
    "Gambia",
    "Georgia",
    "Germany",
    "Ghana",
    "Gibraltar",
    "Greece",
    "Greenland",
    "Grenada",
    "Guadeloupe",
    "Guam",
    "Guatemala",
    "Guernsey",
    "Guinea",
    "Guinea-Bissau",
    "Guyana",
    "Haiti",
    "Heard Island and McDonald Islands",
    "Holy See",
    "Honduras",
    "Hong Kong",
    "Hungary",
    "Iceland",
    "India",
    "Indonesia",
    "Côte d'Ivoire",
    "Iran (Islamic Republic of)",
    "Iraq",
    "Ireland",
    "Isle of Man",
    "Israel",
    "Italy",
    "Jamaica",
    "Japan",
    "Jersey",
    "Jordan",
    "Kazakhstan",
    "Kenya",
    "Kiribati",
    "Kuwait",
    "Kyrgyzstan",
    "Lao People's Democratic Republic",
    "Latvia",
    "Lebanon",
    "Lesotho",
    "Liberia",
    "Libya",
    "Liechtenstein",
    "Lithuania",
    "Luxembourg",
    "Macao",
    "Macedonia (the former Yugoslav Republic of)",
    "Madagascar",
    "Malawi",
    "Malaysia",
    "Maldives",
    "Mali",
    "Malta",
    "Marshall Islands",
    "Martinique",
    "Mauritania",
    "Mauritius",
    "Mayotte",
    "Mexico",
    "Micronesia (Federated States of)",
    "Moldova (Republic of)",
    "Monaco",
    "Mongolia",
    "Montenegro",
    "Montserrat",
    "Morocco",
    "Mozambique",
    "Myanmar",
    "Namibia",
    "Nauru",
    "Nepal",
    "Netherlands",
    "New Caledonia",
    "New Zealand",
    "Nicaragua",
    "Niger",
    "Nigeria",
    "Niue",
    "Norfolk Island",
    "Korea (Democratic People's Republic of)",
    "Northern Mariana Islands",
    "Norway",
    "Oman",
    "Pakistan",
    "Palau",
    "Palestine, State of",
    "Panama",
    "Papua New Guinea",
    "Paraguay",
    "Peru",
    "Philippines",
    "Pitcairn",
    "Poland",
    "Portugal",
    "Puerto Rico",
    "Qatar",
    "Republic of Kosovo",
    "Réunion",
    "Romania",
    "Russian Federation",
    "Rwanda",
    "Saint Barthélemy",
    "Saint Helena, Ascension and Tristan da Cunha",
    "Saint Kitts and Nevis",
    "Saint Lucia",
    "Saint Martin (French part)",
    "Saint Pierre and Miquelon",
    "Saint Vincent and the Grenadines",
    "Samoa",
    "San Marino",
    "Sao Tome and Principe",
    "Saudi Arabia",
    "Senegal",
    "Serbia",
    "Seychelles",
    "Sierra Leone",
    "Singapore",
    "Sint Maarten (Dutch part)",
    "Slovakia",
    "Slovenia",
    "Solomon Islands",
    "Somalia",
    "South Africa",
    "South Georgia and the South Sandwich Islands",
    "Korea (Republic of)",
    "South Sudan",
    "Spain",
    "Sri Lanka",
    "Sudan",
    "Suriname",
    "Svalbard and Jan Mayen",
    "Swaziland",
    "Sweden",
    "Switzerland",
    "Syrian Arab Republic",
    "Taiwan",
    "Tajikistan",
    "Tanzania, United Republic of",
    "Thailand",
    "Timor-Leste",
    "Togo",
    "Tokelau",
    "Tonga",
    "Trinidad and Tobago",
    "Tunisia",
    "Turkey",
    "Turkmenistan",
    "Turks and Caicos Islands",
    "Tuvalu",
    "Uganda",
    "Ukraine",
    "United Arab Emirates",
    "United Kingdom of Great Britain and Northern Ireland",
    "United States of America",
    "Uruguay",
    "Uzbekistan",
    "Vanuatu",
    "Venezuela (Bolivarian Republic of)",
    "Viet Nam",
    "Wallis and Futuna",
    "Western Sahara",
    "Yemen",
    "Zambia",
    "Zimbabwe"
]
@spamsch

This comment has been minimized.

Show comment Hide comment
@spamsch

spamsch Oct 2, 2017

<select>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua And Barbuda</option>
<option value="AR">Argentina</option>
<option value="AM">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BA">Bosnia And Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BV">Bouvet Island</option>
<option value="BR">Brazil</option>
<option value="IO">British Indian Ocean Territory</option>
<option value="BN">Brunei Darussalam</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CX">Christmas Island</option>
<option value="CC">Cocos (keeling) Islands</option>
<option value="CO">Colombia</option>
<option value="KM">Comoros</option>
<option value="CG">Congo</option>
<option value="CD">Congo, The Democratic Republic Of The</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CI">Cote D\'ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="TP">East Timor</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FK">Falkland Islands (malvinas)</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="TF">French Southern Territories</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GW">Guinea-bissau</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HM">Heard Island And Mcdonald Islands</option>
<option value="VA">Holy See (vatican City State)</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IS">Iceland</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IR">Iran, Islamic Republic Of</option>
<option value="IQ">Iraq</option>
<option value="IE">Ireland</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="KP">Korea, Democratic People\'s Republic Of</option>
<option value="KR">Korea, Republic Of</option>
<option value="KV">Kosovo</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Lao People\'s Democratic Republic</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libyan Arab Jamahiriya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macau</option>
<option value="MK">Macedonia, The Former Yugoslav Republic Of</option>
<option value="MG">Madagascar</option>
<option value="MW">Malawi</option>
<option value="MY">Malaysia</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="YT">Mayotte</option>
<option value="MX">Mexico</option>
<option value="FM">Micronesia, Federated States Of</option>
<option value="MD">Moldova, Republic Of</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="ME">Montenegro</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Namibia</option>
<option value="NR">Nauru</option>
<option value="NP">Nepal</option>
<option value="NL">Netherlands</option>
<option value="AN">Netherlands Antilles</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NU">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="MP">Northern Mariana Islands</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau</option>
<option value="PS">Palestinian Territory, Occupied</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PN">Pitcairn</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russian Federation</option>
<option value="RW">Rwanda</option>
<option value="SH">Saint Helena</option>
<option value="KN">Saint Kitts And Nevis</option>
<option value="LC">Saint Lucia</option>
<option value="PM">Saint Pierre And Miquelon</option>
<option value="VC">Saint Vincent And The Grenadines</option>
<option value="WS">Samoa</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome And Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="RS">Serbia</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="SO">Somalia</option>
<option value="ZA">South Africa</option>
<option value="GS">South Georgia And The South Sandwich Islands</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SJ">Svalbard And Jan Mayen</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syrian Arab Republic</option>
<option value="TW">Taiwan, Province Of China</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania, United Republic Of</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad And Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TM">Turkmenistan</option>
<option value="TC">Turks And Caicos Islands</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option value="US">United States</option>
<option value="UM">United States Minor Outlying Islands</option>
<option value="UY">Uruguay</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VE">Venezuela</option>
<option value="VN">Viet Nam</option>
<option value="VG">Virgin Islands, British</option>
<option value="VI">Virgin Islands, U.s.</option>
<option value="WF">Wallis And Futuna</option>
<option value="EH">Western Sahara</option>
<option value="YE">Yemen</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select>

spamsch commented Oct 2, 2017

<select>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua And Barbuda</option>
<option value="AR">Argentina</option>
<option value="AM">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BA">Bosnia And Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BV">Bouvet Island</option>
<option value="BR">Brazil</option>
<option value="IO">British Indian Ocean Territory</option>
<option value="BN">Brunei Darussalam</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CX">Christmas Island</option>
<option value="CC">Cocos (keeling) Islands</option>
<option value="CO">Colombia</option>
<option value="KM">Comoros</option>
<option value="CG">Congo</option>
<option value="CD">Congo, The Democratic Republic Of The</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CI">Cote D\'ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="TP">East Timor</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FK">Falkland Islands (malvinas)</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="TF">French Southern Territories</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GW">Guinea-bissau</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HM">Heard Island And Mcdonald Islands</option>
<option value="VA">Holy See (vatican City State)</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IS">Iceland</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IR">Iran, Islamic Republic Of</option>
<option value="IQ">Iraq</option>
<option value="IE">Ireland</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="KP">Korea, Democratic People\'s Republic Of</option>
<option value="KR">Korea, Republic Of</option>
<option value="KV">Kosovo</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Lao People\'s Democratic Republic</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libyan Arab Jamahiriya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macau</option>
<option value="MK">Macedonia, The Former Yugoslav Republic Of</option>
<option value="MG">Madagascar</option>
<option value="MW">Malawi</option>
<option value="MY">Malaysia</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="YT">Mayotte</option>
<option value="MX">Mexico</option>
<option value="FM">Micronesia, Federated States Of</option>
<option value="MD">Moldova, Republic Of</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="ME">Montenegro</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Namibia</option>
<option value="NR">Nauru</option>
<option value="NP">Nepal</option>
<option value="NL">Netherlands</option>
<option value="AN">Netherlands Antilles</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NU">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="MP">Northern Mariana Islands</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau</option>
<option value="PS">Palestinian Territory, Occupied</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PN">Pitcairn</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russian Federation</option>
<option value="RW">Rwanda</option>
<option value="SH">Saint Helena</option>
<option value="KN">Saint Kitts And Nevis</option>
<option value="LC">Saint Lucia</option>
<option value="PM">Saint Pierre And Miquelon</option>
<option value="VC">Saint Vincent And The Grenadines</option>
<option value="WS">Samoa</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome And Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="RS">Serbia</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="SO">Somalia</option>
<option value="ZA">South Africa</option>
<option value="GS">South Georgia And The South Sandwich Islands</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SJ">Svalbard And Jan Mayen</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syrian Arab Republic</option>
<option value="TW">Taiwan, Province Of China</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania, United Republic Of</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad And Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TM">Turkmenistan</option>
<option value="TC">Turks And Caicos Islands</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option value="US">United States</option>
<option value="UM">United States Minor Outlying Islands</option>
<option value="UY">Uruguay</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VE">Venezuela</option>
<option value="VN">Viet Nam</option>
<option value="VG">Virgin Islands, British</option>
<option value="VI">Virgin Islands, U.s.</option>
<option value="WF">Wallis And Futuna</option>
<option value="EH">Western Sahara</option>
<option value="YE">Yemen</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select>
@TheCire

This comment has been minimized.

Show comment Hide comment
@TheCire

TheCire Jan 22, 2018

swift enum CountryCode to Country Name as a string

enum CountryCode:String {
case AF
case AL
case DZ
case AS
case AD
case AO
case AI
case AQ
case AG
case AR
case AM
case AW
case AU
case AT
case AZ
case BS
case BH
case BD
case BB
case BY
case BE
case BZ
case BJ
case BM
case BT
case BO
case BA
case BW
case BV
case BR
case IO
case BN
case BG
case BF
case BI
case KH
case CM
case CA
case CV
case KY
case CF
case TD
case CL
case CN
case CX
case CC
case CO
case KM
case CG
case CD
case CK
case CR
case CI
case HR
case CU
case CY
case CZ
case DK
case DJ
case DM
case DO
case TP
case EC
case EG
case SV
case GQ
case ER
case EE
case ET
case FK
case FO
case FJ
case FI
case FR
case GF
case PF
case TF
case GA
case GM
case GE
case DE
case GH
case GI
case GR
case GL
case GD
case GP
case GU
case GT
case GN
case GW
case GY
case HT
case HM
case VA
case HN
case HK
case HU
case IS
case IN
case ID
case IR
case IQ
case IE
case IL
case IT
case JM
case JP
case JO
case KZ
case KE
case KI
case KP
case KR
case KV
case KW
case KG
case LA
case LV
case LB
case LS
case LR
case LY
case LI
case LT
case LU
case MO
case MK
case MG
case MW
case MY
case MV
case ML
case MT
case MH
case MQ
case MR
case MU
case YT
case MX
case FM
case MD
case MC
case MN
case MS
case ME
case MA
case MZ
case MM
case NA
case NR
case NP
case NL
case AN
case NC
case NZ
case NI
case NE
case NG
case NU
case NF
case MP
case NO
case OM
case PK
case PW
case PS
case PA
case PG
case PY
case PE
case PH
case PN
case PL
case PT
case PR
case QA
case RE
case RO
case RU
case RW
case SH
case KN
case LC
case PM
case VC
case WS
case SM
case ST
case SA
case SN
case RS
case SC
case SL
case SG
case SK
case SI
case SB
case SO
case ZA
case GS
case ES
case LK
case SD
case SR
case SJ
case SZ
case SE
case CH
case SY
case TW
case TJ
case TZ
case TH
case TG
case TK
case TO
case TT
case TN
case TR
case TM
case TC
case TV
case UG
case UA
case AE
case GB
case US
case UM
case UY
case UZ
case VU
case VE
case VN
case VG
case VI
case WF
case EH
case YE
case ZM
case ZW
case XX

var displayName:String {
    switch self {
    case .AF:
        return "Afghanistan"
    case .AL:
        return "Albania"
    case .DZ:
        return "Algeria"
    case .AS:
        return "American Somoa"
    case .AD:
        return "Andorra"
    case .AO:
        return "Angola"
    case .AI:
        return "Anguilla"
    case .AQ:
        return "Antarctica"
    case .AG:
        return "Antigua And Barbuda"
    case .AR:
        return "Argentina"
    case .AM:
        return "Armenia"
    case .AW:
        return "Aruba"
    case .AU:
        return "Australia"
    case .AT:
        return "Austria"
    case .AZ:
        return "Azerbaijan"
    case .BS:
        return "Bahamas"
    case .BH:
        return "Bahrain"
    case .BD:
        return "Bangladesh"
    case .BB:
        return "Barbados"
    case .BY:
        return "Belarus"
    case .BE:
        return "Belgium"
    case .BZ:
        return "Belize"
    case .BJ:
        return "Benin"
    case .BM:
        return "Bermuda"
    case .BT:
        return "Bhutan"
    case .BO:
        return "Bolivia"
    case .BA:
        return "Bosnia And Herzegovina"
    case .BW:
        return "Botswana"
    case .BV:
        return "Bouvet Island"
    case .BR:
        return "Brazil"
    case .IO:
        return "British Indian Ocean Territory"
    case .BN:
        return "Brunei Darussalam"
    case .BG:
        return "Bulgaria"
    case .BF:
        return "Burkina Faso"
    case .BI:
        return "Burundi"
    case .KH:
        return "Cambodia"
    case .CM:
        return "Cameroon"
    case .CA:
        return "Canada"
    case .CV:
        return "Cape Verde"
    case .KY:
        return "Cayman Islands"
    case .CF:
        return "Central African Republic"
    case .TD:
        return "Chad"
    case .CL:
        return "Chile"
    case .CN:
        return "China"
    case .CX:
        return "Christmas Island"
    case .CC:
        return "Cocos (keeling) Islands"
    case .CO:
        return "Colombia"
    case .KM:
        return "Comoros"
    case .CG:
        return "Congo"
    case .CD:
        return "Congo, The Democratic Republic Of The"
    case .CK:
        return "Cook Islands"
    case .CR:
        return "Costa Rica"
    case .CI:
        return "Cote D'ivoire"
    case .HR:
        return "Croatia"
    case .CU:
        return "Cuba"
    case .CY:
        return "Cyprus"
    case .CZ:
        return "Czech Republic"
    case .DK:
        return "Denmark"
    case .DJ:
        return "Djibouti"
    case .DM:
        return "Dominica"
    case .DO:
        return "Dominican Republic"
    case .TP:
        return "East Timor"
    case .EC:
        return "Ecuador"
    case .EG:
        return "Egypt"
    case .SV:
        return "El Salvador"
    case .GQ:
        return "Equatorial Guinea"
    case .ER:
        return "Eritrea"
    case .EE:
        return "Estonia"
    case .ET:
        return "Ethiopia"
    case .FK:
        return "Falkland Islands (malvinas)"
    case .FO:
        return "Faroe Islands"
    case .FJ:
        return "Fiji"
    case .FI:
        return "Finland"
    case .FR:
        return "France"
    case .GF:
        return "French Guiana"
    case .PF:
        return "French Polynesia"
    case .TF:
        return "French Southern Territories"
    case .GA:
        return "Gabon"
    case .GM:
        return "Gambia"
    case .GE:
        return "Georgia"
    case .DE:
        return "Germany"
    case .GH:
        return "Ghana"
    case .GI:
        return "Gibraltar"
    case .GR:
        return "Greece"
    case .GL:
        return "Greenland"
    case .GD:
        return "Grenada"
    case .GP:
        return "Guadeloupe"
    case .GU:
        return "Guam"
    case .GT:
        return "Guatemala"
    case .GN:
        return "Guinea"
    case .GW:
        return "Guinea-bissau"
    case .GY:
        return "Guyana"
    case .HT:
        return "Haiti"
    case .HM:
        return "Heard Island And Mcdonald Islands"
    case .VA:
        return "Holy See (vatican City State)"
    case .HN:
        return "Honduras"
    case .HK:
        return "Hong Kong"
    case .HU:
        return "Hungary"
    case .IS:
        return "Iceland"
    case .IN:
        return "India"
    case .ID:
        return "Indonesia"
    case .IR:
        return "Iran, Islamic Republic Of"
    case .IQ:
        return "Iraq"
    case .IE:
        return "Ireland"
    case .IL:
        return "Israel"
    case .IT:
        return "Italy"
    case .JM:
        return "Jamaica"
    case .JP:
        return "Japan"
    case .JO:
        return "Jordan"
    case .KZ:
        return "Kazakstan"
    case .KE:
        return "Kenya"
    case .KI:
        return "Kiribati"
    case .KP:
        return "Korea, Democratic People's Republic Of"
    case .KR:
        return "Korea, Republic Of"
    case .KV:
        return "Kosovo"
    case .KW:
        return "Kuwait"
    case .KG:
        return "Kyrgyzstan"
    case .LA:
        return "Lao People's Democratic Republic"
    case .LV:
        return "Latvia"
    case .LB:
        return "Lebanon"
    case .LS:
        return "Lesotho"
    case .LR:
        return "Liberia"
    case .LY:
        return "Libyan Arab Jamahiriya"
    case .LI:
        return "Liechtenstein"
    case .LT:
        return "Lithuania"
    case .LU:
        return "Luxembourg"
    case .MO:
        return "Macau"
    case .MK:
        return "Macedonia, The Former Yugoslav Republic Of"
    case .MG:
        return "Madagascar"
    case .MW:
        return "Malawi"
    case .MY:
        return "Malaysia"
    case .MV:
        return "Maldives"
    case .ML:
        return "Mali"
    case .MT:
        return "Malta"
    case .MH:
        return "Marshall Islands"
    case .MQ:
        return "Martinique"
    case .MR:
        return "Mauritania"
    case .MU:
        return "Mauritius"
    case .YT:
        return "Mayotte"
    case .MX:
        return "Mexico"
    case .FM:
        return "Micronesia, Federated States Of"
    case .MD:
        return "Moldova, Republic Of"
    case .MC:
        return "Monaco"
    case .MN:
        return "Mongolia"
    case .MS:
        return "Montserrat"
    case .ME:
        return "Montenegro"
    case .MA:
        return "Morocco"
    case .MZ:
        return "Mozambique"
    case .MM:
        return "Myanmar"
    case .NA:
        return "Namibia"
    case .NR:
        return "Nauru"
    case .NP:
        return "Nepal"
    case .NL:
        return "Netherlands"
    case .AN:
        return "Netherlands Antilles"
    case .NC:
        return "New Caledonia"
    case .NZ:
        return "New Zealand"
    case .NI:
        return "Nicaragua"
    case .NE:
        return "Niger"
    case .NG:
        return "Nigeria"
    case .NU:
        return "Niue"
    case .NF:
        return "Norfolk Island"
    case .MP:
        return "Northern Mariana Islands"
    case .NO:
        return "Norway"
    case .OM:
        return "Oman"
    case .PK:
        return "Pakistan"
    case .PW:
        return "Palau"
    case .PS:
        return "Palestinian Territory, Occupied"
    case .PA:
        return "Panama"
    case .PG:
        return "Papua New Guinea"
    case .PY:
        return "Paraguay"
    case .PE:
        return "Peru"
    case .PH:
        return "Philippines"
    case .PN:
        return "Pitcairn"
    case .PL:
        return "Poland"
    case .PT:
        return "Portugal"
    case .PR:
        return "Puerto Rico"
    case .QA:
        return "Qatar"
    case .RE:
        return "Reunion"
    case .RO:
        return "Romania"
    case .RU:
        return "Russian Federation"
    case .RW:
        return "Rwanda"
    case .SH:
        return "Saint Helena"
    case .KN:
        return "Saint Kitts And Nevis"
    case .LC:
        return "Saint Lucia"
    case .PM:
        return "Saint Pierre And Miquelon"
    case .VC:
        return "Saint Vincent And The Grenadines"
    case .WS:
        return "Samoa"
    case .SM:
        return "San Marino"
    case .ST:
        return "Sao Tome And Principe"
    case .SA:
        return "Saudi Arabia"
    case .SN:
        return "Senegal"
    case .RS:
        return "Serbia"
    case .SC:
        return "Seychelles"
    case .SL:
        return "Sierra Leone"
    case .SG:
        return "Singapore"
    case .SK:
        return "Slovakia"
    case .SI:
        return "Slovenia"
    case .SB:
        return "Solomon Islands"
    case .SO:
        return "Somalia"
    case .ZA:
        return "South Africa"
    case .GS:
        return "South Georgia And The South Sandwich Islands"
    case .ES:
        return "Spain"
    case .LK:
        return "Sri Lanka"
    case .SD:
        return "Sudan"
    case .SR:
        return "Suriname"
    case .SJ:
        return "Svalbard And Jan Mayen"
    case .SZ:
        return "Swaziland"
    case .SE:
        return "Sweden"
    case .CH:
        return "Switzerland"
    case .SY:
        return "Syrian Arab Republic"
    case .TW:
        return "Taiwan, Province Of China"
    case .TJ:
        return "Tajikistan"
    case .TZ:
        return "Tanzania, United Republic Of"
    case .TH:
        return "Thailand"
    case .TG:
        return "Togo"
    case .TK:
        return "Tokelau"
    case .TO:
        return "Tonga"
    case .TT:
        return "Trinidad And Tobago"
    case .TN:
        return "Tunisia"
    case .TR:
        return "Turkey"
    case .TM:
        return "Turkmenistan"
    case .TC:
        return "Turks And Caicos Islands"
    case .TV:
        return "Tuvalu"
    case .UG:
        return "Uganda"
    case .UA:
        return "Ukraine"
    case .AE:
        return "United Arab Emirates"
    case .GB:
        return "United Kingdom"
    case .US:
        return "United States"
    case .UM:
        return "United States Minor Outlying Islands"
    case .UY:
        return "Uruguay"
    case .UZ:
        return "Uzbekistan"
    case .VU:
        return "Vanuatu"
    case .VE:
        return "Venezuela"
    case .VN:
        return "Viet Nam"
    case .VG:
        return "Virgin Islands, British"
    case .VI:
        return "Virgin Islands, U.S."
    case .WF:
        return "Wallis And Futuna"
    case .EH:
        return "Western Sahara"
    case .YE:
        return "Yemen"
    case .ZM:
        return "Zambia"
    case .ZW:
        return "Zimbabwe"
    case .XX:
        return ""
    }
}

}

TheCire commented Jan 22, 2018

swift enum CountryCode to Country Name as a string

enum CountryCode:String {
case AF
case AL
case DZ
case AS
case AD
case AO
case AI
case AQ
case AG
case AR
case AM
case AW
case AU
case AT
case AZ
case BS
case BH
case BD
case BB
case BY
case BE
case BZ
case BJ
case BM
case BT
case BO
case BA
case BW
case BV
case BR
case IO
case BN
case BG
case BF
case BI
case KH
case CM
case CA
case CV
case KY
case CF
case TD
case CL
case CN
case CX
case CC
case CO
case KM
case CG
case CD
case CK
case CR
case CI
case HR
case CU
case CY
case CZ
case DK
case DJ
case DM
case DO
case TP
case EC
case EG
case SV
case GQ
case ER
case EE
case ET
case FK
case FO
case FJ
case FI
case FR
case GF
case PF
case TF
case GA
case GM
case GE
case DE
case GH
case GI
case GR
case GL
case GD
case GP
case GU
case GT
case GN
case GW
case GY
case HT
case HM
case VA
case HN
case HK
case HU
case IS
case IN
case ID
case IR
case IQ
case IE
case IL
case IT
case JM
case JP
case JO
case KZ
case KE
case KI
case KP
case KR
case KV
case KW
case KG
case LA
case LV
case LB
case LS
case LR
case LY
case LI
case LT
case LU
case MO
case MK
case MG
case MW
case MY
case MV
case ML
case MT
case MH
case MQ
case MR
case MU
case YT
case MX
case FM
case MD
case MC
case MN
case MS
case ME
case MA
case MZ
case MM
case NA
case NR
case NP
case NL
case AN
case NC
case NZ
case NI
case NE
case NG
case NU
case NF
case MP
case NO
case OM
case PK
case PW
case PS
case PA
case PG
case PY
case PE
case PH
case PN
case PL
case PT
case PR
case QA
case RE
case RO
case RU
case RW
case SH
case KN
case LC
case PM
case VC
case WS
case SM
case ST
case SA
case SN
case RS
case SC
case SL
case SG
case SK
case SI
case SB
case SO
case ZA
case GS
case ES
case LK
case SD
case SR
case SJ
case SZ
case SE
case CH
case SY
case TW
case TJ
case TZ
case TH
case TG
case TK
case TO
case TT
case TN
case TR
case TM
case TC
case TV
case UG
case UA
case AE
case GB
case US
case UM
case UY
case UZ
case VU
case VE
case VN
case VG
case VI
case WF
case EH
case YE
case ZM
case ZW
case XX

var displayName:String {
    switch self {
    case .AF:
        return "Afghanistan"
    case .AL:
        return "Albania"
    case .DZ:
        return "Algeria"
    case .AS:
        return "American Somoa"
    case .AD:
        return "Andorra"
    case .AO:
        return "Angola"
    case .AI:
        return "Anguilla"
    case .AQ:
        return "Antarctica"
    case .AG:
        return "Antigua And Barbuda"
    case .AR:
        return "Argentina"
    case .AM:
        return "Armenia"
    case .AW:
        return "Aruba"
    case .AU:
        return "Australia"
    case .AT:
        return "Austria"
    case .AZ:
        return "Azerbaijan"
    case .BS:
        return "Bahamas"
    case .BH:
        return "Bahrain"
    case .BD:
        return "Bangladesh"
    case .BB:
        return "Barbados"
    case .BY:
        return "Belarus"
    case .BE:
        return "Belgium"
    case .BZ:
        return "Belize"
    case .BJ:
        return "Benin"
    case .BM:
        return "Bermuda"
    case .BT:
        return "Bhutan"
    case .BO:
        return "Bolivia"
    case .BA:
        return "Bosnia And Herzegovina"
    case .BW:
        return "Botswana"
    case .BV:
        return "Bouvet Island"
    case .BR:
        return "Brazil"
    case .IO:
        return "British Indian Ocean Territory"
    case .BN:
        return "Brunei Darussalam"
    case .BG:
        return "Bulgaria"
    case .BF:
        return "Burkina Faso"
    case .BI:
        return "Burundi"
    case .KH:
        return "Cambodia"
    case .CM:
        return "Cameroon"
    case .CA:
        return "Canada"
    case .CV:
        return "Cape Verde"
    case .KY:
        return "Cayman Islands"
    case .CF:
        return "Central African Republic"
    case .TD:
        return "Chad"
    case .CL:
        return "Chile"
    case .CN:
        return "China"
    case .CX:
        return "Christmas Island"
    case .CC:
        return "Cocos (keeling) Islands"
    case .CO:
        return "Colombia"
    case .KM:
        return "Comoros"
    case .CG:
        return "Congo"
    case .CD:
        return "Congo, The Democratic Republic Of The"
    case .CK:
        return "Cook Islands"
    case .CR:
        return "Costa Rica"
    case .CI:
        return "Cote D'ivoire"
    case .HR:
        return "Croatia"
    case .CU:
        return "Cuba"
    case .CY:
        return "Cyprus"
    case .CZ:
        return "Czech Republic"
    case .DK:
        return "Denmark"
    case .DJ:
        return "Djibouti"
    case .DM:
        return "Dominica"
    case .DO:
        return "Dominican Republic"
    case .TP:
        return "East Timor"
    case .EC:
        return "Ecuador"
    case .EG:
        return "Egypt"
    case .SV:
        return "El Salvador"
    case .GQ:
        return "Equatorial Guinea"
    case .ER:
        return "Eritrea"
    case .EE:
        return "Estonia"
    case .ET:
        return "Ethiopia"
    case .FK:
        return "Falkland Islands (malvinas)"
    case .FO:
        return "Faroe Islands"
    case .FJ:
        return "Fiji"
    case .FI:
        return "Finland"
    case .FR:
        return "France"
    case .GF:
        return "French Guiana"
    case .PF:
        return "French Polynesia"
    case .TF:
        return "French Southern Territories"
    case .GA:
        return "Gabon"
    case .GM:
        return "Gambia"
    case .GE:
        return "Georgia"
    case .DE:
        return "Germany"
    case .GH:
        return "Ghana"
    case .GI:
        return "Gibraltar"
    case .GR:
        return "Greece"
    case .GL:
        return "Greenland"
    case .GD:
        return "Grenada"
    case .GP:
        return "Guadeloupe"
    case .GU:
        return "Guam"
    case .GT:
        return "Guatemala"
    case .GN:
        return "Guinea"
    case .GW:
        return "Guinea-bissau"
    case .GY:
        return "Guyana"
    case .HT:
        return "Haiti"
    case .HM:
        return "Heard Island And Mcdonald Islands"
    case .VA:
        return "Holy See (vatican City State)"
    case .HN:
        return "Honduras"
    case .HK:
        return "Hong Kong"
    case .HU:
        return "Hungary"
    case .IS:
        return "Iceland"
    case .IN:
        return "India"
    case .ID:
        return "Indonesia"
    case .IR:
        return "Iran, Islamic Republic Of"
    case .IQ:
        return "Iraq"
    case .IE:
        return "Ireland"
    case .IL:
        return "Israel"
    case .IT:
        return "Italy"
    case .JM:
        return "Jamaica"
    case .JP:
        return "Japan"
    case .JO:
        return "Jordan"
    case .KZ:
        return "Kazakstan"
    case .KE:
        return "Kenya"
    case .KI:
        return "Kiribati"
    case .KP:
        return "Korea, Democratic People's Republic Of"
    case .KR:
        return "Korea, Republic Of"
    case .KV:
        return "Kosovo"
    case .KW:
        return "Kuwait"
    case .KG:
        return "Kyrgyzstan"
    case .LA:
        return "Lao People's Democratic Republic"
    case .LV:
        return "Latvia"
    case .LB:
        return "Lebanon"
    case .LS:
        return "Lesotho"
    case .LR:
        return "Liberia"
    case .LY:
        return "Libyan Arab Jamahiriya"
    case .LI:
        return "Liechtenstein"
    case .LT:
        return "Lithuania"
    case .LU:
        return "Luxembourg"
    case .MO:
        return "Macau"
    case .MK:
        return "Macedonia, The Former Yugoslav Republic Of"
    case .MG:
        return "Madagascar"
    case .MW:
        return "Malawi"
    case .MY:
        return "Malaysia"
    case .MV:
        return "Maldives"
    case .ML:
        return "Mali"
    case .MT:
        return "Malta"
    case .MH:
        return "Marshall Islands"
    case .MQ:
        return "Martinique"
    case .MR:
        return "Mauritania"
    case .MU:
        return "Mauritius"
    case .YT:
        return "Mayotte"
    case .MX:
        return "Mexico"
    case .FM:
        return "Micronesia, Federated States Of"
    case .MD:
        return "Moldova, Republic Of"
    case .MC:
        return "Monaco"
    case .MN:
        return "Mongolia"
    case .MS:
        return "Montserrat"
    case .ME:
        return "Montenegro"
    case .MA:
        return "Morocco"
    case .MZ:
        return "Mozambique"
    case .MM:
        return "Myanmar"
    case .NA:
        return "Namibia"
    case .NR:
        return "Nauru"
    case .NP:
        return "Nepal"
    case .NL:
        return "Netherlands"
    case .AN:
        return "Netherlands Antilles"
    case .NC:
        return "New Caledonia"
    case .NZ:
        return "New Zealand"
    case .NI:
        return "Nicaragua"
    case .NE:
        return "Niger"
    case .NG:
        return "Nigeria"
    case .NU:
        return "Niue"
    case .NF:
        return "Norfolk Island"
    case .MP:
        return "Northern Mariana Islands"
    case .NO:
        return "Norway"
    case .OM:
        return "Oman"
    case .PK:
        return "Pakistan"
    case .PW:
        return "Palau"
    case .PS:
        return "Palestinian Territory, Occupied"
    case .PA:
        return "Panama"
    case .PG:
        return "Papua New Guinea"
    case .PY:
        return "Paraguay"
    case .PE:
        return "Peru"
    case .PH:
        return "Philippines"
    case .PN:
        return "Pitcairn"
    case .PL:
        return "Poland"
    case .PT:
        return "Portugal"
    case .PR:
        return "Puerto Rico"
    case .QA:
        return "Qatar"
    case .RE:
        return "Reunion"
    case .RO:
        return "Romania"
    case .RU:
        return "Russian Federation"
    case .RW:
        return "Rwanda"
    case .SH:
        return "Saint Helena"
    case .KN:
        return "Saint Kitts And Nevis"
    case .LC:
        return "Saint Lucia"
    case .PM:
        return "Saint Pierre And Miquelon"
    case .VC:
        return "Saint Vincent And The Grenadines"
    case .WS:
        return "Samoa"
    case .SM:
        return "San Marino"
    case .ST:
        return "Sao Tome And Principe"
    case .SA:
        return "Saudi Arabia"
    case .SN:
        return "Senegal"
    case .RS:
        return "Serbia"
    case .SC:
        return "Seychelles"
    case .SL:
        return "Sierra Leone"
    case .SG:
        return "Singapore"
    case .SK:
        return "Slovakia"
    case .SI:
        return "Slovenia"
    case .SB:
        return "Solomon Islands"
    case .SO:
        return "Somalia"
    case .ZA:
        return "South Africa"
    case .GS:
        return "South Georgia And The South Sandwich Islands"
    case .ES:
        return "Spain"
    case .LK:
        return "Sri Lanka"
    case .SD:
        return "Sudan"
    case .SR:
        return "Suriname"
    case .SJ:
        return "Svalbard And Jan Mayen"
    case .SZ:
        return "Swaziland"
    case .SE:
        return "Sweden"
    case .CH:
        return "Switzerland"
    case .SY:
        return "Syrian Arab Republic"
    case .TW:
        return "Taiwan, Province Of China"
    case .TJ:
        return "Tajikistan"
    case .TZ:
        return "Tanzania, United Republic Of"
    case .TH:
        return "Thailand"
    case .TG:
        return "Togo"
    case .TK:
        return "Tokelau"
    case .TO:
        return "Tonga"
    case .TT:
        return "Trinidad And Tobago"
    case .TN:
        return "Tunisia"
    case .TR:
        return "Turkey"
    case .TM:
        return "Turkmenistan"
    case .TC:
        return "Turks And Caicos Islands"
    case .TV:
        return "Tuvalu"
    case .UG:
        return "Uganda"
    case .UA:
        return "Ukraine"
    case .AE:
        return "United Arab Emirates"
    case .GB:
        return "United Kingdom"
    case .US:
        return "United States"
    case .UM:
        return "United States Minor Outlying Islands"
    case .UY:
        return "Uruguay"
    case .UZ:
        return "Uzbekistan"
    case .VU:
        return "Vanuatu"
    case .VE:
        return "Venezuela"
    case .VN:
        return "Viet Nam"
    case .VG:
        return "Virgin Islands, British"
    case .VI:
        return "Virgin Islands, U.S."
    case .WF:
        return "Wallis And Futuna"
    case .EH:
        return "Western Sahara"
    case .YE:
        return "Yemen"
    case .ZM:
        return "Zambia"
    case .ZW:
        return "Zimbabwe"
    case .XX:
        return ""
    }
}

}

@eugestarr

This comment has been minimized.

Show comment Hide comment
@eugestarr

eugestarr Feb 20, 2018

Here comes Twig:

{% set countries = {
    AF:'Afghanistan',
    AL:'Albania',
    DZ:'Algeria',
    AS:'American Samoa',
    AD:'Andorra',
    AO:'Angola',
    AI:'Anguilla',
    AQ:'Antarctica',
    AG:'Antigua And Barbuda',
    AR:'Argentina',
    AM:'Armenia',
    AW:'Aruba',
    AU:'Australia',
    AT:'Austria',
    AZ:'Azerbaijan',
    BS:'Bahamas',
    BH:'Bahrain',
    BD:'Bangladesh',
    BB:'Barbados',
    BY:'Belarus',
    BE:'Belgium',
    BZ:'Belize',
    BJ:'Benin',
    BM:'Bermuda',
    BT:'Bhutan',
    BO:'Bolivia',
    BA:'Bosnia And Herzegovina',
    BW:'Botswana',
    BV:'Bouvet Island',
    BR:'Brazil',
    IO:'British Indian Ocean Territory',
    BN:'Brunei Darussalam',
    BG:'Bulgaria',
    BF:'Burkina Faso',
    BI:'Burundi',
    KH:'Cambodia',
    CM:'Cameroon',
    CA:'Canada',
    CV:'Cape Verde',
    KY:'Cayman Islands',
    CF:'Central African Republic',
    TD:'Chad',
    CL:'Chile',
    CN:'China',
    CX:'Christmas Island',
    CC:'Cocos (keeling) Islands',
    CO:'Colombia',
    KM:'Comoros',
    CG:'Congo',
    CD:'Congo, The Democratic Republic Of The',
    CK:'Cook Islands',
    CR:'Costa Rica',
    CI:'Cote D\'ivoire',
    HR:'Croatia',
    CU:'Cuba',
    CY:'Cyprus',
    CZ:'Czech Republic',
    DK:'Denmark',
    DJ:'Djibouti',
    DM:'Dominica',
    DO:'Dominican Republic',
    TP:'East Timor',
    EC:'Ecuador',
    EG:'Egypt',
    SV:'El Salvador',
    GQ:'Equatorial Guinea',
    ER:'Eritrea',
    EE:'Estonia',
    ET:'Ethiopia',
    FK:'Falkland Islands (malvinas)',
    FO:'Faroe Islands',
    FJ:'Fiji',
    FI:'Finland',
    FR:'France',
    GF:'French Guiana',
    PF:'French Polynesia',
    TF:'French Southern Territories',
    GA:'Gabon',
    GM:'Gambia',
    GE:'Georgia',
    DE:'Germany',
    GH:'Ghana',
    GI:'Gibraltar',
    GR:'Greece',
    GL:'Greenland',
    GD:'Grenada',
    GP:'Guadeloupe',
    GU:'Guam',
    GT:'Guatemala',
    GN:'Guinea',
    GW:'Guinea-bissau',
    GY:'Guyana',
    HT:'Haiti',
    HM:'Heard Island And Mcdonald Islands',
    VA:'Holy See (vatican City State)',
    HN:'Honduras',
    HK:'Hong Kong',
    HU:'Hungary',
    IS:'Iceland',
    IN:'India',
    ID:'Indonesia',
    IR:'Iran, Islamic Republic Of',
    IQ:'Iraq',
    IE:'Ireland',
    IL:'Israel',
    IT:'Italy',
    JM:'Jamaica',
    JP:'Japan',
    JO:'Jordan',
    KZ:'Kazakstan',
    KE:'Kenya',
    KI:'Kiribati',
    KP:'Korea, Democratic People\'s Republic Of',
    KR:'Korea, Republic Of',
    KV:'Kosovo',
    KW:'Kuwait',
    KG:'Kyrgyzstan',
    LA:'Lao People\'s Democratic Republic',
    LV:'Latvia',
    LB:'Lebanon',
    LS:'Lesotho',
    LR:'Liberia',
    LY:'Libyan Arab Jamahiriya',
    LI:'Liechtenstein',
    LT:'Lithuania',
    LU:'Luxembourg',
    MO:'Macau',
    MK:'Macedonia, The Former Yugoslav Republic Of',
    MG:'Madagascar',
    MW:'Malawi',
    MY:'Malaysia',
    MV:'Maldives',
    ML:'Mali',
    MT:'Malta',
    MH:'Marshall Islands',
    MQ:'Martinique',
    MR:'Mauritania',
    MU:'Mauritius',
    YT:'Mayotte',
    MX:'Mexico',
    FM:'Micronesia, Federated States Of',
    MD:'Moldova, Republic Of',
    MC:'Monaco',
    MN:'Mongolia',
    MS:'Montserrat',
    ME:'Montenegro',
    MA:'Morocco',
    MZ:'Mozambique',
    MM:'Myanmar',
    NA:'Namibia',
    NR:'Nauru',
    NP:'Nepal',
    NL:'Netherlands',
    AN:'Netherlands Antilles',
    NC:'New Caledonia',
    NZ:'New Zealand',
    NI:'Nicaragua',
    NE:'Niger',
    NG:'Nigeria',
    NU:'Niue',
    NF:'Norfolk Island',
    MP:'Northern Mariana Islands',
    NO:'Norway',
    OM:'Oman',
    PK:'Pakistan',
    PW:'Palau',
    PS:'Palestinian Territory, Occupied',
    PA:'Panama',
    PG:'Papua New Guinea',
    PY:'Paraguay',
    PE:'Peru',
    PH:'Philippines',
    PN:'Pitcairn',
    PL:'Poland',
    PT:'Portugal',
    PR:'Puerto Rico',
    QA:'Qatar',
    RE:'Reunion',
    RO:'Romania',
    RU:'Russian Federation',
    RW:'Rwanda',
    SH:'Saint Helena',
    KN:'Saint Kitts And Nevis',
    LC:'Saint Lucia',
    PM:'Saint Pierre And Miquelon',
    VC:'Saint Vincent And The Grenadines',
    WS:'Samoa',
    SM:'San Marino',
    ST:'Sao Tome And Principe',
    SA:'Saudi Arabia',
    SN:'Senegal',
    RS:'Serbia',
    SC:'Seychelles',
    SL:'Sierra Leone',
    SG:'Singapore',
    SK:'Slovakia',
    SI:'Slovenia',
    SB:'Solomon Islands',
    SO:'Somalia',
    ZA:'South Africa',
    GS:'South Georgia And The South Sandwich Islands',
    ES:'Spain',
    LK:'Sri Lanka',
    SD:'Sudan',
    SR:'Suriname',
    SJ:'Svalbard And Jan Mayen',
    SZ:'Swaziland',
    SE:'Sweden',
    CH:'Switzerland',
    SY:'Syrian Arab Republic',
    TW:'Taiwan, Province Of China',
    TJ:'Tajikistan',
    TZ:'Tanzania, United Republic Of',
    TH:'Thailand',
    TG:'Togo',
    TK:'Tokelau',
    TO:'Tonga',
    TT:'Trinidad And Tobago',
    TN:'Tunisia',
    TR:'Turkey',
    TM:'Turkmenistan',
    TC:'Turks And Caicos Islands',
    TV:'Tuvalu',
    UG:'Uganda',
    UA:'Ukraine',
    AE:'United Arab Emirates',
    GB:'United Kingdom',
    US:'United States',
    UM:'United States Minor Outlying Islands',
    UY:'Uruguay',
    UZ:'Uzbekistan',
    VU:'Vanuatu',
    VE:'Venezuela',
    VN:'Viet Nam',
    VG:'Virgin Islands, British',
    VI:'Virgin Islands, U.s.',
    WF:'Wallis And Futuna',
    EH:'Western Sahara',
    YE:'Yemen',
    ZM:'Zambia',
    ZW:'Zimbabwe'
  } %}

Here comes Twig:

{% set countries = {
    AF:'Afghanistan',
    AL:'Albania',
    DZ:'Algeria',
    AS:'American Samoa',
    AD:'Andorra',
    AO:'Angola',
    AI:'Anguilla',
    AQ:'Antarctica',
    AG:'Antigua And Barbuda',
    AR:'Argentina',
    AM:'Armenia',
    AW:'Aruba',
    AU:'Australia',
    AT:'Austria',
    AZ:'Azerbaijan',
    BS:'Bahamas',
    BH:'Bahrain',
    BD:'Bangladesh',
    BB:'Barbados',
    BY:'Belarus',
    BE:'Belgium',
    BZ:'Belize',
    BJ:'Benin',
    BM:'Bermuda',
    BT:'Bhutan',
    BO:'Bolivia',
    BA:'Bosnia And Herzegovina',
    BW:'Botswana',
    BV:'Bouvet Island',
    BR:'Brazil',
    IO:'British Indian Ocean Territory',
    BN:'Brunei Darussalam',
    BG:'Bulgaria',
    BF:'Burkina Faso',
    BI:'Burundi',
    KH:'Cambodia',
    CM:'Cameroon',
    CA:'Canada',
    CV:'Cape Verde',
    KY:'Cayman Islands',
    CF:'Central African Republic',
    TD:'Chad',
    CL:'Chile',
    CN:'China',
    CX:'Christmas Island',
    CC:'Cocos (keeling) Islands',
    CO:'Colombia',
    KM:'Comoros',
    CG:'Congo',
    CD:'Congo, The Democratic Republic Of The',
    CK:'Cook Islands',
    CR:'Costa Rica',
    CI:'Cote D\'ivoire',
    HR:'Croatia',
    CU:'Cuba',
    CY:'Cyprus',
    CZ:'Czech Republic',
    DK:'Denmark',
    DJ:'Djibouti',
    DM:'Dominica',
    DO:'Dominican Republic',
    TP:'East Timor',
    EC:'Ecuador',
    EG:'Egypt',
    SV:'El Salvador',
    GQ:'Equatorial Guinea',
    ER:'Eritrea',
    EE:'Estonia',
    ET:'Ethiopia',
    FK:'Falkland Islands (malvinas)',
    FO:'Faroe Islands',
    FJ:'Fiji',
    FI:'Finland',
    FR:'France',
    GF:'French Guiana',
    PF:'French Polynesia',
    TF:'French Southern Territories',
    GA:'Gabon',
    GM:'Gambia',
    GE:'Georgia',
    DE:'Germany',
    GH:'Ghana',
    GI:'Gibraltar',
    GR:'Greece',
    GL:'Greenland',
    GD:'Grenada',
    GP:'Guadeloupe',
    GU:'Guam',
    GT:'Guatemala',
    GN:'Guinea',
    GW:'Guinea-bissau',
    GY:'Guyana',
    HT:'Haiti',
    HM:'Heard Island And Mcdonald Islands',
    VA:'Holy See (vatican City State)',
    HN:'Honduras',
    HK:'Hong Kong',
    HU:'Hungary',
    IS:'Iceland',
    IN:'India',
    ID:'Indonesia',
    IR:'Iran, Islamic Republic Of',
    IQ:'Iraq',
    IE:'Ireland',
    IL:'Israel',
    IT:'Italy',
    JM:'Jamaica',
    JP:'Japan',
    JO:'Jordan',
    KZ:'Kazakstan',
    KE:'Kenya',
    KI:'Kiribati',
    KP:'Korea, Democratic People\'s Republic Of',
    KR:'Korea, Republic Of',
    KV:'Kosovo',
    KW:'Kuwait',
    KG:'Kyrgyzstan',
    LA:'Lao People\'s Democratic Republic',
    LV:'Latvia',
    LB:'Lebanon',
    LS:'Lesotho',
    LR:'Liberia',
    LY:'Libyan Arab Jamahiriya',
    LI:'Liechtenstein',
    LT:'Lithuania',
    LU:'Luxembourg',
    MO:'Macau',
    MK:'Macedonia, The Former Yugoslav Republic Of',
    MG:'Madagascar',
    MW:'Malawi',
    MY:'Malaysia',
    MV:'Maldives',
    ML:'Mali',
    MT:'Malta',
    MH:'Marshall Islands',
    MQ:'Martinique',
    MR:'Mauritania',
    MU:'Mauritius',
    YT:'Mayotte',
    MX:'Mexico',
    FM:'Micronesia, Federated States Of',
    MD:'Moldova, Republic Of',
    MC:'Monaco',
    MN:'Mongolia',
    MS:'Montserrat',
    ME:'Montenegro',
    MA:'Morocco',
    MZ:'Mozambique',
    MM:'Myanmar',
    NA:'Namibia',
    NR:'Nauru',
    NP:'Nepal',
    NL:'Netherlands',
    AN:'Netherlands Antilles',
    NC:'New Caledonia',
    NZ:'New Zealand',
    NI:'Nicaragua',
    NE:'Niger',
    NG:'Nigeria',
    NU:'Niue',
    NF:'Norfolk Island',
    MP:'Northern Mariana Islands',
    NO:'Norway',
    OM:'Oman',
    PK:'Pakistan',
    PW:'Palau',
    PS:'Palestinian Territory, Occupied',
    PA:'Panama',
    PG:'Papua New Guinea',
    PY:'Paraguay',
    PE:'Peru',
    PH:'Philippines',
    PN:'Pitcairn',
    PL:'Poland',
    PT:'Portugal',
    PR:'Puerto Rico',
    QA:'Qatar',
    RE:'Reunion',
    RO:'Romania',
    RU:'Russian Federation',
    RW:'Rwanda',
    SH:'Saint Helena',
    KN:'Saint Kitts And Nevis',
    LC:'Saint Lucia',
    PM:'Saint Pierre And Miquelon',
    VC:'Saint Vincent And The Grenadines',
    WS:'Samoa',
    SM:'San Marino',
    ST:'Sao Tome And Principe',
    SA:'Saudi Arabia',
    SN:'Senegal',
    RS:'Serbia',
    SC:'Seychelles',
    SL:'Sierra Leone',
    SG:'Singapore',
    SK:'Slovakia',
    SI:'Slovenia',
    SB:'Solomon Islands',
    SO:'Somalia',
    ZA:'South Africa',
    GS:'South Georgia And The South Sandwich Islands',
    ES:'Spain',
    LK:'Sri Lanka',
    SD:'Sudan',
    SR:'Suriname',
    SJ:'Svalbard And Jan Mayen',
    SZ:'Swaziland',
    SE:'Sweden',
    CH:'Switzerland',
    SY:'Syrian Arab Republic',
    TW:'Taiwan, Province Of China',
    TJ:'Tajikistan',
    TZ:'Tanzania, United Republic Of',
    TH:'Thailand',
    TG:'Togo',
    TK:'Tokelau',
    TO:'Tonga',
    TT:'Trinidad And Tobago',
    TN:'Tunisia',
    TR:'Turkey',
    TM:'Turkmenistan',
    TC:'Turks And Caicos Islands',
    TV:'Tuvalu',
    UG:'Uganda',
    UA:'Ukraine',
    AE:'United Arab Emirates',
    GB:'United Kingdom',
    US:'United States',
    UM:'United States Minor Outlying Islands',
    UY:'Uruguay',
    UZ:'Uzbekistan',
    VU:'Vanuatu',
    VE:'Venezuela',
    VN:'Viet Nam',
    VG:'Virgin Islands, British',
    VI:'Virgin Islands, U.s.',
    WF:'Wallis And Futuna',
    EH:'Western Sahara',
    YE:'Yemen',
    ZM:'Zambia',
    ZW:'Zimbabwe'
  } %}
@michelalbers

This comment has been minimized.

Show comment Hide comment
@michelalbers

michelalbers Mar 13, 2018

countries.json

{
  "AF": "Afghanistan",
  "AL": "Albania",
  "DZ": "Algeria",
  "AS": "American Samoa",
  "AD": "Andorra",
  "AO": "Angola",
  "AI": "Anguilla",
  "AQ": "Antarctica",
  "AG": "Antigua And Barbuda",
  "AR": "Argentina",
  "AM": "Armenia",
  "AW": "Aruba",
  "AU": "Australia",
  "AT": "Austria",
  "AZ": "Azerbaijan",
  "BS": "Bahamas",
  "BH": "Bahrain",
  "BD": "Bangladesh",
  "BB": "Barbados",
  "BY": "Belarus",
  "BE": "Belgium",
  "BZ": "Belize",
  "BJ": "Benin",
  "BM": "Bermuda",
  "BT": "Bhutan",
  "BO": "Bolivia",
  "BA": "Bosnia And Herzegovina",
  "BW": "Botswana",
  "BV": "Bouvet Island",
  "BR": "Brazil",
  "IO": "British Indian Ocean Territory",
  "BN": "Brunei Darussalam",
  "BG": "Bulgaria",
  "BF": "Burkina Faso",
  "BI": "Burundi",
  "KH": "Cambodia",
  "CM": "Cameroon",
  "CA": "Canada",
  "CV": "Cape Verde",
  "KY": "Cayman Islands",
  "CF": "Central African Republic",
  "TD": "Chad",
  "CL": "Chile",
  "CN": "China",
  "CX": "Christmas Island",
  "CC": "Cocos (keeling) Islands",
  "CO": "Colombia",
  "KM": "Comoros",
  "CG": "Congo",
  "CD": "Congo, The Democratic Republic Of The",
  "CK": "Cook Islands",
  "CR": "Costa Rica",
  "CI": "Cote D'ivoire",
  "HR": "Croatia",
  "CU": "Cuba",
  "CY": "Cyprus",
  "CZ": "Czech Republic",
  "DK": "Denmark",
  "DJ": "Djibouti",
  "DM": "Dominica",
  "DO": "Dominican Republic",
  "TP": "East Timor",
  "EC": "Ecuador",
  "EG": "Egypt",
  "SV": "El Salvador",
  "GQ": "Equatorial Guinea",
  "ER": "Eritrea",
  "EE": "Estonia",
  "ET": "Ethiopia",
  "FK": "Falkland Islands (malvinas)",
  "FO": "Faroe Islands",
  "FJ": "Fiji",
  "FI": "Finland",
  "FR": "France",
  "GF": "French Guiana",
  "PF": "French Polynesia",
  "TF": "French Southern Territories",
  "GA": "Gabon",
  "GM": "Gambia",
  "GE": "Georgia",
  "DE": "Germany",
  "GH": "Ghana",
  "GI": "Gibraltar",
  "GR": "Greece",
  "GL": "Greenland",
  "GD": "Grenada",
  "GP": "Guadeloupe",
  "GU": "Guam",
  "GT": "Guatemala",
  "GN": "Guinea",
  "GW": "Guinea-bissau",
  "GY": "Guyana",
  "HT": "Haiti",
  "HM": "Heard Island And Mcdonald Islands",
  "VA": "Holy See (vatican City State)",
  "HN": "Honduras",
  "HK": "Hong Kong",
  "HU": "Hungary",
  "IS": "Iceland",
  "IN": "India",
  "ID": "Indonesia",
  "IR": "Iran, Islamic Republic Of",
  "IQ": "Iraq",
  "IE": "Ireland",
  "IL": "Israel",
  "IT": "Italy",
  "JM": "Jamaica",
  "JP": "Japan",
  "JO": "Jordan",
  "KZ": "Kazakstan",
  "KE": "Kenya",
  "KI": "Kiribati",
  "KP": "Korea, Democratic People's Republic Of",
  "KR": "Korea, Republic Of",
  "KV": "Kosovo",
  "KW": "Kuwait",
  "KG": "Kyrgyzstan",
  "LA": "Lao People's Democratic Republic",
  "LV": "Latvia",
  "LB": "Lebanon",
  "LS": "Lesotho",
  "LR": "Liberia",
  "LY": "Libyan Arab Jamahiriya",
  "LI": "Liechtenstein",
  "LT": "Lithuania",
  "LU": "Luxembourg",
  "MO": "Macau",
  "MK": "Macedonia, The Former Yugoslav Republic Of",
  "MG": "Madagascar",
  "MW": "Malawi",
  "MY": "Malaysia",
  "MV": "Maldives",
  "ML": "Mali",
  "MT": "Malta",
  "MH": "Marshall Islands",
  "MQ": "Martinique",
  "MR": "Mauritania",
  "MU": "Mauritius",
  "YT": "Mayotte",
  "MX": "Mexico",
  "FM": "Micronesia, Federated States Of",
  "MD": "Moldova, Republic Of",
  "MC": "Monaco",
  "MN": "Mongolia",
  "MS": "Montserrat",
  "ME": "Montenegro",
  "MA": "Morocco",
  "MZ": "Mozambique",
  "MM": "Myanmar",
  "NA": "Namibia",
  "NR": "Nauru",
  "NP": "Nepal",
  "NL": "Netherlands",
  "AN": "Netherlands Antilles",
  "NC": "New Caledonia",
  "NZ": "New Zealand",
  "NI": "Nicaragua",
  "NE": "Niger",
  "NG": "Nigeria",
  "NU": "Niue",
  "NF": "Norfolk Island",
  "MP": "Northern Mariana Islands",
  "NO": "Norway",
  "OM": "Oman",
  "PK": "Pakistan",
  "PW": "Palau",
  "PS": "Palestinian Territory, Occupied",
  "PA": "Panama",
  "PG": "Papua New Guinea",
  "PY": "Paraguay",
  "PE": "Peru",
  "PH": "Philippines",
  "PN": "Pitcairn",
  "PL": "Poland",
  "PT": "Portugal",
  "PR": "Puerto Rico",
  "QA": "Qatar",
  "RE": "Reunion",
  "RO": "Romania",
  "RU": "Russian Federation",
  "RW": "Rwanda",
  "SH": "Saint Helena",
  "KN": "Saint Kitts And Nevis",
  "LC": "Saint Lucia",
  "PM": "Saint Pierre And Miquelon",
  "VC": "Saint Vincent And The Grenadines",
  "WS": "Samoa",
  "SM": "San Marino",
  "ST": "Sao Tome And Principe",
  "SA": "Saudi Arabia",
  "SN": "Senegal",
  "RS": "Serbia",
  "SC": "Seychelles",
  "SL": "Sierra Leone",
  "SG": "Singapore",
  "SK": "Slovakia",
  "SI": "Slovenia",
  "SB": "Solomon Islands",
  "SO": "Somalia",
  "ZA": "South Africa",
  "GS": "South Georgia And The South Sandwich Islands",
  "ES": "Spain",
  "LK": "Sri Lanka",
  "SD": "Sudan",
  "SR": "Suriname",
  "SJ": "Svalbard And Jan Mayen",
  "SZ": "Swaziland",
  "SE": "Sweden",
  "CH": "Switzerland",
  "SY": "Syrian Arab Republic",
  "TW": "Taiwan, Province Of China",
  "TJ": "Tajikistan",
  "TZ": "Tanzania, United Republic Of",
  "TH": "Thailand",
  "TG": "Togo",
  "TK": "Tokelau",
  "TO": "Tonga",
  "TT": "Trinidad And Tobago",
  "TN": "Tunisia",
  "TR": "Turkey",
  "TM": "Turkmenistan",
  "TC": "Turks And Caicos Islands",
  "TV": "Tuvalu",
  "UG": "Uganda",
  "UA": "Ukraine",
  "AE": "United Arab Emirates",
  "GB": "United Kingdom",
  "US": "United States",
  "UM": "United States Minor Outlying Islands",
  "UY": "Uruguay",
  "UZ": "Uzbekistan",
  "VU": "Vanuatu",
  "VE": "Venezuela",
  "VN": "Viet Nam",
  "VG": "Virgin Islands, British",
  "VI": "Virgin Islands, U.s.",
  "WF": "Wallis And Futuna",
  "EH": "Western Sahara",
  "YE": "Yemen",
  "ZM": "Zambia",
  "ZW": "Zimbabwe"
}

countries.json

{
  "AF": "Afghanistan",
  "AL": "Albania",
  "DZ": "Algeria",
  "AS": "American Samoa",
  "AD": "Andorra",
  "AO": "Angola",
  "AI": "Anguilla",
  "AQ": "Antarctica",
  "AG": "Antigua And Barbuda",
  "AR": "Argentina",
  "AM": "Armenia",
  "AW": "Aruba",
  "AU": "Australia",
  "AT": "Austria",
  "AZ": "Azerbaijan",
  "BS": "Bahamas",
  "BH": "Bahrain",
  "BD": "Bangladesh",
  "BB": "Barbados",
  "BY": "Belarus",
  "BE": "Belgium",
  "BZ": "Belize",
  "BJ": "Benin",
  "BM": "Bermuda",
  "BT": "Bhutan",
  "BO": "Bolivia",
  "BA": "Bosnia And Herzegovina",
  "BW": "Botswana",
  "BV": "Bouvet Island",
  "BR": "Brazil",
  "IO": "British Indian Ocean Territory",
  "BN": "Brunei Darussalam",
  "BG": "Bulgaria",
  "BF": "Burkina Faso",
  "BI": "Burundi",
  "KH": "Cambodia",
  "CM": "Cameroon",
  "CA": "Canada",
  "CV": "Cape Verde",
  "KY": "Cayman Islands",
  "CF": "Central African Republic",
  "TD": "Chad",
  "CL": "Chile",
  "CN": "China",
  "CX": "Christmas Island",
  "CC": "Cocos (keeling) Islands",
  "CO": "Colombia",
  "KM": "Comoros",
  "CG": "Congo",
  "CD": "Congo, The Democratic Republic Of The",
  "CK": "Cook Islands",
  "CR": "Costa Rica",
  "CI": "Cote D'ivoire",
  "HR": "Croatia",
  "CU": "Cuba",
  "CY": "Cyprus",
  "CZ": "Czech Republic",
  "DK": "Denmark",
  "DJ": "Djibouti",
  "DM": "Dominica",
  "DO": "Dominican Republic",
  "TP": "East Timor",
  "EC": "Ecuador",
  "EG": "Egypt",
  "SV": "El Salvador",
  "GQ": "Equatorial Guinea",
  "ER": "Eritrea",
  "EE": "Estonia",
  "ET": "Ethiopia",
  "FK": "Falkland Islands (malvinas)",
  "FO": "Faroe Islands",
  "FJ": "Fiji",
  "FI": "Finland",
  "FR": "France",
  "GF": "French Guiana",
  "PF": "French Polynesia",
  "TF": "French Southern Territories",
  "GA": "Gabon",
  "GM": "Gambia",
  "GE": "Georgia",
  "DE": "Germany",
  "GH": "Ghana",
  "GI": "Gibraltar",
  "GR": "Greece",
  "GL": "Greenland",
  "GD": "Grenada",
  "GP": "Guadeloupe",
  "GU": "Guam",
  "GT": "Guatemala",
  "GN": "Guinea",
  "GW": "Guinea-bissau",
  "GY": "Guyana",
  "HT": "Haiti",
  "HM": "Heard Island And Mcdonald Islands",
  "VA": "Holy See (vatican City State)",
  "HN": "Honduras",
  "HK": "Hong Kong",
  "HU": "Hungary",
  "IS": "Iceland",
  "IN": "India",
  "ID": "Indonesia",
  "IR": "Iran, Islamic Republic Of",
  "IQ": "Iraq",
  "IE": "Ireland",
  "IL": "Israel",
  "IT": "Italy",
  "JM": "Jamaica",
  "JP": "Japan",
  "JO": "Jordan",
  "KZ": "Kazakstan",
  "KE": "Kenya",
  "KI": "Kiribati",
  "KP": "Korea, Democratic People's Republic Of",
  "KR": "Korea, Republic Of",
  "KV": "Kosovo",
  "KW": "Kuwait",
  "KG": "Kyrgyzstan",
  "LA": "Lao People's Democratic Republic",
  "LV": "Latvia",
  "LB": "Lebanon",
  "LS": "Lesotho",
  "LR": "Liberia",
  "LY": "Libyan Arab Jamahiriya",
  "LI": "Liechtenstein",
  "LT": "Lithuania",
  "LU": "Luxembourg",
  "MO": "Macau",
  "MK": "Macedonia, The Former Yugoslav Republic Of",
  "MG": "Madagascar",
  "MW": "Malawi",
  "MY": "Malaysia",
  "MV": "Maldives",
  "ML": "Mali",
  "MT": "Malta",
  "MH": "Marshall Islands",
  "MQ": "Martinique",
  "MR": "Mauritania",
  "MU": "Mauritius",
  "YT": "Mayotte",
  "MX": "Mexico",
  "FM": "Micronesia, Federated States Of",
  "MD": "Moldova, Republic Of",
  "MC": "Monaco",
  "MN": "Mongolia",
  "MS": "Montserrat",
  "ME": "Montenegro",
  "MA": "Morocco",
  "MZ": "Mozambique",
  "MM": "Myanmar",
  "NA": "Namibia",
  "NR": "Nauru",
  "NP": "Nepal",
  "NL": "Netherlands",
  "AN": "Netherlands Antilles",
  "NC": "New Caledonia",
  "NZ": "New Zealand",
  "NI": "Nicaragua",
  "NE": "Niger",
  "NG": "Nigeria",
  "NU": "Niue",
  "NF": "Norfolk Island",
  "MP": "Northern Mariana Islands",
  "NO": "Norway",
  "OM": "Oman",
  "PK": "Pakistan",
  "PW": "Palau",
  "PS": "Palestinian Territory, Occupied",
  "PA": "Panama",
  "PG": "Papua New Guinea",
  "PY": "Paraguay",
  "PE": "Peru",
  "PH": "Philippines",
  "PN": "Pitcairn",
  "PL": "Poland",
  "PT": "Portugal",
  "PR": "Puerto Rico",
  "QA": "Qatar",
  "RE": "Reunion",
  "RO": "Romania",
  "RU": "Russian Federation",
  "RW": "Rwanda",
  "SH": "Saint Helena",
  "KN": "Saint Kitts And Nevis",
  "LC": "Saint Lucia",
  "PM": "Saint Pierre And Miquelon",
  "VC": "Saint Vincent And The Grenadines",
  "WS": "Samoa",
  "SM": "San Marino",
  "ST": "Sao Tome And Principe",
  "SA": "Saudi Arabia",
  "SN": "Senegal",
  "RS": "Serbia",
  "SC": "Seychelles",
  "SL": "Sierra Leone",
  "SG": "Singapore",
  "SK": "Slovakia",
  "SI": "Slovenia",
  "SB": "Solomon Islands",
  "SO": "Somalia",
  "ZA": "South Africa",
  "GS": "South Georgia And The South Sandwich Islands",
  "ES": "Spain",
  "LK": "Sri Lanka",
  "SD": "Sudan",
  "SR": "Suriname",
  "SJ": "Svalbard And Jan Mayen",
  "SZ": "Swaziland",
  "SE": "Sweden",
  "CH": "Switzerland",
  "SY": "Syrian Arab Republic",
  "TW": "Taiwan, Province Of China",
  "TJ": "Tajikistan",
  "TZ": "Tanzania, United Republic Of",
  "TH": "Thailand",
  "TG": "Togo",
  "TK": "Tokelau",
  "TO": "Tonga",
  "TT": "Trinidad And Tobago",
  "TN": "Tunisia",
  "TR": "Turkey",
  "TM": "Turkmenistan",
  "TC": "Turks And Caicos Islands",
  "TV": "Tuvalu",
  "UG": "Uganda",
  "UA": "Ukraine",
  "AE": "United Arab Emirates",
  "GB": "United Kingdom",
  "US": "United States",
  "UM": "United States Minor Outlying Islands",
  "UY": "Uruguay",
  "UZ": "Uzbekistan",
  "VU": "Vanuatu",
  "VE": "Venezuela",
  "VN": "Viet Nam",
  "VG": "Virgin Islands, British",
  "VI": "Virgin Islands, U.s.",
  "WF": "Wallis And Futuna",
  "EH": "Western Sahara",
  "YE": "Yemen",
  "ZM": "Zambia",
  "ZW": "Zimbabwe"
}
@michelalbers

This comment has been minimized.

Show comment Hide comment
@michelalbers

michelalbers Mar 13, 2018

countries.php

<?php

  $countries = array(
    "AF" => "Afghanistan",
    "AL" => "Albania",
    "DZ" => "Algeria",
    "AS" => "American Samoa",
    "AD" => "Andorra",
    "AO" => "Angola",
    "AI" => "Anguilla",
    "AQ" => "Antarctica",
    "AG" => "Antigua And Barbuda",
    "AR" => "Argentina",
    "AM" => "Armenia",
    "AW" => "Aruba",
    "AU" => "Australia",
    "AT" => "Austria",
    "AZ" => "Azerbaijan",
    "BS" => "Bahamas",
    "BH" => "Bahrain",
    "BD" => "Bangladesh",
    "BB" => "Barbados",
    "BY" => "Belarus",
    "BE" => "Belgium",
    "BZ" => "Belize",
    "BJ" => "Benin",
    "BM" => "Bermuda",
    "BT" => "Bhutan",
    "BO" => "Bolivia",
    "BA" => "Bosnia And Herzegovina",
    "BW" => "Botswana",
    "BV" => "Bouvet Island",
    "BR" => "Brazil",
    "IO" => "British Indian Ocean Territory",
    "BN" => "Brunei Darussalam",
    "BG" => "Bulgaria",
    "BF" => "Burkina Faso",
    "BI" => "Burundi",
    "KH" => "Cambodia",
    "CM" => "Cameroon",
    "CA" => "Canada",
    "CV" => "Cape Verde",
    "KY" => "Cayman Islands",
    "CF" => "Central African Republic",
    "TD" => "Chad",
    "CL" => "Chile",
    "CN" => "China",
    "CX" => "Christmas Island",
    "CC" => "Cocos (keeling) Islands",
    "CO" => "Colombia",
    "KM" => "Comoros",
    "CG" => "Congo",
    "CD" => "Congo, The Democratic Republic Of The",
    "CK" => "Cook Islands",
    "CR" => "Costa Rica",
    "CI" => "Cote D'ivoire",
    "HR" => "Croatia",
    "CU" => "Cuba",
    "CY" => "Cyprus",
    "CZ" => "Czech Republic",
    "DK" => "Denmark",
    "DJ" => "Djibouti",
    "DM" => "Dominica",
    "DO" => "Dominican Republic",
    "TP" => "East Timor",
    "EC" => "Ecuador",
    "EG" => "Egypt",
    "SV" => "El Salvador",
    "GQ" => "Equatorial Guinea",
    "ER" => "Eritrea",
    "EE" => "Estonia",
    "ET" => "Ethiopia",
    "FK" => "Falkland Islands (malvinas)",
    "FO" => "Faroe Islands",
    "FJ" => "Fiji",
    "FI" => "Finland",
    "FR" => "France",
    "GF" => "French Guiana",
    "PF" => "French Polynesia",
    "TF" => "French Southern Territories",
    "GA" => "Gabon",
    "GM" => "Gambia",
    "GE" => "Georgia",
    "DE" => "Germany",
    "GH" => "Ghana",
    "GI" => "Gibraltar",
    "GR" => "Greece",
    "GL" => "Greenland",
    "GD" => "Grenada",
    "GP" => "Guadeloupe",
    "GU" => "Guam",
    "GT" => "Guatemala",
    "GN" => "Guinea",
    "GW" => "Guinea-bissau",
    "GY" => "Guyana",
    "HT" => "Haiti",
    "HM" => "Heard Island And Mcdonald Islands",
    "VA" => "Holy See (vatican City State)",
    "HN" => "Honduras",
    "HK" => "Hong Kong",
    "HU" => "Hungary",
    "IS" => "Iceland",
    "IN" => "India",
    "ID" => "Indonesia",
    "IR" => "Iran, Islamic Republic Of",
    "IQ" => "Iraq",
    "IE" => "Ireland",
    "IL" => "Israel",
    "IT" => "Italy",
    "JM" => "Jamaica",
    "JP" => "Japan",
    "JO" => "Jordan",
    "KZ" => "Kazakstan",
    "KE" => "Kenya",
    "KI" => "Kiribati",
    "KP" => "Korea, Democratic People's Republic Of",
    "KR" => "Korea, Republic Of",
    "KV" => "Kosovo",
    "KW" => "Kuwait",
    "KG" => "Kyrgyzstan",
    "LA" => "Lao People's Democratic Republic",
    "LV" => "Latvia",
    "LB" => "Lebanon",
    "LS" => "Lesotho",
    "LR" => "Liberia",
    "LY" => "Libyan Arab Jamahiriya",
    "LI" => "Liechtenstein",
    "LT" => "Lithuania",
    "LU" => "Luxembourg",
    "MO" => "Macau",
    "MK" => "Macedonia, The Former Yugoslav Republic Of",
    "MG" => "Madagascar",
    "MW" => "Malawi",
    "MY" => "Malaysia",
    "MV" => "Maldives",
    "ML" => "Mali",
    "MT" => "Malta",
    "MH" => "Marshall Islands",
    "MQ" => "Martinique",
    "MR" => "Mauritania",
    "MU" => "Mauritius",
    "YT" => "Mayotte",
    "MX" => "Mexico",
    "FM" => "Micronesia, Federated States Of",
    "MD" => "Moldova, Republic Of",
    "MC" => "Monaco",
    "MN" => "Mongolia",
    "MS" => "Montserrat",
    "ME" => "Montenegro",
    "MA" => "Morocco",
    "MZ" => "Mozambique",
    "MM" => "Myanmar",
    "NA" => "Namibia",
    "NR" => "Nauru",
    "NP" => "Nepal",
    "NL" => "Netherlands",
    "AN" => "Netherlands Antilles",
    "NC" => "New Caledonia",
    "NZ" => "New Zealand",
    "NI" => "Nicaragua",
    "NE" => "Niger",
    "NG" => "Nigeria",
    "NU" => "Niue",
    "NF" => "Norfolk Island",
    "MP" => "Northern Mariana Islands",
    "NO" => "Norway",
    "OM" => "Oman",
    "PK" => "Pakistan",
    "PW" => "Palau",
    "PS" => "Palestinian Territory, Occupied",
    "PA" => "Panama",
    "PG" => "Papua New Guinea",
    "PY" => "Paraguay",
    "PE" => "Peru",
    "PH" => "Philippines",
    "PN" => "Pitcairn",
    "PL" => "Poland",
    "PT" => "Portugal",
    "PR" => "Puerto Rico",
    "QA" => "Qatar",
    "RE" => "Reunion",
    "RO" => "Romania",
    "RU" => "Russian Federation",
    "RW" => "Rwanda",
    "SH" => "Saint Helena",
    "KN" => "Saint Kitts And Nevis",
    "LC" => "Saint Lucia",
    "PM" => "Saint Pierre And Miquelon",
    "VC" => "Saint Vincent And The Grenadines",
    "WS" => "Samoa",
    "SM" => "San Marino",
    "ST" => "Sao Tome And Principe",
    "SA" => "Saudi Arabia",
    "SN" => "Senegal",
    "RS" => "Serbia",
    "SC" => "Seychelles",
    "SL" => "Sierra Leone",
    "SG" => "Singapore",
    "SK" => "Slovakia",
    "SI" => "Slovenia",
    "SB" => "Solomon Islands",
    "SO" => "Somalia",
    "ZA" => "South Africa",
    "GS" => "South Georgia And The South Sandwich Islands",
    "ES" => "Spain",
    "LK" => "Sri Lanka",
    "SD" => "Sudan",
    "SR" => "Suriname",
    "SJ" => "Svalbard And Jan Mayen",
    "SZ" => "Swaziland",
    "SE" => "Sweden",
    "CH" => "Switzerland",
    "SY" => "Syrian Arab Republic",
    "TW" => "Taiwan, Province Of China",
    "TJ" => "Tajikistan",
    "TZ" => "Tanzania, United Republic Of",
    "TH" => "Thailand",
    "TG" => "Togo",
    "TK" => "Tokelau",
    "TO" => "Tonga",
    "TT" => "Trinidad And Tobago",
    "TN" => "Tunisia",
    "TR" => "Turkey",
    "TM" => "Turkmenistan",
    "TC" => "Turks And Caicos Islands",
    "TV" => "Tuvalu",
    "UG" => "Uganda",
    "UA" => "Ukraine",
    "AE" => "United Arab Emirates",
    "GB" => "United Kingdom",
    "US" => "United States",
    "UM" => "United States Minor Outlying Islands",
    "UY" => "Uruguay",
    "UZ" => "Uzbekistan",
    "VU" => "Vanuatu",
    "VE" => "Venezuela",
    "VN" => "Viet Nam",
    "VG" => "Virgin Islands, British",
    "VI" => "Virgin Islands, U.s.",
    "WF" => "Wallis And Futuna",
    "EH" => "Western Sahara",
    "YE" => "Yemen",
    "ZM" => "Zambia",
    "ZW" => "Zimbabwe"
);

countries.php

<?php

  $countries = array(
    "AF" => "Afghanistan",
    "AL" => "Albania",
    "DZ" => "Algeria",
    "AS" => "American Samoa",
    "AD" => "Andorra",
    "AO" => "Angola",
    "AI" => "Anguilla",
    "AQ" => "Antarctica",
    "AG" => "Antigua And Barbuda",
    "AR" => "Argentina",
    "AM" => "Armenia",
    "AW" => "Aruba",
    "AU" => "Australia",
    "AT" => "Austria",
    "AZ" => "Azerbaijan",
    "BS" => "Bahamas",
    "BH" => "Bahrain",
    "BD" => "Bangladesh",
    "BB" => "Barbados",
    "BY" => "Belarus",
    "BE" => "Belgium",
    "BZ" => "Belize",
    "BJ" => "Benin",
    "BM" => "Bermuda",
    "BT" => "Bhutan",
    "BO" => "Bolivia",
    "BA" => "Bosnia And Herzegovina",
    "BW" => "Botswana",
    "BV" => "Bouvet Island",
    "BR" => "Brazil",
    "IO" => "British Indian Ocean Territory",
    "BN" => "Brunei Darussalam",
    "BG" => "Bulgaria",
    "BF" => "Burkina Faso",
    "BI" => "Burundi",
    "KH" => "Cambodia",
    "CM" => "Cameroon",
    "CA" => "Canada",
    "CV" => "Cape Verde",
    "KY" => "Cayman Islands",
    "CF" => "Central African Republic",
    "TD" => "Chad",
    "CL" => "Chile",
    "CN" => "China",
    "CX" => "Christmas Island",
    "CC" => "Cocos (keeling) Islands",
    "CO" => "Colombia",
    "KM" => "Comoros",
    "CG" => "Congo",
    "CD" => "Congo, The Democratic Republic Of The",
    "CK" => "Cook Islands",
    "CR" => "Costa Rica",
    "CI" => "Cote D'ivoire",
    "HR" => "Croatia",
    "CU" => "Cuba",
    "CY" => "Cyprus",
    "CZ" => "Czech Republic",
    "DK" => "Denmark",
    "DJ" => "Djibouti",
    "DM" => "Dominica",
    "DO" => "Dominican Republic",
    "TP" => "East Timor",
    "EC" => "Ecuador",
    "EG" => "Egypt",
    "SV" => "El Salvador",
    "GQ" => "Equatorial Guinea",
    "ER" => "Eritrea",
    "EE" => "Estonia",
    "ET" => "Ethiopia",
    "FK" => "Falkland Islands (malvinas)",
    "FO" => "Faroe Islands",
    "FJ" => "Fiji",
    "FI" => "Finland",
    "FR" => "France",
    "GF" => "French Guiana",
    "PF" => "French Polynesia",
    "TF" => "French Southern Territories",
    "GA" => "Gabon",
    "GM" => "Gambia",
    "GE" => "Georgia",
    "DE" => "Germany",
    "GH" => "Ghana",
    "GI" => "Gibraltar",
    "GR" => "Greece",
    "GL" => "Greenland",
    "GD" => "Grenada",
    "GP" => "Guadeloupe",
    "GU" => "Guam",
    "GT" => "Guatemala",
    "GN" => "Guinea",
    "GW" => "Guinea-bissau",
    "GY" => "Guyana",
    "HT" => "Haiti",
    "HM" => "Heard Island And Mcdonald Islands",
    "VA" => "Holy See (vatican City State)",
    "HN" => "Honduras",
    "HK" => "Hong Kong",
    "HU" => "Hungary",
    "IS" => "Iceland",
    "IN" => "India",
    "ID" => "Indonesia",
    "IR" => "Iran, Islamic Republic Of",
    "IQ" => "Iraq",
    "IE" => "Ireland",
    "IL" => "Israel",
    "IT" => "Italy",
    "JM" => "Jamaica",
    "JP" => "Japan",
    "JO" => "Jordan",
    "KZ" => "Kazakstan",
    "KE" => "Kenya",
    "KI" => "Kiribati",
    "KP" => "Korea, Democratic People's Republic Of",
    "KR" => "Korea, Republic Of",
    "KV" => "Kosovo",
    "KW" => "Kuwait",
    "KG" => "Kyrgyzstan",
    "LA" => "Lao People's Democratic Republic",
    "LV" => "Latvia",
    "LB" => "Lebanon",
    "LS" => "Lesotho",
    "LR" => "Liberia",
    "LY" => "Libyan Arab Jamahiriya",
    "LI" => "Liechtenstein",
    "LT" => "Lithuania",
    "LU" => "Luxembourg",
    "MO" => "Macau",
    "MK" => "Macedonia, The Former Yugoslav Republic Of",
    "MG" => "Madagascar",
    "MW" => "Malawi",
    "MY" => "Malaysia",
    "MV" => "Maldives",
    "ML" => "Mali",
    "MT" => "Malta",
    "MH" => "Marshall Islands",
    "MQ" => "Martinique",
    "MR" => "Mauritania",
    "MU" => "Mauritius",
    "YT" => "Mayotte",
    "MX" => "Mexico",
    "FM" => "Micronesia, Federated States Of",
    "MD" => "Moldova, Republic Of",
    "MC" => "Monaco",
    "MN" => "Mongolia",
    "MS" => "Montserrat",
    "ME" => "Montenegro",
    "MA" => "Morocco",
    "MZ" => "Mozambique",
    "MM" => "Myanmar",
    "NA" => "Namibia",
    "NR" => "Nauru",
    "NP" => "Nepal",
    "NL" => "Netherlands",
    "AN" => "Netherlands Antilles",
    "NC" => "New Caledonia",
    "NZ" => "New Zealand",
    "NI" => "Nicaragua",
    "NE" => "Niger",
    "NG" => "Nigeria",
    "NU" => "Niue",
    "NF" => "Norfolk Island",
    "MP" => "Northern Mariana Islands",
    "NO" => "Norway",
    "OM" => "Oman",
    "PK" => "Pakistan",
    "PW" => "Palau",
    "PS" => "Palestinian Territory, Occupied",
    "PA" => "Panama",
    "PG" => "Papua New Guinea",
    "PY" => "Paraguay",
    "PE" => "Peru",
    "PH" => "Philippines",
    "PN" => "Pitcairn",
    "PL" => "Poland",
    "PT" => "Portugal",
    "PR" => "Puerto Rico",
    "QA" => "Qatar",
    "RE" => "Reunion",
    "RO" => "Romania",
    "RU" => "Russian Federation",
    "RW" => "Rwanda",
    "SH" => "Saint Helena",
    "KN" => "Saint Kitts And Nevis",
    "LC" => "Saint Lucia",
    "PM" => "Saint Pierre And Miquelon",
    "VC" => "Saint Vincent And The Grenadines",
    "WS" => "Samoa",
    "SM" => "San Marino",
    "ST" => "Sao Tome And Principe",
    "SA" => "Saudi Arabia",
    "SN" => "Senegal",
    "RS" => "Serbia",
    "SC" => "Seychelles",
    "SL" => "Sierra Leone",
    "SG" => "Singapore",
    "SK" => "Slovakia",
    "SI" => "Slovenia",
    "SB" => "Solomon Islands",
    "SO" => "Somalia",
    "ZA" => "South Africa",
    "GS" => "South Georgia And The South Sandwich Islands",
    "ES" => "Spain",
    "LK" => "Sri Lanka",
    "SD" => "Sudan",
    "SR" => "Suriname",
    "SJ" => "Svalbard And Jan Mayen",
    "SZ" => "Swaziland",
    "SE" => "Sweden",
    "CH" => "Switzerland",
    "SY" => "Syrian Arab Republic",
    "TW" => "Taiwan, Province Of China",
    "TJ" => "Tajikistan",
    "TZ" => "Tanzania, United Republic Of",
    "TH" => "Thailand",
    "TG" => "Togo",
    "TK" => "Tokelau",
    "TO" => "Tonga",
    "TT" => "Trinidad And Tobago",
    "TN" => "Tunisia",
    "TR" => "Turkey",
    "TM" => "Turkmenistan",
    "TC" => "Turks And Caicos Islands",
    "TV" => "Tuvalu",
    "UG" => "Uganda",
    "UA" => "Ukraine",
    "AE" => "United Arab Emirates",
    "GB" => "United Kingdom",
    "US" => "United States",
    "UM" => "United States Minor Outlying Islands",
    "UY" => "Uruguay",
    "UZ" => "Uzbekistan",
    "VU" => "Vanuatu",
    "VE" => "Venezuela",
    "VN" => "Viet Nam",
    "VG" => "Virgin Islands, British",
    "VI" => "Virgin Islands, U.s.",
    "WF" => "Wallis And Futuna",
    "EH" => "Western Sahara",
    "YE" => "Yemen",
    "ZM" => "Zambia",
    "ZW" => "Zimbabwe"
);
@suranyami

This comment has been minimized.

Show comment Hide comment
@suranyami

suranyami May 9, 2018

"Taiwan, Province Of China"?

Seriously?
If you wanted to be pedantic it's official name is "Taiwan, Republic of China", but why not just "Taiwan" like everybody calls it, and avoid the political implications of either name.

"Taiwan, Province Of China"?

Seriously?
If you wanted to be pedantic it's official name is "Taiwan, Republic of China", but why not just "Taiwan" like everybody calls it, and avoid the political implications of either name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment