-
Notifications
You must be signed in to change notification settings - Fork 12
Basic Integration
Ever had someone ask to translate your mod into a language, but that language was not supported in tModLoader by default? Maybe you're the one who wanted to translate your/a mod into a language that wasn't supported, and you couldn't find an easy way to do so?
The previous two scenarios are actually the whole reason for Localization Plus' existence. Someone came into our Discord asking to translate our mod into Korean, and I wasn't about to let a community member's passion go to waste.
'...say that again?'
So that's what I did. Localization Plus effectively allows you, as a mod developer, to implement localization for these new custom languages in the exact same way you do for the vanilla languages.
For ease of use, Localization Plus is designed with one-to-one compatibility with vanilla's language options in mind, and this includes the way of implementing localization in your mod.
If you've already added localization to your mod for a language like Spanish, French, Russian, etc., you already know exactly how to add support for one of Localization Plus' custom languages. If you don't, read this.
All of the language codes for languages added by Localization Plus are listed in this repository's README.md
For this demo, I am using the Terramon Mod, which already uses Localization Plus to add Korean localization, as an example.
Terramon structures its localization files like this:

Upon closer inspection, we can see that the Korean localization files are structured the exact same way:

And their contents as well:

And yes, it just works.
To recap, simply add the localization files needed (using the language code you want), and now, those localizations will work for whoever uses the correct language option from Localization Plus' language menu.