Localisation stress test
stress_test_localisationStress-test UI strings for translation. Give strings (one per line, optionally 'text | maxChars' or 'label | text | maxChars', or a JSON array of {text, maxChars, label}), optional locales (default de, fr, es, fi, ru, ja, ar, zh) and optional defaultMaxChars. Applies the published IBM translation expansion guidance by string length (up to 10 chars about +200 to 300%, 11 to 20 about +80%, 21 to 30 about +60%, 31 to 50 about +40%, 51 to 70 and over 70 about +30%), adjusted per locale (CJK contracts to about half, German and Finnish run longer than French). Predicts expanded length, flags strings that overflow their limit, generates a pseudo-localised version, and flags concatenated fragments, variables that need ordering freedom, hard-coded dates, numbers, currency and plurals, text-in-image risks, and right-to-left mirroring notes. Estimates from published ratios, not translations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"strings": "<strings>"
},
"name": "stress_test_localisation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locales | No | Locale codes to test, comma separated or an array. Default: de, fr, es, fi, ru, ja, ar, zh | |
| strings | Yes | UI strings, one per line ('Save | 8' sets a 8-char limit; 'label | text | 24' also sets a label), or a JSON array of strings or {text, maxChars, label} | |
| defaultMaxChars | No | Character limit applied to strings that do not have their own |