Format locale files
i18n_format_resourcesNormalize JSON formatting and sort keys in locale files to keep translations consistent. Previews changes by default; set dryRun to false to rewrite files.
Instructions
Normalize JSON formatting and sort keys (top level only for mixed files). Previews by default; pass dryRun:false to rewrite.
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": "i18n_format_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Default true (preview). false rewrites. | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| sortKeys | No | Default true. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |