audit_plurals
Validate JSON and Flutter ARB translation catalogs against Unicode CLDR plural and gender rules to detect missing categories, fallback branches, and variable mismatches, with optional scaffold fixes.
Instructions
Audits translation catalogs (JSON and Flutter ARB) against official Unicode CLDR plural and gender rules, detecting missing mandatory categories (e.g., Arabic zero/two/few/many, Russian few/many), missing 'other' fallback branches, and variable mismatches, with automated scaffold fixing.
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": "audit_plurals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | If true, automatically scaffolds missing required CLDR plural forms and 'other' fallback branches. | |
| dryRun | No | If true (default when fix is true), previews changes via unified diff without modifying files. | |
| locales | No | Optional target locales to audit (e.g. ['ar', 'ru', 'pl', 'fr']). Defaults to all detected locales. | |
| namespaces | No | Optional list of namespaces to limit plural auditing to. | |
| projectPath | No | Optional project root directory. Defaults to current working directory. |