countryCode.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /*
  2. CountryCode.js
  3. This script convert country code into
  4. country name
  5. */
  6. var getCountryName = function(countryISOCode){
  7. countryISOCode = countryISOCode.toLowerCase();
  8. var cc = {
  9. "af": "Afghanistan",
  10. "ax": "Aland Islands",
  11. "al": "Albania",
  12. "dz": "Algeria",
  13. "as": "American Samoa",
  14. "ad": "Andorra",
  15. "ao": "Angola",
  16. "ai": "Anguilla",
  17. "ag": "Antigua",
  18. "ar": "Argentina",
  19. "am": "Armenia",
  20. "aw": "Aruba",
  21. "au": "Australia",
  22. "at": "Austria",
  23. "az": "Azerbaijan",
  24. "bs": "Bahamas",
  25. "bh": "Bahrain",
  26. "bd": "Bangladesh",
  27. "bb": "Barbados",
  28. "by": "Belarus",
  29. "be": "Belgium",
  30. "bz": "Belize",
  31. "bj": "Benin",
  32. "bm": "Bermuda",
  33. "bt": "Bhutan",
  34. "bo": "Bolivia",
  35. "ba": "Bosnia",
  36. "bw": "Botswana",
  37. "bv": "Bouvet Island",
  38. "br": "Brazil",
  39. "vg": "British Virgin Islands",
  40. "bn": "Brunei",
  41. "bg": "Bulgaria",
  42. "bf": "Burkina Faso",
  43. "mm": "Burma",
  44. "bi": "Burundi",
  45. "tc": "Caicos Islands",
  46. "kh": "Cambodia",
  47. "cm": "Cameroon",
  48. "ca": "Canada",
  49. "cv": "Cape Verde",
  50. "ky": "Cayman Islands",
  51. "cf": "Central African Republic",
  52. "td": "Chad",
  53. "cl": "Chile",
  54. "cn": "China",
  55. "cx": "Christmas Island",
  56. "cc": "Cocos Islands",
  57. "co": "Colombia",
  58. "km": "Comoros",
  59. "cg": "Congo Brazzaville",
  60. "cd": "Congo",
  61. "ck": "Cook Islands",
  62. "cr": "Costa Rica",
  63. "ci": "Cote Divoire",
  64. "hr": "Croatia",
  65. "cu": "Cuba",
  66. "cy": "Cyprus",
  67. "cz": "Czech Republic",
  68. "dk": "Denmark",
  69. "dj": "Djibouti",
  70. "dm": "Dominica",
  71. "do": "Dominican Republic",
  72. "ec": "Ecuador",
  73. "eg": "Egypt",
  74. "sv": "El Salvador",
  75. "gb": "England",
  76. "gq": "Equatorial Guinea",
  77. "er": "Eritrea",
  78. "ee": "Estonia",
  79. "et": "Ethiopia",
  80. "eu": "European Union",
  81. "fk": "Falkland Islands",
  82. "fo": "Faroe Islands",
  83. "fj": "Fiji",
  84. "fi": "Finland",
  85. "fr": "France",
  86. "gf": "French Guiana",
  87. "pf": "French Polynesia",
  88. "tf": "French Territories",
  89. "ga": "Gabon",
  90. "gm": "Gambia",
  91. "ge": "Georgia",
  92. "de": "Germany",
  93. "gh": "Ghana",
  94. "gi": "Gibraltar",
  95. "gr": "Greece",
  96. "gl": "Greenland",
  97. "gd": "Grenada",
  98. "gp": "Guadeloupe",
  99. "gu": "Guam",
  100. "gt": "Guatemala",
  101. "gw": "Guinea-Bissau",
  102. "gn": "Guinea",
  103. "gy": "Guyana",
  104. "ht": "Haiti",
  105. "hm": "Heard Island",
  106. "hn": "Honduras",
  107. "hk": "Hong Kong",
  108. "hu": "Hungary",
  109. "is": "Iceland",
  110. "in": "India",
  111. "io": "Indian Ocean Territory",
  112. "id": "Indonesia",
  113. "ir": "Iran",
  114. "iq": "Iraq",
  115. "ie": "Ireland",
  116. "il": "Israel",
  117. "it": "Italy",
  118. "jm": "Jamaica",
  119. "jp": "Japan",
  120. "jo": "Jordan",
  121. "kz": "Kazakhstan",
  122. "ke": "Kenya",
  123. "ki": "Kiribati",
  124. "kw": "Kuwait",
  125. "kg": "Kyrgyzstan",
  126. "la": "Laos",
  127. "lv": "Latvia",
  128. "lb": "Lebanon",
  129. "ls": "Lesotho",
  130. "lr": "Liberia",
  131. "ly": "Libya",
  132. "li": "Liechtenstein",
  133. "lt": "Lithuania",
  134. "lu": "Luxembourg",
  135. "mo": "Macau",
  136. "mk": "Macedonia",
  137. "mg": "Madagascar",
  138. "mw": "Malawi",
  139. "my": "Malaysia",
  140. "mv": "Maldives",
  141. "ml": "Mali",
  142. "mt": "Malta",
  143. "mh": "Marshall Islands",
  144. "mq": "Martinique",
  145. "mr": "Mauritania",
  146. "mu": "Mauritius",
  147. "yt": "Mayotte",
  148. "mx": "Mexico",
  149. "fm": "Micronesia",
  150. "md": "Moldova",
  151. "mc": "Monaco",
  152. "mn": "Mongolia",
  153. "me": "Montenegro",
  154. "ms": "Montserrat",
  155. "ma": "Morocco",
  156. "mz": "Mozambique",
  157. "na": "Namibia",
  158. "nr": "Nauru",
  159. "np": "Nepal",
  160. "an": "Netherlands Antilles",
  161. "nl": "Netherlands",
  162. "nc": "New Caledonia",
  163. "pg": "New Guinea",
  164. "nz": "New Zealand",
  165. "ni": "Nicaragua",
  166. "ne": "Niger",
  167. "ng": "Nigeria",
  168. "nu": "Niue",
  169. "nf": "Norfolk Island",
  170. "kp": "North Korea",
  171. "mp": "Northern Mariana Islands",
  172. "no": "Norway",
  173. "om": "Oman",
  174. "pk": "Pakistan",
  175. "pw": "Palau",
  176. "ps": "Palestine",
  177. "pa": "Panama",
  178. "py": "Paraguay",
  179. "pe": "Peru",
  180. "ph": "Philippines",
  181. "pn": "Pitcairn Islands",
  182. "pl": "Poland",
  183. "pt": "Portugal",
  184. "pr": "Puerto Rico",
  185. "qa": "Qatar",
  186. "re": "Reunion",
  187. "ro": "Romania",
  188. "ru": "Russia",
  189. "rw": "Rwanda",
  190. "sh": "Saint Helena",
  191. "kn": "Saint Kitts and Nevis",
  192. "lc": "Saint Lucia",
  193. "pm": "Saint Pierre",
  194. "vc": "Saint Vincent",
  195. "ws": "Samoa",
  196. "sm": "San Marino",
  197. "gs": "Sandwich Islands",
  198. "st": "Sao Tome",
  199. "sa": "Saudi Arabia",
  200. "sn": "Senegal",
  201. "cs": "Serbia",
  202. "rs": "Serbia",
  203. "sc": "Seychelles",
  204. "sl": "Sierra Leone",
  205. "sg": "Singapore",
  206. "sk": "Slovakia",
  207. "si": "Slovenia",
  208. "sb": "Solomon Islands",
  209. "so": "Somalia",
  210. "za": "South Africa",
  211. "kr": "South Korea",
  212. "es": "Spain",
  213. "lk": "Sri Lanka",
  214. "sd": "Sudan",
  215. "sr": "Suriname",
  216. "sj": "Svalbard",
  217. "sz": "Swaziland",
  218. "se": "Sweden",
  219. "ch": "Switzerland",
  220. "sy": "Syria",
  221. "tw": "Taiwan",
  222. "tj": "Tajikistan",
  223. "tz": "Tanzania",
  224. "th": "Thailand",
  225. "tl": "Timorleste",
  226. "tg": "Togo",
  227. "tk": "Tokelau",
  228. "to": "Tonga",
  229. "tt": "Trinidad",
  230. "tn": "Tunisia",
  231. "tr": "Turkey",
  232. "tm": "Turkmenistan",
  233. "tv": "Tuvalu",
  234. "ug": "Uganda",
  235. "ua": "Ukraine",
  236. "ae": "United Arab Emirates",
  237. "us": "United States",
  238. "uy": "Uruguay",
  239. "um": "Us Minor Islands",
  240. "vi": "Us Virgin Islands",
  241. "uz": "Uzbekistan",
  242. "vu": "Vanuatu",
  243. "va": "Vatican City",
  244. "ve": "Venezuela",
  245. "vn": "Vietnam",
  246. "wf": "Wallis and Futuna",
  247. "eh": "Western Sahara",
  248. "ye": "Yemen",
  249. "zm": "Zambia",
  250. "zw": "Zimbabwe"
  251. }
  252. return cc[countryISOCode];
  253. }