public static function LanguageManager::getUnitedNationsLanguageList in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getUnitedNationsLanguageList()
- 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getUnitedNationsLanguageList()
The 6 official languages used at the United Nations.
This list is based on http://www.un.org/en/sections/about-un/official-languages/index.html and it uses the same format as getStandardLanguageList().
Return value
array An array with language codes as keys, and English and native language names as values.
4 calls to LanguageManager::getUnitedNationsLanguageList()
- CKEditor5Test::testLanguageOfPartsPlugin in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php - Test for plugin Language of parts.
- Language::getConfig in core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ Language.php - Language::getDynamicPluginConfig in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Language.php - LanguageTest::providerGetConfig in core/
modules/ ckeditor/ tests/ src/ Unit/ Plugin/ CKEditorPlugin/ LanguageTest.php - Provides a list of configs to test.
File
- core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 344
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public static function getUnitedNationsLanguageList() {
// cSpell:disable
return [
'ar' => [
'Arabic',
/* Left-to-right marker "" */
'العربية',
LanguageInterface::DIRECTION_RTL,
],
'zh-hans' => [
'Chinese, Simplified',
'简体中文',
],
'en' => [
'English',
'English',
],
'fr' => [
'French',
'Français',
],
'ru' => [
'Russian',
'Русский',
],
'es' => [
'Spanish',
'Español',
],
];
// cSpell:enable
}