ai_tmgmt
The AI TMGMT (Translation Management) module is an AI translator plugin for the Translation Management Tools (TMGMT) project. It uses the AI module under the hood to allow you to use OpenAI, Ollama, and many more other providers (both paid and local/free). You will always have access to the latest and most cost-effective models to translate your content accurately and automatically.
Features overview
- Fast automated translation of content using AI with ability to tweak translation style.
- Integration with the AI Translate sub-module of the AI module to allow AI model selection and prompts to differ per language
- Translate one or multiple nodes by a few simple mouse clicks.
- Use advanced translation jobs management tool to submit and review translations.
- The project of course also supports implicitly all the features which are provided by TMGMT like a feature-rich review process, being able to translate different sources and more.
Installation
Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.
Configuration
- Enable this module and at least one TMGMT 'Source' provider like 'Content Entity Source'
- Configure at least one Provider in the AI module at /admin/config/ai/settings
- Enable the TMGMT AI Provider at /admin/tmgmt/translators
- Check it works by going to /admin/tmgmt/sources, request a translation, and reviewing the generated translation results.
Note: you probably want to install this patch as the base TMGMT module runs jobs twice, so you will use more tokens until the issue is fixed: #3198609: Same Job processed/checkout twice by the JobCheckoutManager
Prompt Examples
Default prompt
Translate from %source% into %target% language
%text%
Ability to change style of the translation
Translate from %source% into %target% language in Ernest Hemingway style
%text%
Migrating from the 'TMGMT OpenAI' module
Steps to migrate from https://www.drupal.org/project/tmgmt_openai:
- Install this module as per the instructions
- Ensure the new AI TMGMT provider is set up correctly
- Ensure all Jobs related to tmgmt_openai are completed
- Disable the tmgmt_openai provider
- Uninstall the tmgmt_openai module
Supporting the Project
Please consider supporting this project with a donation which goes to Minnur to sponsor development.
Maintainers
- Minnur Yunusov (minnur) Wrote the original module and continues to maintain the project.
- Scott Euser (scott_euser) Ported the module over to leverage the AI module and supports maintenance.