Rename Translation Key
rename_translation_keyRename a translation key across all locale files in a layer, preserving all translations. Preview changes with a dry run before applying.
Instructions
Rename/move a translation key across ALL locale files in a layer. Preserves the value in every locale. Use dryRun to preview changes before applying them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Layer name from discover (e.g., "root", "app-admin"). The key will be renamed in ALL locale files in this layer. | |
| oldKey | Yes | Current dot-separated key path to rename. Example: "common.actions.save". | |
| newKey | Yes | New dot-separated key path after renaming. Example: "common.buttons.save". Must not already exist. | |
| dryRun | No | When true, returns a preview of what would be renamed without writing any files. Default: false. | |
| projectDir | No | Absolute path to the Nuxt project root. Defaults to server cwd. Example: "/home/user/my-app". |