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

Overview

The Multilingual Tokens module provides language-specific tokens for translatable content entities. These tokens allow you to display content in a specific language, regardless of the current site language.

This is useful for multilingual emails, notifications, exports, and any scenario where you need to output translated content in a language different from the current page language.

Token Format

[entity-type:field-name:_lang_LANGCODE]

Where:

  • entity-type — the type of entity (e.g., node, user, taxonomy_term)
  • field-name — the name of the field (e.g., title, body)
  • LANGCODE — the language code (e.g., en, uk, de, fr, pt-br)

Examples

  • [node:title:_lang_uk] — Node title in Ukrainian
  • [node:body:_lang_en] — Node body in English
  • [taxonomy_term:name:_lang_de] — Term name in German
  • [node:field_description:_lang_fr] — Custom field in French

Use Cases

  • Multilingual emails — Send order confirmations in the customer's preferred language
  • Data exports — Export content in a specific language for external systems
  • Pathauto patterns — Create URL aliases using translations
  • Metatags — Set language-specific meta descriptions

Requirements

  • Drupal 10.2+ or 11
  • Language module (core)
  • Content Translation module (core)
  • Token module

For Developers

The module dispatches a TokenReplacementEvent before processing each multilingual token, allowing other modules to customize or override the token replacement logic. See README.md for details.

Project information

Releases