Installation
Requirements
- Drupal 10 or 11
- TMGMT (Translation Management Tool) module
- Symfony Messenger (sm) module
- Key module (for secure credential storage)
- A valid Lara API account with access credentials
- Network access to Lara's API endpoints
Installation Steps
1. Install Dependencies
# Using Composer
composer require drupal/tmgmt drupal/sm drupal/key
# Enable modules
drush en tmgmt sm key
2. Install TMGMT Lara Translate
# Using Composer
composer require drupal/tmgmt_laratranslate
# Enable the module
drush en tmgmt_laratranslate
3. Verify Installation
- Go to Extend (
/admin/modules) - Confirm "Lara Translate Provider" is enabled
- Check that TMGMT and SM modules are also enabled
4. Configure Symfony Messenger
The module uses Symfony Messenger for asynchronous processing. Verify the messenger configuration:
# Check messenger configuration
drush config:get messenger.settings
The module automatically registers its message handler, but you may want to configure transports for production use.
5. Set Up Lara API Credentials
- Go to Configuration → System → Keys (
/admin/config/system/keys) - Add two new keys:
- Lara Access Key ID (type: API Key)
- Lara Access Key Secret (type: API Key)
- Store your Lara API credentials securely in these keys
6. Configure the Translator
- Go to Configuration → Translation Management → Providers (
/admin/config/regional/tmgmt_translator) - Click Add translator
- Select Lara Translate from the dropdown
- Configure:
- Name: Give your translator a descriptive name
- Credentials: Select the keys created in step 5
- Language mappings: Configure custom mappings if needed
- Translation options: Set default style, instructions, etc.
7. Verify Configuration
- Go to Configuration → Translation Management → Providers
- Click on your Lara translator
- Check that it shows "Available" status
- Test with a small translation job
Next Steps
- Quick Start Guide - 5-minute setup walkthrough
- Configuration Guide - Detailed configuration options
- User Guide - How to submit translation jobs
Troubleshooting
If you encounter issues during installation: - Check that all required modules are enabled - Verify your Lara API credentials are correct - Ensure your server can reach Lara's API endpoints - Check Drupal logs for error messages
See Troubleshooting Guide for more detailed help.