feature(api, minimessage): Replace TranslationRegistry with a generic TranslationStore #1182
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR deprecates for removal the entire TranslationRegistry system in favour of a more generic TranslationStore system.
Having a generic system allows us to easily implement a TranslationStore for Component or MiniMessage translation (which this PR does).
Additionally, an abstract implementation of TranslationStore is provided for those who may wish to make their own custom type of TranslationStore. For example, one could easily create a JSONTranslationStore that provides component-based translations reading from a list of JSON strings.
For those scared about the big deprecation, it's a simple one line change for your codebase, no other API surface has been changed. Additionally, the old system continues to work identically to the new one.
Closes #1184