BabelizeBabelize
CLI

Engine Runs

Start a Babelize translation run from the CLI and watch the pipeline live, phase by phase, from string extraction to the pull request. Includes run history.

Commands

babelize run start

Start a full Babelize engine run — triggers the modular i18n architecture.

babelize run start --project <id> --languages es,fr,de
babelize run start --project <id> --languages ja,zh --branch develop

The CLI polls for status automatically, showing real-time pipeline progress:

Phase 0: Workspace Validation    ✓ (0.3s)
Phase 1: String Extraction       ✓ (1.2s)
Phase 2: Key Generation          ✓ (0.5s)
Phase 3: Lockfile Check          ✓ (0.2s)
Phase 4: Base Locale Handling    ✓ (0.8s)
Phase 5: Translation             ✓ (12.4s)
Phase 6: Lockfile Update         ✓ (0.2s)
Phase 7: AST Injection           ✓ (2.1s)
Phase 8: Finalization            ✓ (0.3s)
Phase 9: Preview Analysis        ✓ (0.4s)
Phase 10: Summary                ✓ (0.1s)
✓ Babel run completed!
  PR opened: https://github.com/yourorg/yourapp/pull/42

Use --no-poll to start the run and return immediately:

babelize run start --project <id> --languages es --no-poll

babelize run status <babelId>

Check the status of a specific babel job.

babelize run status <babel-uuid>
babelize run status <babel-uuid> --watch   # Keep polling until done
babelize run status <babel-uuid> --watch --json   # Final status as JSON (CI-friendly)

babelize run analyze

Analyze source code to detect framework, config, and string patterns.

babelize run analyze --project <id>

babelize scan [directory]

Scan a local directory for hardcoded strings without a project or API key — useful for checking i18n readiness before your first run.

babelize scan                          # Scan the current directory
babelize scan ./src                    # Scan a subdirectory
babelize scan --extensions .ts,.tsx    # Restrict file extensions
babelize scan --json                   # Machine-readable results

Default extensions: .tsx, .jsx, .ts, .js, .vue, .html.

Modular Architecture

ModuleWhat Happens
Workspace ValidationFramework detection (React, Next.js, Django and static HTML; Vue and React Native in beta)
String ExtractionAST parsing finds hardcoded strings
Key GenerationCreates i18n keys with collision detection
Lockfile CheckChecks lockfile for cached translations
Base Locale HandlingSource locale file and lockfile sync
TranslationAI translation via NLLB-200 or BYOK Anthropic/OpenAI
Lockfile UpdateUpdates lockfile with new translations
AST InjectionModifies source files with t() wrappers
FinalizationDependency injection, config file creation
SummaryStats, diffs, and analysis

Babels (Run History)

babelize babels list                         # All runs
babelize babels list --project <id>          # Filter by project
babelize babels list --limit 50             # More results
babelize babels get <babel-uuid>            # Single run with logs

Last updated: 2026-10-16

How is this guide?

On this page