-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: MiniMessageTranslator #972
base: main/4
Are you sure you want to change the base?
Conversation
...ge/src/main/java/net/kyori/adventure/text/minimessage/translation/MiniMessageTranslator.java
Outdated
Show resolved
Hide resolved
I think it would be worth including an equivalent of the MessageFormat-based |
...ge/src/main/java/net/kyori/adventure/text/minimessage/translation/MiniMessageTranslator.java
Outdated
Show resolved
Hide resolved
9b668ad
to
9380716
Compare
This PR has been updated with full documentation and named argument support using virtual components. An example of which is provided below: Component.translatable(
"my.minimessage.key",
NamedTranslationArgument.component("player_name", player.displayName())
); |
I'm unsure what you mean by this. It already has "multi-locale and multi-source" support by allowing you to do whatever you want to turn keys to MiniMessage strings. |
As pointed out by FabiHBBBT in Discord, it would be incredibly nice to allow for entire tag resolvers to be wrapped in the same system. |
Closes #971