run
Run the full pipeline in one command.
The run command executes the full pipeline: scan, codegen, and translate — in one step.
Usage
translate-kit runFlags
| Flag | Description |
|---|---|
--dry-run | Preview without writing files |
--force | Ignore translation cache, re-translate everything |
--module-factory | Convert module-level constants into factory functions (experimental, see codegen) |
--verbose | Show detailed output |
What It Does
- Scans source files for translatable strings and generates semantic keys (same as
scan) - Replaces strings with i18n calls and injects imports (same as
codegen) - Translates to all target locales, only sending new/modified keys (same as
translate)
When to Use
- After initial setup with
init - When you've added or modified translatable strings in your source code
- As a single command in CI/CD pipelines
Difference with Individual Commands
run passes data directly between steps without intermediate file reads, making it slightly more efficient than running each command separately. It's the recommended way to execute the full pipeline.
Examples
# Full pipeline
translate-kit run
# Preview what would change
translate-kit run --dry-run
# Force re-translate everything
translate-kit run --force
# Include module-level constants
translate-kit run --module-factory
# See detailed output
translate-kit run --verbose