ResoniteModdingGroup / MonkeyLoader.GamePacks.Resonite

MonkeyLoader Game Pack which provides hooks for Resonite mods.
https://resonitemoddinggroup.github.io/MonkeyLoader.GamePacks.Resonite/
GNU Lesser General Public License v3.0
14 stars 2 forks source link

Ensure that users without a mod that uses localizations in Sessions don't see bare locale keys #44

Closed Banane9 closed 2 months ago

Banane9 commented 2 months ago

Currently, users who don't have a mod will see bare locale keys when mods (e.g. Component Selector Additions) use localized values in non-userspace sessions.

For this purpose, the LocaleHelper.DriveLocalized methods should be patched to add a BooleanValueDriver which only shows the output of the LocaleStringDriver when it's not equal to the locale key itself. Otherwise it should show the mod user's message for the locale key. Although ideally it would show the English value for it.