Skip to content

Commit

Permalink
Use English for lowercasing locale name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo committed Jul 12, 2024
1 parent 89c46e9 commit 167b316
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ private void addTranslationFallthrough(@NotNull LangLocation location, @NotNull
}

public @Nullable String getValue(@NotNull String key, @Nullable String locale) {
String value = getOrLoadLocale(locale == null ? defaultLocale : locale.toLowerCase(Locale.ROOT)).getString(key);
if (value == null || value.isEmpty()) {
String value = getOrLoadLocale(locale == null ? defaultLocale : locale.toLowerCase(Locale.ENGLISH)).getString(key);
if (value == null || value.isBlank()) {
return null;
}

Expand Down

0 comments on commit 167b316

Please sign in to comment.