Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
language codes for WordPress
langs = {
"azb" => "Azeri – آذری",
"af" => "Afrikaans",
"ar" => "Arabic – عربي",
"bn_BD" => "Bangla - Bengali",
"eu" => "Basque - Euskara",
"be_BY" => "Belarusian - Беларуская - Biełaruskaja",
"bs_BA" => "Bosnian - Bosanski",
"bg_BG" => "Bulgarian - Български",
"ca" => "Catalan - Català",
"zh_CN" => "Chinese - 中文",
"zh_HK" => "Hong Kong (香港)",
"zh_TW" => "Taiwan (台灣)",
"hr" => "Croatian - Hrvatski",
"cs_CZ" => "Czech - Čeština",
"da_DK" => "Danish - Dansk",
"nl_NL" => "Dutch - Nederlands",
"en_GB" => "English (British)",
"en_CA" => "English (Canadian)",
"eo" => "Esperanto",
"et" => "Estonian - Eesti",
"fo" => "Faroese",
"fi" => "Finnish - Suomi",
"fr_FR" => "French - Français",
"gl_ES" => "Galician - Galego",
"de_DE" => "German - Deutsch",
"el" => "Greek",
"he_IL" => "Hebrew - עברית",
"hu_HU" => "Hungarian - Magyar",
"is_IS" => "Icelandic - íslenska",
"id_ID" => "Indonesian - Bahasa Indonesia",
"it_IT" => "Italian",
"ja" => "Japanese",
"km_KH" => "Khmer(Cambodian Language)-ខ្មែរ",
"ko_KR" => "Korean - 한국어 -",
"lv" => "Latvian (Latviešu)",
"lt_LT" => "Lithuanian - Lietuviškai",
"mk_MK" => "Macedonian - Македонски",
"mg_MG" => "Malagasy",
"ms_MY" => "Malay – Bahasa Melayu",
"ni_ID" => "Nias - Li Niha",
"norsk" => "Norwegian",
"nb_NO" => "Bokmål",
"nn_NO" => "Nynorsk",
"fa_IR" => "WordPress Persian - وردپرس فارسی",
"pl_PL" => "Polish - Polski",
"ro_RO" => "Romanian - Română",
"ru_RU" => "Russian — Русский",
"sah" => "Sakha - Саха",
"sr_RS" => "Serbian — Српски",
"si_LK" => "Sinhala - සිංහල",
"sk_SK" => "Slovak – Slovenčina",
"sl_SI" => "Slovenian - Slovenščina",
"su_ID" => "Sundanese - Basa Sunda",
"sv_SE" => "Swedish - Svenska",
"tg" => "Tajik",
"th" => "Thai",
"tr" => "Turkish - Türkçe",
"uk" => "Ukrainian - Українська",
"uz_UZ" => "Uzbek - O‘zbekcha",
"vi" => "Vietnamse - Tiếng Việt",
"cy" => "Welsh - Cymraeg"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.