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

The Auto Translation Field module provides a field-level, one-click AI translation button directly inside the Drupal content editing form.

Instead of translating an entire entity at once and losing context, editors can translate individual fields, preview a before-and-after diff of the translation, and accept or discard changes without ever leaving the node edit page.

This module delegates the actual translation to the drupal/ai ecosystem, meaning any installed AI provider (DeepL, OpenAI, Ollama, Gemini) will work automatically.

REQUIREMENTS

This module requires the following modules:

You must also install and configure at least one AI Provider submodule, such as:

  • AI Provider: DeepL (ai_provider_deepl)
  • AI Provider: OpenAI (ai_provider_openai)

RECOMMENDED MODULES

  • Key: Highly recommended for securely storing API keys for your chosen AI providers rather than keeping them in standard configuration.

INSTALLATION

  1. Install the module via Composer:
    composer require drupal/auto_translation_field
  2. Enable the module:
    drush en auto_translation_field
  3. Ensure you have installed and enabled an AI provider of your choice:
    composer require drupal/ai_provider_deepl:"^1.0@alpha"
    drush en ai_provider_deepl

CONFIGURATION

  1. Go to Administration » Configuration » AI » Auto Translation Field (/admin/config/ai/auto-translation-field).
  2. Select your preferred active AI Provider from the dropdown list.
  3. Save configuration.
  4. Ensure your user role has the "use ai field translation" permission.

The "Translate with AI" button will now automatically appear next to all translatable text fields when editing a node in a target language.

Supporting organizations: 
Sponsored development as part of GSoC 2026.

Project information

Releases