Translations: force json, convert template, default to existing key #2292
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.
Adds 3 new translation features (I can split into 3 PRs if needed)
Add Force JSON Translation
For me (and maybe others), the plugin isn't able to detect the Minecraft version and throws "Cannot determine MC version". This option makes it avoid erroring
Add template for the Convert to Translation feature
net.minecraft.client.resources.I18n isn't always desired, this option allows the template string to be changed
Default to existing key when adding duplicate translation text
Scans the translation file for an existing key that matches the translation text and suggests it inside the Convert to Translation dialog
Feature 3 only supports json translation files, support for lang files can be added if desired.
Apologies if there are any stylistic issues, I am not a Kotlin developer