Team-Resourceful / Resourceful-Config

https://config.wiki.teamresourceful.com/
MIT License
5 stars 6 forks source link

[Bug]: Buttons translations are broken #18

Open costantino2000 opened 6 months ago

costantino2000 commented 6 months ago

Bug Description

For some reason the translations do not work for config buttons. They work normally for config entries though.

Here is an example: @ConfigButton(text = "Button text", translation = "Translation id in the lang file", target = "Button target", position = Position.BEFORE) public static void function() { do stuff }

Even though the translation id is correct it won't take the string from the lang file, and will keep using the default one specified in the "text" parameter.

How to Reproduce?

No response

Expected Behavior

No response

Version

2.5.1

Mod Loader Version

1.20.6 - 0.15.11

Mod Loader

Fabric

Logs or additional context

No response