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 you to translate external links by treating them as content within Drupal. It provides a way for editors to create and manage translated external links, which can then be used in menus, link fields, and other site components, ensuring a consistent navigation experience for users across different languages.

This module builds on Drupal's multilingual capabilities by providing a straightforward means for translating external links. It uses a custom entity that enables content editors to define external link translations within the admin UI. To apply translations, editors just need to copy the canonical link generated by the entity and paste it into menus, link fields, or any site component that accepts internal links. The module then transforms these paths into the appropriate external links, helping support a consistent navigation structure for users in different languages.

Additional Info & Use Cases

Drupal's translation system works by creating content in a source language and then translating it into other languages. This setup allows users to link to translated content by using an internal link in the source language, and Drupal automatically updates the link for each translation.
Because of this model, many of Drupal's core functions, such as menu links, are designed for internal paths and don't support translating URIs directly.

This module's approach is to treat external links as content. By doing so, translating external links becomes as straightforward as translating other types of content in Drupal and opens up various practical use cases:

  1. Translating External Menu Links: Supports both traditional and decoupled menu setups.
  2. Reusing External Link Translations: Enables the reuse of translated external links across different pages and components, such as linking to a multilingual support minisite multiple times. You can translate it once and reuse it.
  3. Integrating with Twig Templates: Offers the ability to create translatable external links in Twig templates using the url function. Example: url('entity.external_link_translation.canonical', { 'external_link_translation': 1 })
  4. Leveraging Linkit Integration: Supports use as a Linkit matcher, simplifying content editing with a selection of pre-translated external links.

Post-Installation

  1. Make the External link translation entity translatable by going to Administration > Configuration > Content language and translation.
  2. Users with the Administer external link translations permission can begin creating and managing external link translations under Administration > Content > External Link Translations.

Similar projects

Activity

Total releases
1
First release
Feb 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0-alpha4 Pre-release Feb 9, 2026