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

feature: MiniMessageTranslator #972

Draft
wants to merge 2 commits into
base: main/4
Choose a base branch
from
Draft

Conversation

kezz
Copy link
Member

@kezz kezz commented Sep 19, 2023

Closes #971

@mishyy
Copy link

mishyy commented Dec 5, 2023

I think it would be worth including an equivalent of the MessageFormat-based TranslationRegistry for MiniMessage's String-based translations, to maintain consistency in the level of multi-locale and multi-source (ResourceBundles, Files, etc) support.

Comment on lines +66 to +68
resultingComponent = MiniMessage.miniMessage().deserialize(miniMessageString);
} else {
resultingComponent = MiniMessage.miniMessage().deserialize(miniMessageString, new ArgumentTag(component.args()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resultingComponent = MiniMessage.miniMessage().deserialize(miniMessageString);
} else {
resultingComponent = MiniMessage.miniMessage().deserialize(miniMessageString, new ArgumentTag(component.args()));
resultingComponent = this.miniMessage.deserialize(miniMessageString);
} else {
resultingComponent = this.miniMessage.deserialize(miniMessageString, new ArgumentTag(component.args()));

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

Successfully merging this pull request may close these issues.

Create a MiniMessage Translator utility implementation
4 participants