Skip to content

Commit

Permalink
fix(i18n): don't create default bundle before file has beein created
Browse files Browse the repository at this point in the history
  • Loading branch information
Machine-Maker committed Mar 8, 2022
1 parent 0309ac6 commit 45c42af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public void setupI18n() {
ClassLoader previousLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(this.pluginClassLoader);
TranslationRegistry.registerAll(Locale.US, createBundle(Locale.ENGLISH));
VanillaTweaks.SUPPORTED_LOCALES.forEach(locale -> {
this.updateI18nFile(locale);
TranslationRegistry.registerAll(locale, createBundle(locale));
});
TranslationRegistry.registerAll(Locale.US, createBundle(Locale.ENGLISH));
} finally {
Thread.currentThread().setContextClassLoader(previousLoader);
}
Expand Down

0 comments on commit 45c42af

Please sign in to comment.