CLI Commands
move
Move a translation key to another layer, to another key path, or both, carrying every locale that defines it.
Synopsis
the-i18n-cli move --layer <layer> --key <key>
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--layer | string | yes | — | Layer the key lives in today, from discover. Example: "app-admin". |
--key | string | yes | — | Dot-separated key path to move. Example: "calendar.views.save". |
--toLayer | string | no | — | Layer to move it to, from discover. Example: "root". Omit (or repeat layer) to rename the key within its current layer, which then requires newKey. |
--newKey | string | no | — | Key path to give it. Example: "common.actions.save". Omit to keep the current path, which then requires toLayer. |
--dryRun | boolean | no | false | Return the plan without writing any files. Default: false. |