Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Disable language

7,710 sites Security covered
View on drupal.org

This module allows administrators to disable languages on a Drupal site, preventing them from appearing in language switchers and sitemaps. It can also redirect users who do not have permission to view disabled languages to a specified language, with options to override this behavior for specific routes.

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

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

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