This project is not covered by Drupal’s security advisory policy.

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.)

Supporting organizations: 
Invested the time of their employees to update this module to Drupal 9

Project information

Releases