Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Dropdown Language

Security covered Under active development 10,760 sites

This module provides a block that allows users to switch the site's language using a drop-down menu. It offers various options for displaying language names and can hide links to untranslated content for SEO purposes.

Provides a block using the 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. Native Name
    4. Custom Labels (per block instance)
  • SEO Feature: Option to hide links to untranslated Entities. Sub-option: keep block render in place if no other translation path is available
  • Is friends with Bootstrap! v3.8+ #2901106. Bootstrap themes will switch Drupal's native Dropbutton element with Bootstrap Dropdown

A Few Mentions:

  • About 'hreflang' and Language Blocks: @SEO

    The hreflang attribute is used with all links within the language block, unlike other 'menu' blocks. This is why dead links to other non-published, or relinking/redirecting to the frontpage: is bad!

  • Panels, Views & Other Route Controlling Things

    These such contrib tools do not conform to building pages that connect as Translated Nodes (or other such Content Entities) do. °This is why they do not have 'translation links'. (*Also possibly the next version of Drupal/Symfony routing may have better translation routing support and such tools could then adopt said tools..). Now that Drupal has it's own Layout tool built ontop of Nodes -- Nodes remain the way to produce such landing pages and attach field/blocks via Layouts while keeping ready for translation.

    ° See this project Plan Issues as related possible plugins.
    * In Theory…

  • Language Icons…

Dependencies:

  • Language (core)
  • Block (core)
  • Node (core)

Soft Dependencies:

Summary Reminder

Nodes (Content Entities) are the base of determining translation children: Views, Panels, Custom Routes have no ability to 'find a translation of'.

Config path:

  • /admin/config/regional/dropdown-language-switcher
  • /admin/config/regional/language — General Language Setup (core)

Similar As (yet better than):

Drupal 11.0→11.2 Releases Footnote:

'Project page' can not show both subversions of support. Refer to https://www.drupal.org/project/dropdown_language/releases/4.1.1 for Drupal 11.0→11.2 specific support without the new core caching tool used in 4.1.2 for Drupal11.3+.

Drupal 11 · not 10

Ask your assistant about Dropdown Language

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • block Drupal core
  • language Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
Mar 2023
Latest release
3 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
4.0.1 Stable 10 PHP ^8.0 Mar 16, 2023
3.1.2 Stable 9 PHP ^7.4||^8.0 Mar 16, 2023