countryCodesMap.tsx 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. const countryCodesMap = {
  2. Bangladesh: 'BD',
  3. Belgium: 'BE',
  4. 'Burkina Faso': 'BF',
  5. Bulgaria: 'BG',
  6. 'Bosnia and Herzegovina': 'BA',
  7. Barbados: 'BB',
  8. 'Wallis and Futuna': 'WF',
  9. 'Saint Barthelemy': 'BL',
  10. Bermuda: 'BM',
  11. Brunei: 'BN',
  12. Bolivia: 'BO',
  13. Bahrain: 'BH',
  14. Burundi: 'BI',
  15. Benin: 'BJ',
  16. Bhutan: 'BT',
  17. Jamaica: 'JM',
  18. 'Bouvet Island': 'BV',
  19. Botswana: 'BW',
  20. Samoa: 'WS',
  21. 'Bonaire, Saint Eustatius and Saba ': 'BQ',
  22. Brazil: 'BR',
  23. Bahamas: 'BS',
  24. Jersey: 'JE',
  25. Belarus: 'BY',
  26. Belize: 'BZ',
  27. Russia: 'RU',
  28. Rwanda: 'RW',
  29. Serbia: 'RS',
  30. 'East Timor': 'TL',
  31. Reunion: 'RE',
  32. Turkmenistan: 'TM',
  33. Tajikistan: 'TJ',
  34. Romania: 'RO',
  35. Tokelau: 'TK',
  36. 'Guinea-Bissau': 'GW',
  37. Guam: 'GU',
  38. Guatemala: 'GT',
  39. 'South Georgia and the South Sandwich Islands': 'GS',
  40. Greece: 'GR',
  41. 'Equatorial Guinea': 'GQ',
  42. Guadeloupe: 'GP',
  43. Japan: 'JP',
  44. Guyana: 'GY',
  45. Guernsey: 'GG',
  46. 'French Guiana': 'GF',
  47. Georgia: 'GE',
  48. Grenada: 'GD',
  49. 'United Kingdom': 'GB',
  50. Gabon: 'GA',
  51. 'El Salvador': 'SV',
  52. Guinea: 'GN',
  53. Gambia: 'GM',
  54. Greenland: 'GL',
  55. Gibraltar: 'GI',
  56. Ghana: 'GH',
  57. Oman: 'OM',
  58. Tunisia: 'TN',
  59. Jordan: 'JO',
  60. Croatia: 'HR',
  61. Haiti: 'HT',
  62. Hungary: 'HU',
  63. 'Hong Kong': 'HK',
  64. Honduras: 'HN',
  65. 'Heard Island and McDonald Islands': 'HM',
  66. Venezuela: 'VE',
  67. 'Puerto Rico': 'PR',
  68. 'Palestinian Territory': 'PS',
  69. Palau: 'PW',
  70. Portugal: 'PT',
  71. 'Svalbard and Jan Mayen': 'SJ',
  72. Paraguay: 'PY',
  73. Iraq: 'IQ',
  74. Panama: 'PA',
  75. 'French Polynesia': 'PF',
  76. 'Papua New Guinea': 'PG',
  77. Peru: 'PE',
  78. Pakistan: 'PK',
  79. Philippines: 'PH',
  80. Pitcairn: 'PN',
  81. Poland: 'PL',
  82. 'Saint Pierre and Miquelon': 'PM',
  83. Zambia: 'ZM',
  84. 'Western Sahara': 'EH',
  85. Estonia: 'EE',
  86. Egypt: 'EG',
  87. 'South Africa': 'ZA',
  88. Ecuador: 'EC',
  89. Italy: 'IT',
  90. Vietnam: 'VN',
  91. 'Solomon Islands': 'SB',
  92. Ethiopia: 'ET',
  93. Somalia: 'SO',
  94. Zimbabwe: 'ZW',
  95. 'Saudi Arabia': 'SA',
  96. Spain: 'ES',
  97. Eritrea: 'ER',
  98. Montenegro: 'ME',
  99. Moldova: 'MD',
  100. Madagascar: 'MG',
  101. 'Saint Martin': 'MF',
  102. Morocco: 'MA',
  103. Monaco: 'MC',
  104. Uzbekistan: 'UZ',
  105. Myanmar: 'MM',
  106. Mali: 'ML',
  107. Macao: 'MO',
  108. Mongolia: 'MN',
  109. 'Marshall Islands': 'MH',
  110. Macedonia: 'MK',
  111. Mauritius: 'MU',
  112. Malta: 'MT',
  113. Malawi: 'MW',
  114. Maldives: 'MV',
  115. Martinique: 'MQ',
  116. 'Northern Mariana Islands': 'MP',
  117. Montserrat: 'MS',
  118. Mauritania: 'MR',
  119. 'Isle of Man': 'IM',
  120. Uganda: 'UG',
  121. Tanzania: 'TZ',
  122. Malaysia: 'MY',
  123. Mexico: 'MX',
  124. Israel: 'IL',
  125. France: 'FR',
  126. 'British Indian Ocean Territory': 'IO',
  127. 'Saint Helena': 'SH',
  128. Finland: 'FI',
  129. Fiji: 'FJ',
  130. 'Falkland Islands': 'FK',
  131. Micronesia: 'FM',
  132. 'Faroe Islands': 'FO',
  133. Nicaragua: 'NI',
  134. Netherlands: 'NL',
  135. Norway: 'NO',
  136. Namibia: 'NA',
  137. Vanuatu: 'VU',
  138. 'New Caledonia': 'NC',
  139. Niger: 'NE',
  140. 'Norfolk Island': 'NF',
  141. Nigeria: 'NG',
  142. 'New Zealand': 'NZ',
  143. Nepal: 'NP',
  144. Nauru: 'NR',
  145. Niue: 'NU',
  146. 'Cook Islands': 'CK',
  147. Kosovo: 'XK',
  148. 'Ivory Coast': 'CI',
  149. Switzerland: 'CH',
  150. Colombia: 'CO',
  151. China: 'CN',
  152. Cameroon: 'CM',
  153. Chile: 'CL',
  154. 'Cocos Islands': 'CC',
  155. Canada: 'CA',
  156. 'Republic of the Congo': 'CG',
  157. 'Central African Republic': 'CF',
  158. 'Democratic Republic of the Congo': 'CD',
  159. 'Czech Republic': 'CZ',
  160. Cyprus: 'CY',
  161. 'Christmas Island': 'CX',
  162. 'Costa Rica': 'CR',
  163. Curacao: 'CW',
  164. 'Cape Verde': 'CV',
  165. Cuba: 'CU',
  166. Swaziland: 'SZ',
  167. Syria: 'SY',
  168. 'Sint Maarten': 'SX',
  169. Kyrgyzstan: 'KG',
  170. Kenya: 'KE',
  171. 'South Sudan': 'SS',
  172. Suriname: 'SR',
  173. Kiribati: 'KI',
  174. Cambodia: 'KH',
  175. 'Saint Kitts and Nevis': 'KN',
  176. Comoros: 'KM',
  177. 'Sao Tome and Principe': 'ST',
  178. Slovakia: 'SK',
  179. 'South Korea': 'KR',
  180. Slovenia: 'SI',
  181. 'North Korea': 'KP',
  182. Kuwait: 'KW',
  183. Senegal: 'SN',
  184. 'San Marino': 'SM',
  185. 'Sierra Leone': 'SL',
  186. Seychelles: 'SC',
  187. Kazakhstan: 'KZ',
  188. 'Cayman Islands': 'KY',
  189. Singapore: 'SG',
  190. Sweden: 'SE',
  191. Sudan: 'SD',
  192. 'Dominican Republic': 'DO',
  193. Dominica: 'DM',
  194. Djibouti: 'DJ',
  195. Denmark: 'DK',
  196. 'British Virgin Islands': 'VG',
  197. Germany: 'DE',
  198. Yemen: 'YE',
  199. Algeria: 'DZ',
  200. 'United States': 'US',
  201. Uruguay: 'UY',
  202. Mayotte: 'YT',
  203. 'United States Minor Outlying Islands': 'UM',
  204. Lebanon: 'LB',
  205. 'Saint Lucia': 'LC',
  206. Laos: 'LA',
  207. Tuvalu: 'TV',
  208. Taiwan: 'TW',
  209. 'Trinidad and Tobago': 'TT',
  210. Turkey: 'TR',
  211. 'Sri Lanka': 'LK',
  212. Liechtenstein: 'LI',
  213. Latvia: 'LV',
  214. Tonga: 'TO',
  215. Lithuania: 'LT',
  216. Luxembourg: 'LU',
  217. Liberia: 'LR',
  218. Lesotho: 'LS',
  219. Thailand: 'TH',
  220. 'French Southern Territories': 'TF',
  221. Togo: 'TG',
  222. Chad: 'TD',
  223. 'Turks and Caicos Islands': 'TC',
  224. Libya: 'LY',
  225. Vatican: 'VA',
  226. 'Saint Vincent and the Grenadines': 'VC',
  227. 'United Arab Emirates': 'AE',
  228. Andorra: 'AD',
  229. 'Antigua and Barbuda': 'AG',
  230. Afghanistan: 'AF',
  231. Anguilla: 'AI',
  232. 'U.S. Virgin Islands': 'VI',
  233. Iceland: 'IS',
  234. Iran: 'IR',
  235. Armenia: 'AM',
  236. Albania: 'AL',
  237. Angola: 'AO',
  238. Antarctica: 'AQ',
  239. 'American Samoa': 'AS',
  240. Argentina: 'AR',
  241. Australia: 'AU',
  242. Austria: 'AT',
  243. Aruba: 'AW',
  244. India: 'IN',
  245. 'Aland Islands': 'AX',
  246. Azerbaijan: 'AZ',
  247. Ireland: 'IE',
  248. Indonesia: 'ID',
  249. Ukraine: 'UA',
  250. Qatar: 'QA',
  251. Mozambique: 'MZ',
  252. } as const;
  253. export const COUNTRY_CODE_TO_NAME_MAP = Object.fromEntries(
  254. Object.entries(countryCodesMap).map(([key, value]) => [value, key])
  255. );
  256. export default countryCodesMap;