Is there a way to get Component through the player? #922
Closed
xLikeWATCHDOG
started this conversation in
General
Replies: 3 comments 6 replies
-
Legacy strings do not support translations. You can run the components through the GlobalTranslator yourself if the components are server-side, otherwise you're SOL. |
Beta Was this translation helpful? Give feedback.
6 replies
-
This is also a duplicate of the issue you opened two weeks ago (#908), please do not open duplicate issues asking the same thing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to popularize translation in my plugin, I used the Gui library (Triumph GUI) that uses the Adventure library when designing the Gui interface. One of the reasons is that I'm going to support the 1.8.8 server, and another reason is that I need to go to Compent for the translation operation.
For example
Then, I found that when I built it directly to Compent and then set it to title.
I found that it sets the title directly like this.
Legacy.SERIALIZER.serialize(title)
Then it returns
floracore.command.report.abnormal
directly in the menuSo, what I'm trying to say is that I want to get the processed Compent directly through the player (Sender).
How should I do that?
Also, I would like to know how I can get Compent to get the processed String through the player (Sender).
If this is not possible, it also means that my Gui must use the source language and cannot be multilingual.
So that's really important to me.
Because I don't seem to see a similar operation in the documentation.
Please help me! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions