apply_i18n_plan
Apply an approved i18n migration plan atomically to React Native, React, Next.js, or Flutter projects, including source replacements, import insertions, and locale JSON updates with dry-run support.
Instructions
Safely and atomically apply an approved i18n migration plan to the project (React Native, React, Next.js, Flutter). Performs source replacements, hook/import insertions, and locale JSON updates with stale plan protection and optional dry-run.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "apply_i18n_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | The full I18nPlan object produced by generate_i18n_plan. Either plan or planPath must be provided. | |
| dryRun | No | If true, calculates changes, validates everything, and returns diffs without modifying files. | |
| planPath | No | Path to a JSON file containing an I18nPlan. | |
| projectPath | No | Optional project root path. If omitted, uses plan.project.root or current working directory. | |
| createBackup | No | If true, creates .bak copies of original files before writing changes. | |
| failOnWarnings | No | If true, aborts execution before writing if any warnings are encountered. |