generate_pseudolocale
Create pseudo-localized catalogs from a source locale to stress-test UI layouts, text expansion, font glyph support, and reveal unextracted strings.
Instructions
Generates pseudo-localized catalogs (e.g. qps-ploc, en-XA) from the source locale for stress-testing UI layouts, text expansion (+35%), font glyph support, and spotting unextracted strings.
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": "generate_pseudolocale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, simulates generation and returns diffs without modifying files. If false, writes catalogs to disk. | |
| strategy | No | Pseudo-localization strategy: 'accented' (diacritics), 'bidi' (RTL mirroring), 'expansion' (text elongation), or 'all' (default). | all |
| delimiter | No | Surrounding delimiters: 'exclamation' ([!! ... !!]), 'brackets' ([...]), or 'none'. | exclamation |
| namespaces | No | Optional list of namespaces to limit pseudo-localization to. | |
| projectPath | No | Optional project root directory. Defaults to current working directory. | |
| sourceLocale | No | Source locale to read from (e.g. 'en'). Defaults to project source locale. | |
| targetLocale | No | Target pseudo-locale name (e.g. 'qps-ploc', 'en-XA', or 'qps-plocm' for bidi). Defaults to 'qps-ploc'. | |
| expansionRatio | No | Length expansion multiplier (default 0.35, i.e., +35% longer text). |