language.mappings.yml

Same filename in this branch
  1. 11.x core/tests/fixtures/config_install/testing_config_install/language.mappings.yml
  2. 11.x core/tests/fixtures/config_install/multilingual/language.mappings.yml
Same filename in other branches
  1. 9 core/modules/language/config/install/language.mappings.yml
  2. 8.9.x core/modules/language/config/install/language.mappings.yml
  3. 10 core/modules/language/config/install/language.mappings.yml
core/modules/language/config/install/language.mappings.yml
6 string references to 'language.mappings'
LanguageTest::test in core/modules/ckeditor5/tests/src/Kernel/LanguageTest.php
Ensure that languages are resolved correctly.
language_get_browser_drupal_langcode_mappings in core/modules/language/language.module
Returns language mappings between browser and Drupal language codes.
NegotiationBrowserDeleteForm::getEditableConfigNames in core/modules/language/src/Form/NegotiationBrowserDeleteForm.php
Gets the configuration names that will be editable.
NegotiationBrowserForm::getEditableConfigNames in core/modules/language/src/Form/NegotiationBrowserForm.php
Gets the configuration names that will be editable.
NegotiationBrowserForm::language_get_browser_drupal_langcode_mappings in core/modules/language/src/Form/NegotiationBrowserForm.php
Retrieves the browser's langcode mapping configuration array.

... See full list

File

core/modules/language/config/install/language.mappings.yml

View source
  1. # Browsers use different language codes to refer to the same languages,
  2. # these defaults handles the most common cases.
  3. map:
  4. no: 'nb' # Norwegian
  5. pt: 'pt-pt' # Portuguese
  6. zh: 'zh-hans' # Default Chinese to simplified script
  7. zh-tw: 'zh-hant' # Taiwan Chinese in traditional script
  8. zh-hk: 'zh-hant' # Hong Kong Chinese in traditional script
  9. zh-mo: 'zh-hant' # Macao Chinese in traditional script
  10. zh-cht: 'zh-hant' # traditional Chinese
  11. zh-cn: 'zh-hans' # PRC Mainland Chinese in simplified script
  12. zh-sg: 'zh-hans' # Singapore Chinese in simplified script
  13. zh-chs: 'zh-hans' # simplified Chinese

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.