Problem/Motivation
In Drupal 7, the language names in the language list show up as localized to their native names. In Drupal 8 native names don't exist anymore as a concept, however language names are translated to any other language just as well as any other configuration entity.
We should provide the ability of configuring the language switcher block to use the current language name, the localized language name or language codes (which is a common request), and provide ways of extend this from contrib (languageicons, lang_dropdown, I'm looking at you)
Proposed resolution
- Make the block configurable for showing language codes or language name.
- If locale is enabled, make the block configurable for showing language name or localized language name.
- Make the display configurable between this behavior and others that could be provided by contrib, so we only have one configurable "Language switcher block" instead of confusing multiple ones.
Remaining tasks
User interface changes
- New setting in the block configuration for language switchers
- Display of language switcher changes based on configuration.
API changes
None.
Related Issues
#2797961: Language switcher label cannot be changed for English