Dropdown Language

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:
    1. Language Name (translation UI)
    2. Language ID
    3. 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
8.x-1.0 9 May 2016
  • initial release