language.mappings.yml

drupal/core/modules/language/config/language.mappings.yml
2 string references to 'language.mappings'
language_get_browser_drupal_langcode_mappings in drupal/core/modules/language/language.module
Returns language mappings between browser and Drupal language codes.
language_set_browser_drupal_langcode_mappings in drupal/core/modules/language/language.module
Stores language mappings between browser and Drupal language codes.

File

drupal/core/modules/language/config/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. zh-tw: zh-hant # Taiwan Chinese in traditional script
  4. zh-hk: zh-hant # Hong Kong Chinese in traditional script
  5. zh-mo: zh-hant # Macao Chinese in traditional script
  6. zh-cht: zh-hant # traditional Chinese
  7. zh-cn: zh-hans # PRC Mainland Chinese in simplified script
  8. zh-sg: zh-hans # Singapore Chinese in simplified script
  9. zh-chs: zh-hans # simplified Chinese