CLI Commands
add
Add new translation keys (skips keys that already exist)
Synopsis
the-i18n-cli add --layer <layer> --translations <translations>
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--layer | string | yes | — | Layer name |
--translations | string | yes | — | JSON: { "key": { "en": "val", "de": "val" } } |
--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.