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
- Normal module installation procedure. See https://www.drupal.org/documentation/install/modules-themes/modules-8
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
Supporting organizations:
Architecture and development
Project information
- Module categories: Multilingual
6,110 sites report using this module
- Created by nielsaers on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
8.x-1.0-rc1
released 29 November 2023
Works with Drupal: ^9 || ^10
Install:
Development version: 8.x-1.x-dev updated 29 Nov 2023 at 09:49 UTC