Drupal is a registered trademark of Dries Buytaert
Release: Drupal 11.4.5 Update released for Drupal core (11.4.5)! Release: Drupal 10.6.15 Update released for Drupal core (10.6.15)! Release: Superfish Dropdown Menu 8.x-1.15 Minor update available for module superfish (8.x-1.15). Release: Leaflet 10.4.10 Minor update available for module leaflet (10.4.10). Release: Raven: Sentry Integration 7.5.1 Minor update available for module raven (7.5.1). Release: htmLawed 8.x-3.8 Minor update available for module htmlawed (8.x-3.8). Release: Raven: Sentry Integration 7.5.0 Minor update available for module raven (7.5.0). Module Revived: Media Library Form API Element 2.1.5 Module media_library_form_element updated after 10 months of inactivity (2.1.5). Release: Acquia Content Optimization 2.1.0-alpha1 First alpha version released for module conductor (2.1.0-alpha1). Usage Milestone: Manage display Module manage_display crossed 1,000 active installs.

This module allows Drupal to detect the correct language based on both a website's domain and its URL path simultaneously. It can be configured to serve different language versions using distinct domains or subdirectories, integrating smoothly with Drupal's multilingual features.

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

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

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