Rename key or move namespace
i18n_rename_keyRename or move an i18n key or namespace across locale files, previewing by default and refusing if the target exists.
Instructions
Rename a key across locales, or move a whole namespace when from ends with '.' (e.g. 'nav.' -> 'menu.'). Refuses when a target exists. Previews by default; pass dryRun:false to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | Key, or namespace prefix ending with '.'. | |
| dryRun | No | Default true (preview). false applies. | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |