Skip to content
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

Create a MiniMessage Translator utility implementation #971

Open
kezz opened this issue Sep 16, 2023 · 0 comments · May be fixed by #972
Open

Create a MiniMessage Translator utility implementation #971

kezz opened this issue Sep 16, 2023 · 0 comments · May be fixed by #972

Comments

@kezz
Copy link
Member

kezz commented Sep 16, 2023

It's a fairly common thing to want to use the GlobalTranslator to render MiniMessage strings. We should provide a utility class that can create a simple Translator implementation that renders TranslatableComponent instances using MiniMessage.

This class should provide a standard TagResolver for resolving positional arguments, but also perhaps a utility method for creating VirtualComponent instances that hold a name and component, to be used for standard named tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant