Quick Start
This 5-minute guide gets you from installation to your first translated content.
Prerequisites
- You have installed the module and its dependencies
- You have Lara API credentials ready
- You have content types enabled for translation in Drupal
Step 1: Configure Lara Translator (2 minutes)
1.1 Create API Keys
- Go to Configuration → System → Keys (
/admin/config/system/keys) - Click Add key
- Create two keys:
- Lara Access Key ID: Type "API Key", paste your key ID
- Lara Access Key Secret: Type "API Key", paste your secret
1.2 Create Translator Provider
- Go to Configuration → Translation Management → Providers (
/admin/config/regional/tmgmt_translator) - Click Add translator
- Select Lara Translate and click Save
- Configure:
- Name: "Lara Translate" (or your preferred name)
- Credentials: Select the keys you created
- Default style: Choose "Fluid" (recommended for most content)
- Click Save
1.3 Verify Configuration
- The provider should show "Available" status
- If not, check your API credentials and network connectivity
Step 2: Submit Your First Translation (2 minutes)
2.1 Create a Translation Job
- Go to Content (
/admin/content) - Find content to translate (or create a test node)
- Click the Translate tab
- Select target language(s)
- Click Request translation
2.2 Choose Lara Translator
- In the translation request form, select your Lara Translate provider
- Review the job items to be translated
- Click Request translation
2.3 Check Job Status
- The job will be marked as "Submitted"
- Translation processing happens asynchronously via Symfony Messenger
Step 3: Monitor Translation Progress (1 minute)
3.1 Check Job Status
- Go to Configuration → Translation Management → Jobs (
/admin/config/regional/tmgmt_job) - Click on your translation job
- You'll see:
- Job status (Submitted → Active → Completed)
- Individual job item statuses
- Any error messages
3.2 View Translated Content
Once completed: 1. Go back to your original content 2. Click the Translate tab 3. You'll see the translated versions 4. Review and publish as needed
What Happens Behind the Scenes?
flowchart TD
A[You submit translation] --> B[Job created]
B --> C[Items dispatched to Symfony Messenger]
C --> D[MessageHandler processes items]
D --> E[Lara API translates content]
E --> F[Translated content imported]
F --> G[Job marked completed]
Common Quick Issues
"Provider not available"
- Check your API credentials in the Keys configuration
- Verify network access to Lara's API
- Check Drupal logs for specific error messages
"Translation not processing"
- Symfony Messenger may need to be configured for your environment
- Check that the SM module is properly installed
- See Operations Guide for messenger setup
"Job stuck in submitted state"
- Check messenger transport configuration
- Verify message handler is registered
- See Troubleshooting Guide
Next Steps
- Configuration Guide - Advanced configuration options
- User Guide - Detailed usage instructions
- Operations Guide - Production deployment
Success! 🎉
You've successfully set up TMGMT Lara Translate and submitted your first translation job. The translated content will appear automatically once processing completes.
For more advanced usage and troubleshooting, see the detailed guides in this documentation.