Skip to main content

PHP and JavaScript ISO639-1 / 2 Letter Language Codes

(last update March 2015)

A PHP array and a JavaScript object with all the ISO639-1 (2 letter code) languages, updated today 6 of March 2015 from the official site for ISO639 Librarian of Congress.

PHP 2 Letter Language Codes ISO639-1

languagesISO639_1 = array(
    'aa' => 'Afar',
    'ab' => 'Abkhazian',
    'ae' => 'Avestan',
    'af' => 'Afrikaans',
    'ak' => 'Akan',
    'am' => 'Amharic',
    'an' => 'Aragonese',
    'ar' => 'Arabic',
    'as' => 'Assamese',
    'av' => 'Avaric',
    'ay' => 'Aymara',
    'az' => 'Azerbaijani',
    'ba' => 'Bashkir',
    'be' => 'Belarusian',
    'bg' => 'Bulgarian',
    'bh' => 'Bihari',
    'bi' => 'Bislama',
    'bm' => 'Bambara',
    'bn' => 'Bengali',
    'bo' => 'Tibetan',
    'br' => 'Breton',
    'bs' => 'Bosnian',
    'ca' => 'Catalan | Valencian',
    'ce' => 'Chechen',
    'ch' => 'Chamorro',
    'co' => 'Corsican',
    'cr' => 'Cree',
    'cs' => 'Czech',
    'cu' => 'Church Slavic | Old Slavonic | Church Slavonic | Old Bulgarian | Old Church Slavonic',
    'cv' => 'Chuvash',
    'cy' => 'Welsh',
    'da' => 'Danish',
    'de' => 'German',
    'dv' => 'Divehi |  Dhivehi |  Maldivian',
    'dz' => 'Dzongkha',
    'ee' => 'Ewe',
    'el' => 'Greek, Modern (1453-)',
    'en' => 'English',
    'eo' => 'Esperanto',
    'es' => 'Spanish |  Castilian',
    'et' => 'Estonian',
    'eu' => 'Basque',
    'fa' => 'Persian',
    'ff' => 'Fulah',
    'fi' => 'Finnish',
    'fj' => 'Fijian',
    'fo' => 'Faroese',
    'fr' => 'French',
    'fy' => 'Western Frisian',
    'ga' => 'Irish',
    'gd' => 'Gaelic | Scottish Gaelic',
    'gl' => 'Galician',
    'gn' => 'Guarani',
    'gu' => 'Gujarati',
    'gv' => 'Manx',
    'ha' => 'Hausa',
    'he' => 'Hebrew',
    'hi' => 'Hindi',
    'ho' => 'Hiri Motu',
    'hr' => 'Croatian',
    'ht' => 'Haitian | Haitian Creole',
    'hu' => 'Hungarian',
    'hy' => 'Armenian',
    'hz' => 'Herero',
    'ia' => 'Interlingua (International Auxiliary Language Association)',
    'id' => 'Indonesian',
    'ie' => 'Interlingue | Occidental',
    'ig' => 'Igbo',
    'ii' => 'Sichuan Yi | Nuosu',
    'ik' => 'Inupiaq',
    'io' => 'Ido',
    'is' => 'Icelandic',
    'it' => 'Italian',
    'iu' => 'Inuktitut',
    'ja' => 'Japanese',
    'jv' => 'Javanese',
    'ka' => 'Georgian',
    'kg' => 'Kongo',
    'ki' => 'Kikuyu |  Gikuyu',
    'kj' => 'Kwanyama, Kuanyama',
    'kk' => 'Kazakh',
    'kl' => 'Kalaallisut | Greenlandic',
    'km' => 'Central Khmer',
    'kn' => 'Kannada',
    'ko' => 'Korean',
    'kr' => 'Kanuri',
    'ks' => 'Kashmiri',
    'ku' => 'Kurdish',
    'kv' => 'Komi',
    'kw' => 'Cornish',
    'ky' => 'Kirghiz | Kyrgyz',
    'la' => 'Latin',
    'lb' => 'Luxembourgish',
    'lg' => 'Ganda',
    'li' => 'Limburgan | Limburger | Limburgish',
    'ln' => 'Lingala',
    'lo' => 'Lao',
    'lt' => 'Lithuanian',
    'lu' => 'Luba-Katanga',
    'lv' => 'Latvian',
    'mg' => 'Malagasy',
    'mh' => 'Marshallese',
    'mi' => 'Maori',
    'mk' => 'Macedonian',
    'ml' => 'Malayalam',
    'mn' => 'Mongolian',
    'mr' => 'Marathi',
    'ms' => 'Malay',
    'mt' => 'Maltese',
    'my' => 'Burmese',
    'na' => 'Nauru',
    'nb' => 'Bokmål, Norwegian | Norwegian Bokmål',
    'nd' => 'Ndebele, North |  North Ndebele',
    'ne' => 'Nepali',
    'ng' => 'Ndonga',
    'nl' => 'Dutch | Flemish',
    'nn' => 'Norwegian Nynorsk | Nynorsk, Norwegian',
    'no' => 'Norwegian',
    'nr' => 'Ndebele, South | South Ndebele',
    'nv' => 'Navajo | Navaho',
    'ny' => 'Chichewa | Chewa | Nyanja',
    'oc' => 'Occitan',
    'oj' => 'Ojibwa',
    'om' => 'Oromo',
    'or' => 'Oriya',
    'os' => 'Ossetian | Ossetic',
    'pa' => 'Panjabi | Punjabi',
    'pi' => 'Pali',
    'pl' => 'Polish',
    'ps' => 'Pushto | Pashto',
    'pt' => 'Portuguese',
    'qu' => 'Quechua',
    'rm' => 'Romansh',
    'rn' => 'Kirundi',
    'ro' => 'Romanian | Moldavian | Moldovan',
    'ru' => 'Russian',
    'rw' => 'Kinyarwanda',
    'sa' => 'Sanskrit',
    'sc' => 'Sardinian',
    'sd' => 'Sindhi',
    'se' => 'Northern Sami',
    'sg' => 'Sango',
    'si' => 'Sinhala | Sinhalese',
    'sk' => 'Slovak',
    'sl' => 'Slovenian',
    'sm' => 'Samoan',
    'sn' => 'Shona',
    'so' => 'Somali',
    'sq' => 'Albanian',
    'sr' => 'Serbian',
    'ss' => 'Swati',
    'st' => 'Sotho, Southern',
    'su' => 'Sundanese',
    'sv' => 'Swedish',
    'sw' => 'Swahili',
    'ta' => 'Tamil',
    'te' => 'Telugu',
    'tg' => 'Tajik',
    'th' => 'Thai',
    'ti' => 'Tigrinya',
    'tk' => 'Turkmen',
    'tl' => 'Tagalog',
    'tn' => 'Tswana',
    'to' => 'Tonga (Tonga Islands)',
    'tr' => 'Turkish',
    'ts' => 'Tsonga',
    'tt' => 'Tatar',
    'tw' => 'Twi',
    'ty' => 'Tahitian',
    'ug' => 'Uighur | Uyghur',
    'uk' => 'Ukrainian',
    'ur' => 'Urdu',
    'uz' => 'Uzbek',
    've' => 'Venda',
    'vi' => 'Vietnamese',
    'vo' => 'Volapük',
    'wa' => 'Walloon',
    'wo' => 'Wolof',
    'xh' => 'Xhosa',
    'yi' => 'Yiddish',
    'yo' => 'Yoruba',
    'za' => 'Zhuang | Chuang',
    'zh' => 'Chinese',
    'zu' => 'Zulu',
);

JavaScript 2 Letter Language Codes ISO639-1

var languagesISO639_1 =
{
    'aa': 'Afar',
    'ab': 'Abkhazian',
    'ae': 'Avestan',
    'af': 'Afrikaans',
    'ak': 'Akan',
    'am': 'Amharic',
    'an': 'Aragonese',
    'ar': 'Arabic',
    'as': 'Assamese',
    'av': 'Avaric',
    'ay': 'Aymara',
    'az': 'Azerbaijani',
    'ba': 'Bashkir',
    'be': 'Belarusian',
    'bg': 'Bulgarian',
    'bh': 'Bihari',
    'bi': 'Bislama',
    'bm': 'Bambara',
    'bn': 'Bengali',
    'bo': 'Tibetan',
    'br': 'Breton',
    'bs': 'Bosnian',
    'ca': 'Catalan | Valencian',
    'ce': 'Chechen',
    'ch': 'Chamorro',
    'co': 'Corsican',
    'cr': 'Cree',
    'cs': 'Czech',
    'cu': 'Church Slavic | Old Slavonic | Church Slavonic | Old Bulgarian | Old Church Slavonic',
    'cv': 'Chuvash',
    'cy': 'Welsh',
    'da': 'Danish',
    'de': 'German',
    'dv': 'Divehi |  Dhivehi |  Maldivian',
    'dz': 'Dzongkha',
    'ee': 'Ewe',
    'el': 'Greek, Modern (1453-)',
    'en': 'English',
    'eo': 'Esperanto',
    'es': 'Spanish |  Castilian',
    'et': 'Estonian',
    'eu': 'Basque',
    'fa': 'Persian',
    'ff': 'Fulah',
    'fi': 'Finnish',
    'fj': 'Fijian',
    'fo': 'Faroese',
    'fr': 'French',
    'fy': 'Western Frisian',
    'ga': 'Irish',
    'gd': 'Gaelic | Scottish Gaelic',
    'gl': 'Galician',
    'gn': 'Guarani',
    'gu': 'Gujarati',
    'gv': 'Manx',
    'ha': 'Hausa',
    'he': 'Hebrew',
    'hi': 'Hindi',
    'ho': 'Hiri Motu',
    'hr': 'Croatian',
    'ht': 'Haitian | Haitian Creole',
    'hu': 'Hungarian',
    'hy': 'Armenian',
    'hz': 'Herero',
    'ia': 'Interlingua (International Auxiliary Language Association)',
    'id': 'Indonesian',
    'ie': 'Interlingue | Occidental',
    'ig': 'Igbo',
    'ii': 'Sichuan Yi | Nuosu',
    'ik': 'Inupiaq',
    'io': 'Ido',
    'is': 'Icelandic',
    'it': 'Italian',
    'iu': 'Inuktitut',
    'ja': 'Japanese',
    'jv': 'Javanese',
    'ka': 'Georgian',
    'kg': 'Kongo',
    'ki': 'Kikuyu |  Gikuyu',
    'kj': 'Kwanyama, Kuanyama',
    'kk': 'Kazakh',
    'kl': 'Kalaallisut | Greenlandic',
    'km': 'Central Khmer',
    'kn': 'Kannada',
    'ko': 'Korean',
    'kr': 'Kanuri',
    'ks': 'Kashmiri',
    'ku': 'Kurdish',
    'kv': 'Komi',
    'kw': 'Cornish',
    'ky': 'Kirghiz | Kyrgyz',
    'la': 'Latin',
    'lb': 'Luxembourgish',
    'lg': 'Ganda',
    'li': 'Limburgan | Limburger | Limburgish',
    'ln': 'Lingala',
    'lo': 'Lao',
    'lt': 'Lithuanian',
    'lu': 'Luba-Katanga',
    'lv': 'Latvian',
    'mg': 'Malagasy',
    'mh': 'Marshallese',
    'mi': 'Maori',
    'mk': 'Macedonian',
    'ml': 'Malayalam',
    'mn': 'Mongolian',
    'mr': 'Marathi',
    'ms': 'Malay',
    'mt': 'Maltese',
    'my': 'Burmese',
    'na': 'Nauru',
    'nb': 'Bokmål, Norwegian | Norwegian Bokmål',
    'nd': 'Ndebele, North |  North Ndebele',
    'ne': 'Nepali',
    'ng': 'Ndonga',
    'nl': 'Dutch | Flemish',
    'nn': 'Norwegian Nynorsk | Nynorsk, Norwegian',
    'no': 'Norwegian',
    'nr': 'Ndebele, South | South Ndebele',
    'nv': 'Navajo | Navaho',
    'ny': 'Chichewa | Chewa | Nyanja',
    'oc': 'Occitan',
    'oj': 'Ojibwa',
    'om': 'Oromo',
    'or': 'Oriya',
    'os': 'Ossetian | Ossetic',
    'pa': 'Panjabi | Punjabi',
    'pi': 'Pali',
    'pl': 'Polish',
    'ps': 'Pushto | Pashto',
    'pt': 'Portuguese',
    'qu': 'Quechua',
    'rm': 'Romansh',
    'rn': 'Kirundi',
    'ro': 'Romanian | Moldavian | Moldovan',
    'ru': 'Russian',
    'rw': 'Kinyarwanda',
    'sa': 'Sanskrit',
    'sc': 'Sardinian',
    'sd': 'Sindhi',
    'se': 'Northern Sami',
    'sg': 'Sango',
    'si': 'Sinhala | Sinhalese',
    'sk': 'Slovak',
    'sl': 'Slovenian',
    'sm': 'Samoan',
    'sn': 'Shona',
    'so': 'Somali',
    'sq': 'Albanian',
    'sr': 'Serbian',
    'ss': 'Swati',
    'st': 'Sotho, Southern',
    'su': 'Sundanese',
    'sv': 'Swedish',
    'sw': 'Swahili',
    'ta': 'Tamil',
    'te': 'Telugu',
    'tg': 'Tajik',
    'th': 'Thai',
    'ti': 'Tigrinya',
    'tk': 'Turkmen',
    'tl': 'Tagalog',
    'tn': 'Tswana',
    'to': 'Tonga (Tonga Islands)',
    'tr': 'Turkish',
    'ts': 'Tsonga',
    'tt': 'Tatar',
    'tw': 'Twi',
    'ty': 'Tahitian',
    'ug': 'Uighur | Uyghur',
    'uk': 'Ukrainian',
    'ur': 'Urdu',
    'uz': 'Uzbek',
    've': 'Venda',
    'vi': 'Vietnamese',
    'vo': 'Volapük',
    'wa': 'Walloon',
    'wo': 'Wolof',
    'xh': 'Xhosa',
    'yi': 'Yiddish',
    'yo': 'Yoruba',
    'za': 'Zhuang | Chuang',
    'zh': 'Chinese',
    'zu': 'Zulu'
};

Comments

Popular posts from this blog

Apple's new iOS 13: Automation. Dark Mode. Manage Storage Using Files App. Completely Turn Off Bluetooth & Wi-fi on iPhone

Apple's new iOS 13: Automation. Dark Mode. Manage Storage Trough Files App.  That's a pretty long and bold title but it's all possible now, I don't know you but this made my day. I've just upgraded to iOS 13 and playing around with it I found a few useful features; automation is by far the most interesting one. iOS 13 Automation Example: Completely Turn Off Bluetooth & Wi-fi on iPhone Since I got onboard Apple's ecosystem I always wanted to completely turn off the bluetooth and the wireless - a personal thing maybe - to try improve the poor iPhone 8 battery life but also to reduce the electromagnetic radiation to minimum when possible. This can now be done using Automation, read on to see how or scroll down for the 1 minute video: Update to l atest Apple iOS 13 Open Shortcuts App Create a new Automation Select Low Power Mode from the list (that's when the automation will trigger) Search and Choose the following Actions from the list: Turn

PHP Development Environment Setup & Tools (Windows Host & Ubuntu Linux VM Guest)

I mostly use the paid  PHPStorm  as main development IDE  (supports: PHP, JS (Angular, PhoneGap/Cordova), CSS/HTML, .MD, XML etc) NetBeans PHP  as the free version alternative Apache on  Ubuntu Debian  LTS -  VirtualBox virtualization (it can change PHP versions by creating/restoring snapshots) PHP7 Current Stable Xdebug  PHP debugger Composer  dependency manager MySQL 5.7 NodeJS  asynchronous event driven JavaScript runtime IIS  on Windows (can easily register and change between PHP versions) Installed with  Web Platform Installer   PHP 5.3, 5.4, 5.5, 5.6 and 7.0 MySQL Xdebug  PHP debugger Composer  dependency manager for PHP NodeJS  asynchronous event driven JavaScript runtime GoogleChrome  powerful browser & dev console (has bookmarks sync) POSTman  for API testing (has sync, unit tests and supports multiple environments) SourceTree  for Git Source Control Management (and conflict merging as well) HeidiSQL  as a SQL client tool (db/table backup a