-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.version: 1.21Game version 1.21Game version 1.21version: 1.21.11Game version 1.21.11Game version 1.21.11
Description
Expected behavior
When a plugin adds a server link with a TranslatableComponent as its display name, the component is rendered using GlobalTranslator, just like any other component serialized to the network
Observed/Actual behavior
When a plugin adds a server link with a TranslatableComponent as its display name, the component is not rendered using GlobalTranslator, unlike any other component serialized to the network
Steps/models to reproduce
- Follow Paper's i18n guide: load translations for the custom server link, e.g.
example-plugin.server-links.bug-report - Add a link:
Bukkit.getServerLinks().addLink(Component.translatable("example-plugin.server-links.bug-report"), URI.create("https://github.com/PaperMC/Paper/issues")) - Build and upload the plugin to the server
- Join the server and open the server links menu on the client
- The link's display name is not rendered and appears as just the translation key
Plugin and Datapack List
None, only the test plugin from "Steps/models to reproduce"
Paper version
> version
[22:16:06 INFO]: Checking version, please wait...
[22:16:06 INFO]: This server is running Paper version 1.21-119-master@100d75a (2024-07-29T16:00:13Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are running the latest version
Other
No response
Metadata
Metadata
Assignees
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.version: 1.21Game version 1.21Game version 1.21version: 1.21.11Game version 1.21.11Game version 1.21.11
Type
Projects
Status
✅ Accepted