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

Automatically add missing translation keys #73

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

Tisawesomeness
Copy link
Contributor

While working on a separate feature, I discovered that adding a new translation key to Lang (and the corresponding file in plugin resources) does not automatically update the local plugin files, requiring users to edit/delete their translations every time a key is added.

This PR updates all missing translation keys in the language files with the plugin defaults, similar to how other configs work. If a key hasn't been translated yet for a certain language, English will be used as a fallback (although not desirable, it is better than an error).

@Jsinco
Copy link
Member

Jsinco commented Dec 28, 2024

I Hadn't noticed this was an issue until now, appreciated PR. 😄

@Jsinco Jsinco merged commit 14486ba into BreweryTeam:master Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants