From 167b316754f79930dc76a2e086bad825be25c118 Mon Sep 17 00:00:00 2001 From: Jikoo Date: Thu, 11 Jul 2024 21:21:30 -0400 Subject: [PATCH] Use English for lowercasing locale name --- .../java/com/lishid/openinv/util/lang/LanguageManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/lishid/openinv/util/lang/LanguageManager.java b/common/src/main/java/com/lishid/openinv/util/lang/LanguageManager.java index 51ed359a..c922a642 100644 --- a/common/src/main/java/com/lishid/openinv/util/lang/LanguageManager.java +++ b/common/src/main/java/com/lishid/openinv/util/lang/LanguageManager.java @@ -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; }