Translation template
The game, or another mod, in another language; or changed texts in a language the game already has.
Steps
- Copy this folder into
<game folder>\mods\and rename it. - In
mod.jsonchangeid(lowercase letters, numbers and hyphens: it identifies your mod),name,authorsanddescription. - In
mod.json,languagedeclares a new language:codeis its English name in lowercase (french),nameis how it appears in the menu andbaseis the language used for anything you do not translate. Deletelanguageif you only change texts of an existing language. Intags, put the language:"Language: French". - Translate the texts in
loc\french.loc.xml(rename it to your language's code). Anything you leave out shows in thebaselanguage. - Optional: files for that language only, in
local\<language>\:help.xml,tips.xml,credits.txt,splash.ini, menu images andvoices\. See Languages and texts. - Enable the mod in your profile, pick the language in Options → Language and restart.
Folder layout
my-translation\
mod.json
README.md
loc\
french.loc.xml
local\
french\
help.xml optional
tips.xml optional
Check and publish
node tools\validate-mod.js <your mod folder>
The validator reports problems with file and line without opening the game (Validating a mod). Zip the mod folder with its mod.json inside and publish it as described in Publishing on GameBanana.