validate_i18n
Validate i18n catalogs to detect missing translations, interpolation mismatches, orphan or unused keys, and malformed JSON before release.
Instructions
Validate i18n implementation for missing translations, interpolation variable mismatches, orphan keys, unused dead keys, and malformed JSON.
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": "validate_i18n"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Optional specific directory or file scope when checkSourceCode or checkUnusedKeys is enabled. | |
| locales | No | Optional list of locales to validate against the source locale. | |
| namespaces | No | Optional list of namespaces to validate. | |
| projectPath | No | Optional project root directory. Defaults to current working directory. | |
| checkSourceCode | No | If true, also scans source files for remaining unextracted hardcoded strings. | |
| checkUnusedKeys | No | If true, scans source code to identify dead/unused keys in locale catalogs. | |
| pruneUnusedKeys | No | If true, safely deletes unused/dead keys from all locale catalogs. |