CLI Commands
write
Write translation keys (add/update/upsert). Default mode: upsert.
Synopsis
the-i18n-cli write --layer <layer> --translations <translations>
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--layer | string | yes | — | Layer name |
--translations | string | yes | — | JSON: { "key": { "en": "val", "de": "val" } } |
--mode | string | no | "upsert" | Write mode: add | update | upsert (default: upsert) |
--dryRun | boolean | no | false | Preview changes without writing |
Every command accepts the shared flags and sets one of the exit codes documented on the overview.