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

Ownership for static Message fields #14

Open
CubBossa opened this issue Mar 26, 2024 · 1 comment
Open

Ownership for static Message fields #14

CubBossa opened this issue Mar 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@CubBossa
Copy link
Owner

Since Message objects are unmodifiable, constants like

public static final Message PREFIX = Message.message("prefix");

could match every MessageTranslator instance. A mechanism that binds these fields to a Translator to create unique translation keys would improve the work with static fields.

@CubBossa CubBossa added the enhancement New feature or request label Mar 26, 2024
@CubBossa
Copy link
Owner Author

Possible approach is that messages are not unmodifiable at all and only hold a reference to TranslatableComponents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant