Closed hoofcushion closed 1 year ago
The supportedLanguages
setting contains language objects, which in turn contain the necessary data (most importantly the languageCode
) of said language.
Adding a language works by patching into the config file, adding an object
"<language>": { "title": "<languageName>", "name": "<language>", "languageCode": "<languageCode>" }
Upon setting the defaultLanguage
to your new language, SBR will then replace the language code in the file path from where configs are loaded.
Example given, when changing the language to russian, notifications are not loaded from /dialog/sexbound/en/...
anymore, but instead from /dialog/sexbound/ru/...
Here is a detailed guide on how to create a translation mod: https://github.com/ErinaSugino/Starbound-SBR-Mod/wiki/Modding:-Translations
Well, that helps
I noticed that the "starbound.config" file has a "supportedLanguages" section that currently includes English and Russian languages. I would like to add a new language to SBR. But I'm not sure how is "supportedLanguages" work.