Commands
Core Commands
The Lara CLI provides several commands to handle different translation scenarios and manage your translation resources.
translate
translateUse the translate command to perform translations between Supported Languages pairs. This command supports both text and file-based translations with advanced options to refine output quality.
Supported options:
--source <locale>(optional string): Set source locale (e.g.,"fr").--text(optional string): Translate a text string directly (e.g.,"hello world").--file(optional string): Translate a file directly (e.g.,"/path/to/file.txt").--target <locales>(optional string array): Comma-separated list of target locales to translate to (e.g.,"es, fr").--translation-memories(optional string array): Set comma-separated Translation Memory IDs.--glossaries(optional string array): Set comma-separated Glossary IDs.--no-trace: Prevent server-side storage of translated content
Translation Workflow
The CLI's primary function is the translate command, which accepts text or file input along with language specifications and optional parameters.
Batch Processing Example
Command:
lara-cli translate --paths "./docs/readme.md" --source "en-US" --target "de" --translation-memories "mem_ABC123"This command translates an entire markdown file while maintaining technical terminology from your translation memory and applying formal language style.
For detailed documentation on using Lara Cli:
Commands
- Init Command - Initialize your project
- Translate Command - Translate your files
- Memory Command - List available Translation Memories
- Glossary Command - List available Glossaries
Updated about 4 hours ago
