Skip to content

Commit

Permalink
Fix locale codes not being applied to files
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Aug 15, 2024
1 parent 087b3f0 commit 5924498
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {
publishData {
addRepo(Repo.main("", "", false))
addRepo(Repo.snapshot("SNAPSHOT", "", false))
publishingVersion = "2.1.2"
publishingVersion = "2.1.3"
}
version = publishData.getVersion()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public class Localizer implements ILocalizer {
this.userLocale = userLocale;
this.includedLocales = includedLocales;
defaultLanguage = fallbackLocale;
createDefaults();
bootstrap();
loadLanguage(fallbackLocale);
if (languages.containsKey(fallbackLocale)) {
Expand All @@ -101,7 +102,6 @@ public class Localizer implements ILocalizer {
for (String locale : includedLocales) {
loadLanguage(locale);
}
createDefaults();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
import java.util.function.Function;

public class LocalizerBuilder {
private Plugin plugin;
private final Plugin plugin;
private final String fallbackLocale;
private String localesPath = "messages";
private String localesPrefix = "messages";
private String fallbackLocale;
private Function<Player, String> userLocale;
private String[] includedLocales = new String[0];

Expand Down

0 comments on commit 5924498

Please sign in to comment.