AI
Drupal
min read
Last update on

Drupal AI translation modules: a smarter way to translate content

Drupal AI translation modules: a smarter way to translate content
Table of contents

In a multilingual digital world, keeping your website content translated, consistent, and fresh can be a challenge. 

That’s where Drupal’s AI-powered translation modules come in. 

With the rise of Large Language Models (LLMs), Drupal developers now have access to powerful tools that make content translation faster and easier.

Two key modules that streamline AI-based translation in Drupal are:

  • AI Translate – Ideal for quick, inline, single-node translations using AI.
  • AI TMGMT – Suited for bulk, workflow-based translation jobs with AI integration.

Let’s explore both:

AI translate module

The AI Translate module is part of the AI module suite and integrates directly with Drupal’s content translation system, which allows content editors to generate translations for nodes using AI providers (like OpenAI or others) with a single click.

Key features:

  • One-click AI translation from the node “Translate” tab.
  • Language-specific prompt configuration for better quality output.
  • Automatically generates and saves translated content.
  • Requires AI Core + AI provider (e.g., OpenAI).
  • Uses Drupal’s core Content Translation module.

Configuration

Prerequisites:

  • Configure Drupal content translation modules.
  • Enable and set up api key for any AI provider

Enable modules: 

  • AI Core
  • AI Translate
  • Any AI providers(eg., OpenAI)

Steps:

  • Navigate to admin/config/ai/settings
  • Under Translate Text, choose the Default Provider and Default Model
Configuration
admin/config/ai/settings
  • Navigate to admin/config/ai/ai-translate
  • Enable Use AI Translate as the default to translate content
  • In Translate to {{language}} choose a provider model(provider_model) for AI model used for translating to {{language}} 
  • Edit the Translation prompt for translating to {{language}} if required, or use the default prompt. You can refer to the Prompt suggested by the module maintainers for customising the prompts.
  • Do the same for all the languages that require AI translation.
  • Under Entity reference translation, choose the entity for translation(eg., Taxonomy term, Paragraph)
  • Save configurations.
Configuration
admin/config/ai/ai-translate

  • Edit any of your content and go to the Translate tab to find a new column, AI Translations. Here you can find Translate using {{provider_model}} against each language that does not have a translation for that content.
  • Click on Translate using {{provider_model}} and a batch process will run to translate the content. 
Drupal AI
node/{{id}}/translations
  • Once done, you will get the translated content.
Drupal AI
Content post AI translation


AI TMGMT Module

The AI TMGMT (Translation Management) module serves as an AI-based translator plugin for the Translation Management Tool (TMGMT) project. It leverages the AI module to support a wide range of providers, including OpenAI, Ollama, and other paid or free/local options. This ensures you can always access the latest, most cost-effective models for accurate and automated content translation.

Key Features:

  • Quickly translate content using AI, with the flexibility to customize translation style.
  • Seamlessly integrates with the AI Translate sub-module, enabling language-specific model selection and prompt customisation.
  • Translate one or multiple content items effortlessly with just a few clicks.
  • Leverage a powerful translation job management interface to submit, track, and review AI-generated translations.
  • Fully supports all the robust features offered by the TMGMT module,such as a detailed review workflow, support for various content sources, and more.

Configuration

Enable Modules: 

  • Translation Management Core
  • AI Translator
  • Content Entity Source

Steps: 

Once enabled, the module provides the Translation menu item in the navigation.

Configuration
admin/tmgmt
  • Navigate to admin/tmgmt/translators - Providers
  • Here you can see the Drupal AI provider. Click on Edit to connect the AI provider.
  • Give a proper label and description for the provider. (available by default)
  • Enable Auto accept finished translations if you want to skip the reviewing process and automatically accept all translations as soon as they are returned by the translation provider.
  • Choose the Provider plugin as AI
  • In AI plugin settings under Translation configuration, choose Use the configuration from the "AI Translate" module to use the configuration from the AI Translate module. 
  • Choose Use the configuration from this module in case you want to use the configuration from the module.
  • Select the Tokeniser counting model and Chat translator model
  • Click on Connect.
  • If you get successfully connected! message: The AI provider is connected properly. Otherwise, check if your AI API key is valid and try again.
  • Check if the Remote language mappings are proper and save the form.
  • Once this is done, you can use the tmgmt module as it is, and the translation will work using the AI provider.
Drupal AI
Edit Drupal AI provider
  • Now navigate to the admin/tmgmt/sources to view the content overview 
  • Here you can choose the content source as content to view all the content available in the website. Same in case of other content entities.
Edit Drupal AI provider
admin/tmgmt/sources

Now you are allowed to select multiple items from the list to translate together. You can see the title, columns for each language. Against each content, there are symbols under each language. The home symbol indicates original translation, the cross symbol represents no translation available for that language, and the green check implies there is translation available for that particular language. 

  • So now you can select multiple contents to be translated
  • Choose the source language and Target language to translate
  • Click on Request translation
Drupal AI
admin/tmgmt/sources after before request translation
  • Once done, you land on the source page with yellow triangle icons against content you tried to translate. This indicates you need to review the translations and save them.
Drupal AI
admin/tmgmt/sources after request translation
  • Click on the yellow triangle to navigate to the review page.
  • Review each translated field content and approve it by clicking the check buttons.
admin/tmgmt/items/1 while review
  • Once done, click on Save as completed.
  • Once saved, you land again on the source page and find that the yellow triangle against the content has changed to a green tick, indicating the translation is saved and available. 
  • Do the same for other content as well. 
admin/tmgmt/sources after save as completed

You can view the translation status of each content in the job items page and the status of each group of translation in the jobs page.

at admin/tmgmt/job_items
Drupal AI
at admin/tmgmt/jobs

From here, you can manage or review the translations and complete them as appropriate.

If you want to avoid the process of review of translations, you can enable the Auto accept finished translations field in admin/tmgmt/translators/manage/ai?destination=/admin/tmgmt/translators

Conclusion

Drupal’s AI-powered translation modules, AI Translate and AI TMGMT, bring speed, flexibility, and scalability to multilingual content workflows. Whether you’re translating a single node on the fly or managing complex, large-scale translation jobs, these tools empower site editors and administrators to harness the capabilities of modern AI models like OpenAI, Ollama, and more.

  • Use AI Translate when you need quick, inline translations directly from the content interface.
  • Use AI TMGMT when your workflow requires batch translation, review processes, and detailed management of translation jobs.

By integrating AI seamlessly into Drupal’s translation ecosystem, these modules help reduce manual effort, improve consistency, and deliver translated content faster without sacrificing editorial control. 

As LLMs evolve, these tools will continue to grow, offering even more efficient and intelligent ways to manage multilingual experiences in Drupal.

Reference

https://www.drupal.org/project/ai_tmgmt

https://www.drupal.org/project/ai 

https://project.pages.drupalcode.org/ai/1.1.x/modules/ai_translate/ 

Written by
Editor
Ananya Rakhecha
Tech Advocate