public static function LanguageManager::getStandardLanguageList in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
- 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
14 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.
- 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.
- install_select_language in core/
includes/ install.core.inc - Selects which language to use during installation.
File
- core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 224
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
}