Language Codes ISO 2 letter (ISO 639-1) & 3 letter (ISO 639-2) with names in PHP array


/ Published in: PHP
Save to your folder(s)

This table is based on the ISO 2 letter (Alpha-2 code, ISO 639-1) and 3 letter (Alpha-3 code, ISO 639-2) Standard Codes for the Representation of Names of Languages.


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. return array(
  4. "ab" => "Abkhazian",
  5. "abk" => "Abkhazian",
  6. "aa" => "Afar",
  7. "aar" => "Afar",
  8. "af" => "Afrikaans",
  9. "afr" => "Afrikaans",
  10. "sq" => "Albanian",
  11. "alb" => "Albanian",
  12. "sqi" => "Albanian",
  13. "am" => "Amharic",
  14. "amh" => "Amharic",
  15. "ar" => "Arabic",
  16. "ara" => "Arabic",
  17. "an" => "Aragonese",
  18. "arg" => "Aragonese",
  19. "hy" => "Armenian",
  20. "arm" => "Armenian",
  21. "hye" => "Armenian",
  22. "as" => "Assamese",
  23. "asm" => "Assamese",
  24. "ae" => "Avestan",
  25. "ave" => "Avestan",
  26. "ay" => "Aymara",
  27. "aym" => "Aymara",
  28. "az" => "Azerbaijani",
  29. "aze" => "Azerbaijani",
  30. "ba" => "Bashkir",
  31. "bak" => "Bashkir",
  32. "eu" => "Basque",
  33. "baq" => "Basque",
  34. "eus" => "Basque",
  35. "be" => "Belarusian",
  36. "bel" => "Belarusian",
  37. "bn" => "Bengali",
  38. "ben" => "Bengali",
  39. "bh" => "Bihari",
  40. "bih" => "Bihari",
  41. "bi" => "Bislama",
  42. "bis" => "Bislama",
  43. "bs" => "Bosnian",
  44. "bos" => "Bosnian",
  45. "br" => "Breton",
  46. "bre" => "Breton",
  47. "bg" => "Bulgarian",
  48. "bul" => "Bulgarian",
  49. "my" => "Burmese",
  50. "bur" => "Burmese",
  51. "mya" => "Burmese",
  52. "ca" => "Catalan",
  53. "cat" => "Catalan",
  54. "ch" => "Chamorro",
  55. "cha" => "Chamorro",
  56. "ce" => "Chechen",
  57. "che" => "Chechen",
  58. "zh" => "Chinese",
  59. "chi" => "Chinese",
  60. "zho" => "Chinese",
  61. "cu" => "Church Slavic, Slavonic, Old Bulgarian",
  62. "chu" => "Church Slavic, Slavonic, Old Bulgarian",
  63. "cv" => "Chuvash",
  64. "chv" => "Chuvash",
  65. "kw" => "Cornish",
  66. "cor" => "Cornish",
  67. "co" => "Corsican",
  68. "cos" => "Corsican",
  69. "hr" => "Croatian",
  70. "hrv" => "Croatian",
  71. "scr" => "Croatian",
  72. "cs" => "Czech",
  73. "cze" => "Czech",
  74. "ces" => "Czech",
  75. "da" => "Danish",
  76. "dan" => "Danish",
  77. "dv" => "Divehi, Dhivehi, Maldivian",
  78. "div" => "Divehi, Dhivehi, Maldivian",
  79. "nl" => "Dutch",
  80. "dut" => "Dutch",
  81. "nld" => "Dutch",
  82. "dz" => "Dzongkha",
  83. "dzo" => "Dzongkha",
  84. "en" => "English",
  85. "eng" => "English",
  86. "eo" => "Esperanto",
  87. "epo" => "Esperanto",
  88. "et" => "Estonian",
  89. "est" => "Estonian",
  90. "fo" => "Faroese",
  91. "fao" => "Faroese",
  92. "fj" => "Fijian",
  93. "fij" => "Fijian",
  94. "fi" => "Finnish",
  95. "fin" => "Finnish",
  96. "fr" => "French",
  97. "fre" => "French",
  98. "fra" => "French",
  99. "gd" => "Gaelic, Scottish Gaelic",
  100. "gla" => "Gaelic, Scottish Gaelic",
  101. "gl" => "Galician",
  102. "glg" => "Galician",
  103. "ka" => "Georgian",
  104. "geo" => "Georgian",
  105. "kat" => "Georgian",
  106. "de" => "German",
  107. "ger" => "German",
  108. "deu" => "German",
  109. "el" => "Greek, Modern",
  110. "gre" => "Greek, Modern",
  111. "ell" => "Greek, Modern",
  112. "gn" => "Guarani",
  113. "grn" => "Guarani",
  114. "gu" => "Gujarati",
  115. "guj" => "Gujarati",
  116. "ht" => "Haitian, Haitian Creole",
  117. "hat" => "Haitian, Haitian Creole",
  118. "ha" => "Hausa",
  119. "hau" => "Hausa",
  120. "he" => "Hebrew",
  121. "heb" => "Hebrew",
  122. "hz" => "Herero",
  123. "her" => "Herero",
  124. "hi" => "Hindi",
  125. "hin" => "Hindi",
  126. "ho" => "Hiri Motu",
  127. "hmo" => "Hiri Motu",
  128. "hu" => "Hungarian",
  129. "hun" => "Hungarian",
  130. "is" => "Icelandic",
  131. "ice" => "Icelandic",
  132. "isl" => "Icelandic",
  133. "io" => "Ido",
  134. "ido" => "Ido",
  135. "id" => "Indonesian",
  136. "ind" => "Indonesian",
  137. "ia" => "Interlingua",
  138. "ina" => "Interlingua",
  139. "ie" => "Interlingue",
  140. "ile" => "Interlingue",
  141. "iu" => "Inuktitut",
  142. "iku" => "Inuktitut",
  143. "ik" => "Inupiaq",
  144. "ipk" => "Inupiaq",
  145. "ga" => "Irish",
  146. "gle" => "Irish",
  147. "it" => "Italian",
  148. "ita" => "Italian",
  149. "ja" => "Japanese",
  150. "jpn" => "Japanese",
  151. "jv" => "Javanese",
  152. "jav" => "Javanese",
  153. "kl" => "Kalaallisut",
  154. "kal" => "Kalaallisut",
  155. "kn" => "Kannada",
  156. "kan" => "Kannada",
  157. "ks" => "Kashmiri",
  158. "kas" => "Kashmiri",
  159. "kk" => "Kazakh",
  160. "kaz" => "Kazakh",
  161. "km" => "Khmer",
  162. "khm" => "Khmer",
  163. "ki" => "Kikuyu, Gikuyu",
  164. "kik" => "Kikuyu, Gikuyu",
  165. "rw" => "Kinyarwanda",
  166. "kin" => "Kinyarwanda",
  167. "ky" => "Kirghiz",
  168. "kir" => "Kirghiz",
  169. "kv" => "Komi",
  170. "kom" => "Komi",
  171. "ko" => "Korean",
  172. "kor" => "Korean",
  173. "kj" => "Kuanyama, Kwanyama",
  174. "kua" => "Kuanyama, Kwanyama",
  175. "ku" => "Kurdish",
  176. "kur" => "Kurdish",
  177. "lo" => "Lao",
  178. "lao" => "Lao",
  179. "la" => "Latin",
  180. "lat" => "Latin",
  181. "lv" => "Latvian",
  182. "lav" => "Latvian",
  183. "li" => "Limburgan, Limburger, Limburgish",
  184. "lim" => "Limburgan, Limburger, Limburgish",
  185. "ln" => "Lingala",
  186. "lin" => "Lingala",
  187. "lt" => "Lithuanian",
  188. "lit" => "Lithuanian",
  189. "lb" => "Luxembourgish, Letzeburgesch",
  190. "ltz" => "Luxembourgish, Letzeburgesch",
  191. "mk" => "Macedonian",
  192. "mac" => "Macedonian",
  193. "mkd" => "Macedonian",
  194. "mg" => "Malagasy",
  195. "mlg" => "Malagasy",
  196. "ms" => "Malay",
  197. "may" => "Malay",
  198. "msa" => "Malay",
  199. "ml" => "Malayalam",
  200. "mal" => "Malayalam",
  201. "mt" => "Maltese",
  202. "mlt" => "Maltese",
  203. "gv" => "Manx",
  204. "glv" => "Manx",
  205. "mi" => "Maori",
  206. "mao" => "Maori",
  207. "mri" => "Maori",
  208. "mr" => "Marathi",
  209. "mar" => "Marathi",
  210. "mh" => "Marshallese",
  211. "mah" => "Marshallese",
  212. "mo" => "Moldavian",
  213. "mol" => "Moldavian",
  214. "mn" => "Mongolian",
  215. "mon" => "Mongolian",
  216. "na" => "Nauru",
  217. "nau" => "Nauru",
  218. "nv" => "Navaho, Navajo",
  219. "nav" => "Navaho, Navajo",
  220. "nd" => "Ndebele, North",
  221. "nde" => "Ndebele, North",
  222. "nr" => "Ndebele, South",
  223. "nbl" => "Ndebele, South",
  224. "ng" => "Ndonga",
  225. "ndo" => "Ndonga",
  226. "ne" => "Nepali",
  227. "nep" => "Nepali",
  228. "se" => "Northern Sami",
  229. "sme" => "Northern Sami",
  230. "no" => "Norwegian",
  231. "nor" => "Norwegian",
  232. "nb" => "Norwegian Bokmal",
  233. "nob" => "Norwegian Bokmal",
  234. "nn" => "Norwegian Nynorsk",
  235. "nno" => "Norwegian Nynorsk",
  236. "ny" => "Nyanja, Chichewa, Chewa",
  237. "nya" => "Nyanja, Chichewa, Chewa",
  238. "oc" => "Occitan, Provencal",
  239. "oci" => "Occitan, Provencal",
  240. "or" => "Oriya",
  241. "ori" => "Oriya",
  242. "om" => "Oromo",
  243. "orm" => "Oromo",
  244. "os" => "Ossetian, Ossetic",
  245. "oss" => "Ossetian, Ossetic",
  246. "pi" => "Pali",
  247. "pli" => "Pali",
  248. "pa" => "Panjabi",
  249. "pan" => "Panjabi",
  250. "fa" => "Persian",
  251. "per" => "Persian",
  252. "fas" => "Persian",
  253. "pl" => "Polish",
  254. "pol" => "Polish",
  255. "pt" => "Portuguese",
  256. "por" => "Portuguese",
  257. "ps" => "Pushto",
  258. "pus" => "Pushto",
  259. "qu" => "Quechua",
  260. "que" => "Quechua",
  261. "rm" => "Raeto-Romance",
  262. "roh" => "Raeto-Romance",
  263. "ro" => "Romanian",
  264. "rum" => "Romanian",
  265. "ron" => "Romanian",
  266. "rn" => "Rundi",
  267. "run" => "Rundi",
  268. "ru" => "Russian",
  269. "rus" => "Russian",
  270. "sm" => "Samoan",
  271. "smo" => "Samoan",
  272. "sg" => "Sango",
  273. "sag" => "Sango",
  274. "sa" => "Sanskrit",
  275. "san" => "Sanskrit",
  276. "sc" => "Sardinian",
  277. "srd" => "Sardinian",
  278. "sr" => "Serbian",
  279. "scc" => "Serbian",
  280. "srp" => "Serbian",
  281. "sn" => "Shona",
  282. "sna" => "Shona",
  283. "ii" => "Sichuan Yi",
  284. "iii" => "Sichuan Yi",
  285. "sd" => "Sindhi",
  286. "snd" => "Sindhi",
  287. "si" => "Sinhala, Sinhalese",
  288. "sin" => "Sinhala, Sinhalese",
  289. "sk" => "Slovak",
  290. "slo" => "Slovak",
  291. "slk" => "Slovak",
  292. "sl" => "Slovenian",
  293. "slv" => "Slovenian",
  294. "so" => "Somali",
  295. "som" => "Somali",
  296. "st" => "Sotho, Southern",
  297. "sot" => "Sotho, Southern",
  298. "es" => "Spanish, Castilian",
  299. "spa" => "Spanish, Castilian",
  300. "su" => "Sundanese",
  301. "sun" => "Sundanese",
  302. "sw" => "Swahili",
  303. "swa" => "Swahili",
  304. "ss" => "Swati",
  305. "ssw" => "Swati",
  306. "sv" => "Swedish",
  307. "swe" => "Swedish",
  308. "tl" => "Tagalog",
  309. "tgl" => "Tagalog",
  310. "ty" => "Tahitian",
  311. "tah" => "Tahitian",
  312. "tg" => "Tajik",
  313. "tgk" => "Tajik",
  314. "ta" => "Tamil",
  315. "tam" => "Tamil",
  316. "tt" => "Tatar",
  317. "tat" => "Tatar",
  318. "te" => "Telugu",
  319. "tel" => "Telugu",
  320. "th" => "Thai",
  321. "tha" => "Thai",
  322. "bo" => "Tibetan",
  323. "tib" => "Tibetan",
  324. "bod" => "Tibetan",
  325. "ti" => "Tigrinya",
  326. "tir" => "Tigrinya",
  327. "to" => "Tonga",
  328. "ton" => "Tonga",
  329. "ts" => "Tsonga",
  330. "tso" => "Tsonga",
  331. "tn" => "Tswana",
  332. "tsn" => "Tswana",
  333. "tr" => "Turkish",
  334. "tur" => "Turkish",
  335. "tk" => "Turkmen",
  336. "tuk" => "Turkmen",
  337. "tw" => "Twi",
  338. "twi" => "Twi",
  339. "ug" => "Uighur",
  340. "uig" => "Uighur",
  341. "uk" => "Ukrainian",
  342. "ukr" => "Ukrainian",
  343. "ur" => "Urdu",
  344. "urd" => "Urdu",
  345. "uz" => "Uzbek",
  346. "uzb" => "Uzbek",
  347. "vi" => "Vietnamese",
  348. "vie" => "Vietnamese",
  349. "vo" => "Volapuk",
  350. "vol" => "Volapuk",
  351. "wa" => "Walloon",
  352. "wln" => "Walloon",
  353. "cy" => "Welsh",
  354. "wel" => "Welsh",
  355. "cym" => "Welsh",
  356. "fy" => "Western Frisian",
  357. "fry" => "Western Frisian",
  358. "wo" => "Wolof",
  359. "wol" => "Wolof",
  360. "xh" => "Xhosa",
  361. "xho" => "Xhosa",
  362. "yi" => "Yiddish",
  363. "yid" => "Yiddish",
  364. "yo" => "Yoruba",
  365. "yor" => "Yoruba",
  366. "za" => "Zhuang, Chuang",
  367. "zha" => "Zhuang, Chuang",
  368. "zu" => "Zulu",
  369. "zul" => "Zulu"
  370. );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.