Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Domain Language Negotiation

No security coverage Under active development 223 sites

Part of the Domain ecosystem · 53 projects

This module provides language negotiation based on a domain's language settings. It ensures your site's language correctly matches the assigned language for each domain, integrating with the Domain Access and Domain Language Access modules.

Overview

Creates a language negotiation based on a domains language settings.

Installation

Install via composer:
composer require "drupal/domain_language_negotiation:^3.0@alpha"

Dependencies

- Your site uses Domain Access module (domain)
- Your site uses Domain Language Access module (domain_language). From 3.0.0 this module has been integrated and is therefore no longer required as a dependency.

Example:

- You have a site with 2 languages enabled: English (EN) and Dutch (NL)
- You created 2 domains using the Domain Access module: Domain1 and Domain2
- You setup Domain1 to only have EN language enabled (using Domain Language Access module)
- You setup Domain2 to only have NL language enabled (using Domain Language Access module)

While you can setup available and default languages via the Domain Language Access module,
your site can still be in the wrong language (like Domain2 being in EN instead of NL) because currently there is no language detection method based on these domain language settings.

This module provides that for you.
To me this seemed to be the missing link to get domain_language working in Drupal 8.

Tested and created this module while using these versions of domain and domain_language at the time of writing:
domain: 1.x-dev
domain_language: 1.0-alpha2 (From 3.0.0 this module has been integrated and is therefore no longer required as a dependency.)

Ask your assistant about Domain Language Negotiation

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

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
3
Tracked since
Oct 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0-alpha7 Pre-release 9–11 Jan 9, 2025
3.0.0-alpha6 Pre-release 8–11 Jan 8, 2025
3.0.0-alpha5 Pre-release 8–10 Oct 20, 2023