Skip to main content


Showing posts from 2015

PHP and JavaScript ISO639-1 / 2 Letter Language Codes

(last update March 2015)  I promised myself I will share some of my work to support the fast growing IT and PHP community.

Here's 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-1languagesISO639_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…