YapLocalizer
Utility mod for adding localized text to the game!
About this mod Author’s original text
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 `ModLocalizedText and ModLocalizedPhrase`
ModLocalizedText - Adds modded localized text with optional translations
Simply define a key and any translations you'd like to add.
Example:
ModLocalizedText testLocal = new ModLocalizedText("TEST_LOCAL_KEY").SetLocalization(SystemLanguage.English, "Test");
- The above example would translate any localized text with key `TEST_LOCAL_KEY to Test` when 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:
newPhrase = new ModLocalizedPhrase("SPELL_BAS_UPDOG", ["up", "ease"]).AddLocalization(SystemLanguage.Italian, ["cane", "alto"]);
- The above example would replace `UP DOG's` localization 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 EASE unless otherwise specified via AddLocalization`
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide.
Install these first, or the mod will not work: