translate command is the main workflow command. It pushes your source file, computes a diff, triggers AI translation for changed keys, and downloads the results.
Usage
Options
| Flag | Description |
|---|---|
--locale <locales...> | Only translate specific locales |
--dry-run | Show changes without calling the API |
--json | Output machine-readable JSON |
What it does
Load configuration
Reads
lazylocales.config.ts from your project root. If no config exists,
runs the interactive setup flow (project creation or linking).Push source file
Reads the source locale file (e.g. Only changed keys are sent for translation.
en.json) and uploads it to LazyLocales.
A diff is computed against the previous version:Trigger translation
Starts translation jobs for each target locale. If
--locale is specified,
only those locales are translated.