YapLocalizer
Utility mod for adding localized text to the game!
| Last updated | 4 hours ago |
| Total downloads | 653 |
| Total rating | 1 |
| Categories | Mods Tools Libraries |
| Dependency string | darmuh-YapLocalizer-0.1.1 |
| Dependants | 2 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2304README
YapLocalizer
Utility mod for adding localized text to the game!
Features
This utility mod is designed for mod developers to make adding new localizations quick and easy!
- Add Localized Text or Verbal Commands easily with
ModLocalizedTextandModLocalizedPhrase
ModLocalizedText - Adds modded localized text with optional translations
Simply define a key and any translations you'd like to add.
Example:
.SetLocalization(SystemLanguage.English, "Test");
- The above example would translate any localized text with key
TEST_LOCAL_KEYtoTestwhen the game language is set to english.
NOTE: If you do not set any translations, the LocalizationKey will be displayed instead.
An Optional fallbackResult can be defined that will be displayed when localization fails.
ModLocalizedPhrase - Adds modded voice commands with optional localizations
Define a key and any translations you'd like to add. Constructor takes a "Default Command" for when localization fails.
Example:
.AddLocalization(SystemLanguage.Italian, ["cane", "alto"]);
- The above example would replace
UP DOG'slocalization values. - It defines a localization for Italian, which currently is not supported in-game.
- If YAPYAP were to include an updated localization for italian, the above localization would be used.
- Any other undefined language currently in the game will use the default command,
UP EASEunless otherwise specified viaAddLocalization