Languages - SuperCatGaming/Velocity-Redux-Mod-Creator GitHub Wiki
If you are following the recommended file structure for mods, rims are located under [Languages].
To create a new language asset, access [Assets > Create > Mods > Language]
Note
You can see the details for all game languages in [Assets/Resources/Localization]. English is the only fully translated language in game; so, if you want to add a full translation, you can use the English asset here to find all of the IDs and their associated English translations.
Name the newly created asset, then edit the details in the inspector.
- Id: the language to create/add to. These should be in the IETF language tag format, which can be found in the "IETF" column here
- Local Name: what shows in the language list; can be found in the "Native" column here
- Translations: add a new translation by clicking the "+". Supply the ID on the left, and the translation on the right
Important
For any translation specific to your mod, the ID should start with "mod.(your mod's id)." to reduce the possibility of a language conflict.
Warning
Your mod will overwrite any translation with the same ID in the same language. Be mindful.
If you want your mod's details (title and description) to be translated, there are a couple steps.
- Go to the mod asset described here
- Select it and in the inspector, check the translatable box
- Then in your mod's language folder, access [Assets > Create > Mods > Mod Details]
- Name the created object
- Edit the details in the inspector
- Language Id: same as described in the above section
- Title: the mod's title in this language
- Description: the mod's description in this language
For those interested:
The reason this is in a separate object is so that they can be loaded without the rest of the mod being enabled (so that players can actually read the title and description without the mod loaded).