Drupal is a registered trademark of Dries Buytaert

Advanced Language Negotiation

Introduction

Advanced Language Negotiation enhances Drupal’s multilingual capabilities by allowing both domain-based and path-prefix-based language detection simultaneously. It provides a hybrid approach for sites needing flexible multilingual setups. This module is ideal for websites that serve different language versions based on both domain structure and URL path prefixes.

Example Setup

This module is ideal for websites using different domains and paths to represent various language versions. Example configurations:

Features

  • Enables both domain-based and path-prefix-based language negotiation at the same time.
  • Provides an easy-to-use configuration page for defining language mappings.
  • Fully integrates with Drupal’s core language negotiation system.
  • Automatically determines the correct language from the domain and/or path.
  • Fallback mechanism to the site's default language when no match is found.
  • Useful for multilingual websites using country-specific domains or subdirectories for different languages.

Post-Installation

  1. Install and enable the module via Extend or run:
  2. drush en advanced_language_negotiation -y
  3. Navigate to Configuration > Regional and language > Language negotiation.
  4. Select Advanced Language Negotiation as an active negotiation method.
  5. Configure domain-language mappings under the Advanced Language Negotiation settings:
  6. Save the configuration and test language negotiation by accessing different domains or paths.

Similar Projects

  • Drupal Core Language Negotiation – Provides either domain-based or path-prefix-based negotiation, but not both at the same time.
  • Internationalization (i18n) – Offers additional translation tools but does not focus on language negotiation.

This module provides a powerful and flexible multilingual solution for Drupal, perfect for websites needing advanced language detection across multiple domains and URL structures.

Activity

Total releases
5
First release
Mar 2025
Latest release
11 months ago
Release cadence
5 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-beta3 Pre-release Mar 26, 2025
1.0.0-beta2 Pre-release Mar 14, 2025
1.0.0-beta1 Pre-release Mar 6, 2025
1.0.0-alpha1 Pre-release Mar 6, 2025
1.x-dev Dev Mar 6, 2025