Skip to content

Register TranslationKey

Ghost_chu edited this page Feb 21, 2022 · 1 revision

QuickShop-Hikari use TranslatableComponent to show the localized texts, but some times, plugin just register enchantments/potion effects to registry but not send the correct translations to client, which it will cause this issue:

屏幕截图 2022-02-21 151730

A good news is we can tweak them by manual:

屏幕截图 2022-02-21 151831

And now should looks fine :)

屏幕截图 2022-02-21 151821

Developer API

You could register them by call QuickShop API:

QuickShopAPI api = ....
api.registerLocalizedTranslationKeyMapping("ecoenchants:enchantment.damage_artifact","Damage Artifact");