Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

disable_language

7,824 sites Security covered
View on drupal.org

Disable language lets you disable languages on Drupal 8 sites.

It does the following things when you disable a language:

  • Filters out the disabled languages in the language switcher
  • Filters out the generated links in an Simple XML sitemap (https://www.drupal.org/project/simple_sitemap)
  • Filters out the generated links in the head (with the hreflang attribute)
  • Redirects user that don't have permissions to view disabled languages
  • Choose the language to redirect to if the user doesn't have permission (configurable for each language)
  • Allows you to override the redirect behaviour for certain routes/paths. Default routes for one time login functionality have been added as defaults and are in an update hook.

Common use cases:

  • The site is live but you want to give the admin the possibility to stage content in a certain language, so it isn't visible for certain roles. (e.g. anonymous,...) until the admin is finished.

Installation

See the README for configuration instructions

Similar modules

  • Language access (https://www.drupal.org/project/language_access) Main differences with version 1.3:
    • Language access gives a throws a 403 exception while disable language redirects to a configurable language
    • Language access allows you assign permissions per language, disable language provides a permission to view disabled languages

Activity

Total releases
1
First release
Feb 2025
Latest release
1 year ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
8.x-1.0-rc2 Pre-release Feb 5, 2025