function LanguageManager::getStandardLanguageList
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
- 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
- 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
Overrides LanguageManagerInterface::getStandardLanguageList
15 calls to LanguageManager::getStandardLanguageList()
- CKEditor5Test::testLanguageOfPartsPlugin in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php - Test for plugin Language of parts.
- ConfigurableLanguage::createFromLangcode in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Creates a configurable language object from a langcode.
- ConfigurableLanguageManager::getStandardLanguageListWithoutConfigured in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns the standard language list excluding already configured languages.
- InstallerLanguagePageTest::setUpLanguage in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerLanguagePageTest.php - Installer step: Select language.
- install_check_translations in core/
includes/ install.core.inc - Checks installation requirements and reports any errors.
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 229
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public static function getStandardLanguageList() {
// This list is based on languages available from localize.drupal.org. See
// http://localize.drupal.org/issues for information on how to add languages
// there.
//
// The "Left-to-right marker" comments and the enclosed UTF-8 markers are to
// make otherwise strange looking PHP syntax natural (to not be displayed in
// right to left). See https://www.drupal.org/node/128866#comment-528929.
// cSpell:disable
return [
'af' => [
'Afrikaans',
'Afrikaans',
],
'am' => [
'Amharic',
'አማርኛ',
],
'ar' => [
'Arabic',
/* Left-to-right marker "" */
'العربية',
LanguageInterface::DIRECTION_RTL,
],
'ast' => [
'Asturian',
'Asturianu',
],
'az' => [
'Azerbaijani',
'Azərbaycanca',
],
'be' => [
'Belarusian',
'Беларуская',
],
'bg' => [
'Bulgarian',
'Български',
],
'bn' => [
'Bengali',
'বাংলা',
],
'bo' => [
'Tibetan',
'བོད་སྐད་',
],
'bs' => [
'Bosnian',
'Bosanski',
],
'ca' => [
'Catalan',
'Català',
],
'cs' => [
'Czech',
'Čeština',
],
'cy' => [
'Welsh',
'Cymraeg',
],
'da' => [
'Danish',
'Dansk',
],
'de' => [
'German',
'Deutsch',
],
'dz' => [
'Dzongkha',
'རྫོང་ཁ',
],
'el' => [
'Greek',
'Ελληνικά',
],
'en' => [
'English',
'English',
],
'en-x-simple' => [
'Simple English',
'Simple English',
],
'eo' => [
'Esperanto',
'Esperanto',
],
'es' => [
'Spanish',
'Español',
],
'et' => [
'Estonian',
'Eesti',
],
'eu' => [
'Basque',
'Euskera',
],
'fa' => [
'Persian, Farsi',
/* Left-to-right marker "" */
'فارسی',
LanguageInterface::DIRECTION_RTL,
],
'fi' => [
'Finnish',
'Suomi',
],
'fil' => [
'Filipino',
'Filipino',
],
'fo' => [
'Faeroese',
'Føroyskt',
],
'fr' => [
'French',
'Français',
],
'fy' => [
'Frisian, Western',
'Frysk',
],
'ga' => [
'Irish',
'Gaeilge',
],
'gd' => [
'Scots Gaelic',
'Gàidhlig',
],
'gl' => [
'Galician',
'Galego',
],
'gsw-berne' => [
'Swiss German',
'Schwyzerdütsch',
],
'gu' => [
'Gujarati',
'ગુજરાતી',
],
'he' => [
'Hebrew',
/* Left-to-right marker "" */
'עברית',
LanguageInterface::DIRECTION_RTL,
],
'hi' => [
'Hindi',
'हिन्दी',
],
'hr' => [
'Croatian',
'Hrvatski',
],
'ht' => [
'Haitian Creole',
'Kreyòl ayisyen',
],
'hu' => [
'Hungarian',
'Magyar',
],
'hy' => [
'Armenian',
'Հայերեն',
],
'id' => [
'Indonesian',
'Bahasa Indonesia',
],
'is' => [
'Icelandic',
'Íslenska',
],
'it' => [
'Italian',
'Italiano',
],
'ja' => [
'Japanese',
'日本語',
],
'jv' => [
'Javanese',
'Basa Java',
],
'ka' => [
'Georgian',
'ქართული ენა',
],
'kk' => [
'Kazakh',
'Қазақ',
],
'km' => [
'Khmer',
'ភាសាខ្មែរ',
],
'kn' => [
'Kannada',
'ಕನ್ನಡ',
],
'ko' => [
'Korean',
'한국어',
],
'ku' => [
'Kurdish',
'Kurdî',
],
'ky' => [
'Kyrgyz',
'Кыргызча',
],
'lo' => [
'Lao',
'ພາສາລາວ',
],
'lt' => [
'Lithuanian',
'Lietuvių',
],
'lv' => [
'Latvian',
'Latviešu',
],
'mg' => [
'Malagasy',
'Malagasy',
],
'mk' => [
'Macedonian',
'Македонски',
],
'ml' => [
'Malayalam',
'മലയാളം',
],
'mn' => [
'Mongolian',
'монгол',
],
'mr' => [
'Marathi',
'मराठी',
],
'ms' => [
'Bahasa Malaysia',
'بهاس ملايو',
],
'my' => [
'Burmese',
'ဗမာစကား',
],
'ne' => [
'Nepali',
'नेपाली',
],
'nl' => [
'Dutch',
'Nederlands',
],
'nb' => [
'Norwegian Bokmål',
'Norsk, bokmål',
],
'nn' => [
'Norwegian Nynorsk',
'Norsk, nynorsk',
],
'oc' => [
'Occitan',
'Occitan',
],
'pa' => [
'Punjabi',
'ਪੰਜਾਬੀ',
],
'pl' => [
'Polish',
'Polski',
],
'pt-pt' => [
'Portuguese, Portugal',
'Português, Portugal',
],
'pt-br' => [
'Portuguese, Brazil',
'Português, Brasil',
],
'ro' => [
'Romanian',
'Română',
],
'ru' => [
'Russian',
'Русский',
],
'sco' => [
'Scots',
'Scots',
],
'se' => [
'Northern Sami',
'Sámi',
],
'si' => [
'Sinhala',
'සිංහල',
],
'sk' => [
'Slovak',
'Slovenčina',
],
'sl' => [
'Slovenian',
'Slovenščina',
],
'sq' => [
'Albanian',
'Shqip',
],
'sr' => [
'Serbian',
'Српски',
],
'sv' => [
'Swedish',
'Svenska',
],
'sw' => [
'Swahili',
'Kiswahili',
],
'ta' => [
'Tamil',
'தமிழ்',
],
'ta-lk' => [
'Tamil, Sri Lanka',
'தமிழ், இலங்கை',
],
'te' => [
'Telugu',
'తెలుగు',
],
'th' => [
'Thai',
'ภาษาไทย',
],
'tr' => [
'Turkish',
'Türkçe',
],
'tyv' => [
'Tuvan',
'Тыва дыл',
],
'ug' => [
'Uyghur',
/* Left-to-right marker "" */
'ئۇيغۇرچە',
LanguageInterface::DIRECTION_RTL,
],
'uk' => [
'Ukrainian',
'Українська',
],
'ur' => [
'Urdu',
/* Left-to-right marker "" */
'اردو',
LanguageInterface::DIRECTION_RTL,
],
'vi' => [
'Vietnamese',
'Tiếng Việt',
],
'xx-lolspeak' => [
'Lolspeak',
'Lolspeak',
],
'zh-hans' => [
'Chinese, Simplified',
'简体中文',
],
'zh-hant' => [
'Chinese, Traditional',
'繁體中文',
],
];
// cSpell:enable
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.