Write translations
l10n_setWrite translations for one language into a Bannerlord module's language files, creating missing XML and updating existing IDs while flagging placeholder mismatches.
Instructions
Writes translations for one language into the module's ModuleData/Languages// files (creates language_data.xml and _strings.xml when missing; existing ids are updated in place). Warns when {PLACEHOLDERS} differ from the source text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file relative to ModuleData/Languages (default <folder>/<module>_strings.xml). | |
| module | Yes | Writable module id. | |
| remove | No | String ids to delete from the language files (e.g. stale ones). | |
| language | Yes | Target language (CNs/zh/简体中文, CNt, RU, DE, …). | |
| translations | No | Map of string id → translated text. Values are strings. | |
| allow_unknown_ids | No | Write ids that do not occur in the module's sources (default false: they are skipped). | |
| fill_untranslated_with_source | No | Also add every untranslated id with its source text (template for human translators). |