function LanguageManager::getStandardLanguageList

Same name in other branches
  1. 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
  2. 8.9.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
  3. 10 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 Language of Parts plugin.
ConfigEntityValidationTestBase::testLangcode in core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php
Tests that the config entity's langcode is validated.
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.
DateTest::testRfc2822DateFormat in core/tests/Drupal/Tests/Core/Datetime/DateTest.php
Tests that an RFC2822 formatted date always returns an English string.

... See full list

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\Language

Code

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',
            'བོད་སྐད་',
        ],
        'br' => [
            'Breton',
            'Breton',
        ],
        '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-gb' => [
            'English, British',
            'English, British',
        ],
        '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',
            'ગુજરાતી',
        ],
        'haw' => [
            'Hawaiian',
            'ʻŌlelo Hawaiʻi',
        ],
        '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',
            'بهاس ملايو',
        ],
        'mt' => [
            'Maltese',
            'Malti',
        ],
        'my' => [
            'Burmese',
            'ဗမာစကား',
        ],
        'ne' => [
            'Nepali',
            'नेपाली',
        ],
        'nl' => [
            'Dutch',
            'Nederlands',
        ],
        'nb' => [
            'Norwegian Bokmål',
            'Norsk, bokmål',
        ],
        'nn' => [
            'Norwegian Nynorsk',
            'Norsk, nynorsk',
        ],
        'oc' => [
            'Occitan',
            'Occitan',
        ],
        'or' => [
            'Odia',
            'ଓଡିଆ',
        ],
        'os' => [
            'Ossetian',
            'Ossetian',
        ],
        'pa' => [
            'Punjabi',
            'ਪੰਜਾਬੀ',
        ],
        'pl' => [
            'Polish',
            'Polski',
        ],
        'prs' => [
            'Persian, Afghanistan',
            
            /* Left-to-right marker "‭" */
'دری',
            LanguageInterface::DIRECTION_RTL,
        ],
        'ps' => [
            'Pashto',
            
            /* Left-to-right marker "‭" */
'پښتو',
            LanguageInterface::DIRECTION_RTL,
        ],
        'pt' => [
            'Portuguese, International',
            'Português, Internacional',
        ],
        'pt-pt' => [
            'Portuguese, Portugal',
            'Português, Portugal',
        ],
        'pt-br' => [
            'Portuguese, Brazil',
            'Português, Brasil',
        ],
        'rhg' => [
            'Rohingya',
            'Ruáinga',
        ],
        'rm-rumgr' => [
            'Rumantsch Grischun',
            'Rumantsch Grischun',
        ],
        'ro' => [
            'Romanian',
            'Română',
        ],
        'ru' => [
            'Russian',
            'Русский',
        ],
        'rw' => [
            'Kinyarwanda',
            'Kinyarwanda',
        ],
        '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.