Localization
Before doing this guide, please check the getting started guide for modders if you haven't already.
In order to make card names, rules, and other things display properly in other game languages, you should support localization.
To do this, you simply have to create a .json file with your mod's name (or anything really, just to avoid having collisions with other mods) in GameData/Translations/LOCALIZATION_ISO_CODE.
So for example, to localize coolmod to English:
GameData/Translations/en-US/coolmod.json.
The content of the JSON file should be something like this:
{
"name": "English",
"isoCode": "en-US",
"translatedStrings": [
{
"key": "MY_KEY",
"value": "My translated text"
}
]
}
The isoCode is the most important field as it tells the game which language should get the translation.
Available languages
| Name | Iso Code |
|---|---|
| German | de-DE |
| English | en-US |
| Spanish (Latin) | es-MX (to be replaced) |
| Japanese | jp-JP |
| French | fr-FR |
| Portuguese | pt-PT |