Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module modifies the core Language Switcher block to display language codes instead of full language names for better conciseness. It offers a simple, focused solution for quickly changing how language options are presented.

A really simple module which replaces the Language name by the langcode on the core Language Switcher block.

By default, the core language switcher module renders a list of links using the Language name on the title. This module just replaces the title by the langcode, just that.

If you aim to provide some additional settings you might consider some other similar modules.

Similar modules

  • Language Switcher Extended: Extends the default behaviour from the core's language switcher with several options, it includes the option to display the langcode instead of the language name on the links among many others. If you are looking for additional settings for the language switcher module, this is your module. Our scope with Language Switcher Langcode is much smaller than Language Switcher Extended.
  • Dropdown Language: It also provides the ability to display langcodes instead of the Language name. In contrast, it displays the links in a dropdown element.
  • Language Switcher enhanced: Checking the repository it also provides the ability to display the langcodes instead of the Language names. In contrast it replaces completely the core Language Switcher module by its own switcher.

Activity

Total releases
1
First release
Feb 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
8.x-2.2 Stable Feb 19, 2026