Dropdown Language
Categories
Component ID
2721679
Component name
Dropdown Language
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
14417
Component created
Component changed
Component body
Provides a block with D8's Dropbutton element to switch site language. Rather than the Language Switcher (Language modules basic block) that is an unordered list of links.

- Block will 'appear' when more than one language is active. Otherwise content is empty.
- Current Language appears at top of list. Otherwise by Language Weight
- Each list item has a class for it's language allowing for background image (flag) attached via theme level. For a great base of icons try: flag-icon-css
- Options to display language link titles by:
- Language Name (translation UI)
- Language ID
- Custom Labels (per block instance)
Dependencies:
- language (core)
- block (core)
Config path:
- /admin/config/regional/dropdown-language-switcher
- /admin/config/regional/language — General Language Setup (core)
Similar to:
Changelog:
- 8.x-1.2 4 Jul 2017
- 8.x-1.1 13 May 2017
-
- #2824903: Language switch does not work with session language detection
- #2849198: Improve selected language option
- #2842638: Display language ID instead of language name second option
- #2874211: Active language link shouldn't trigger page load
- complete css classes (can use CSS for adding a 'flag' to link)
- allows for dropbutton subtype
- 8.x-1.0 9 May 2016
-
- initial release
