Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu 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

Total releases
5
First release
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