language.mappings.yml in Drupal 9
Same filename and directory in other branches
core/modules/language/config/install/language.mappings.yml
5 string references to 'language.mappings'
- 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.
- NegotiationBrowserForm::submitForm in core/
modules/ language/ src/ Form/ NegotiationBrowserForm.php - Form submission handler.
File
core/modules/language/config/install/language.mappings.ymlView source
- # Browsers use different language codes to refer to the same languages,
- # these defaults handles the most common cases.
- map:
- no: 'nb' # Norwegian
- pt: 'pt-pt' # Portuguese
- zh: 'zh-hans' # Default Chinese to simplified script
- zh-tw: 'zh-hant' # Taiwan Chinese in traditional script
- zh-hk: 'zh-hant' # Hong Kong Chinese in traditional script
- zh-mo: 'zh-hant' # Macao Chinese in traditional script
- zh-cht: 'zh-hant' # traditional Chinese
- zh-cn: 'zh-hans' # PRC Mainland Chinese in simplified script
- zh-sg: 'zh-hans' # Singapore Chinese in simplified script
- zh-chs: 'zh-hans' # simplified Chinese