tmgmt_modernmt
Security covered
ModernMT Translator Integration for TMGMT
Overview
The tmgmt_modernmt module seamlessly integrates the
ModernMT machine translation service with the
Translation Management Tool (TMGMT) in Drupal.
It provides high-quality, AI-powered translations directly within your Drupal site, ensuring accurate,
adaptive, and context-aware multilingual content management.
Features
- π ModernMT API Integration β Connects to ModernMT via a secure API key using the
Key module. - π AI-Powered Translations β Provides adaptive and context-aware machine translation.
- π Seamless TMGMT Compatibility β Fully integrates with TMGMT for streamlined workflows.
- π― Domain Customization β Allows domain-specific translation settings per language.
- π Secure API Key Management β Uses the Key module to store API credentials securely.
Requirements
- Drupal 10.x, 11.x
- Translation Management Tool (TMGMT)
- Key module
- ModernMT API Key (requires a ModernMT account)
Installation & Configuration
Installation
- Download the module via Composer:
composer require drupal/tmgmt_modernmt - Enable the module:
drush en tmgmt_modernmt - Ensure the required modules are enabled:
drush en tmgmt key
API Key Setup
- Navigate to Configuration > System > Key (
/admin/config/system/keys). - Create a new key and enter your ModernMT API credentials.
- Save the configuration.
Translator Configuration
- Go to Translation > Translators (
/admin/tmgmt/translators). - Add or edit a translator and select ModernMT as the plugin.
- Choose the ModernMT API Key you configured earlier.
Domain Customization (Optional)
Configure domain-specific translations per language under the translator settings.
Usage
- Navigate to Translation > Jobs (
/admin/tmgmt/jobs). - Select the content to translate and choose the ModernMT translator.
- Submit the translation job and let ModernMT handle the rest!
Developer Notes
Configuration Schema
- Uses Drupal's structured configuration schema.
- API key selection is managed with the
key_selectelement type. - Domain settings can be customized per language.
Extensibility
- Built using Drupalβs plugin and service architecture.
- Easily extendable via custom plugins and overrides.
Troubleshooting
Error: "Invalid API Key"
- Ensure the API key is correctly configured in the Key module.
- Verify that your API key has sufficient permissions.
Translation Errors
- Check language mappings to confirm ModernMT supports your selected source and target languages.
- Verify that your ModernMT subscription is active.
Similar Projects
- tmgmt_google β Uses Google Translate instead of ModernMT.
- tmgmt_deepl β Integrates DeepL for premium translations.
- Why ModernMT? It offers adaptive AI translation that improves with usage and allows domain-specific tuning.
Support
License
This module is open-source and licensed under the GNU General Public License v2 or later.
Why Use tmgmt_modernmt?
If youβre managing multilingual content in Drupal, this module is a powerful and secure solution
that brings AI-driven, adaptive machine translation to your workflow. Try it today!