Scan localizable strings
l10n_scanScan a Bannerlord module's XML, GUI prefabs, and C# code for localization id problems: missing, empty, reused, or colliding ids plus per-language coverage; optionally assign unique fixes.
Instructions
Scans a module's XML data, GUI prefabs and C# code (Source/ or code_dir) for {=id}Text strings. Reports texts without ids, empty ids, ids reused with different texts, ids colliding with other modules, and translation coverage per language. fix_missing_ids / fix_conflicts rewrite the module's XML with fresh unique ids.
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": {
"module": "<module>"
},
"name": "l10n_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | Yes | Module id. | |
| code_dir | No | Folder with the mod's C# sources if outside the module folder. | |
| include_code | No | Also scan .cs files (default: when a Source folder or code_dir exists). | |
| fix_conflicts | No | Give new ids to strings whose id is reused with a different text, here or in another module (default false). | |
| fix_missing_ids | No | Add {=newId} to player-facing XML texts that have none (or {=}) (default false). |