YapLocalizer
Utility mod for adding localized text to the game!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
