From a6c8867ec44a74f604ec1cc2970e530b67e573e9 Mon Sep 17 00:00:00 2001 From: Glavo Date: Mon, 6 Feb 2023 22:45:03 +0800 Subject: [PATCH] Use Locale.forLanguageTag (#2064) --- HMCL/src/main/java/org/jackhuang/hmcl/util/i18n/Locales.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/util/i18n/Locales.java b/HMCL/src/main/java/org/jackhuang/hmcl/util/i18n/Locales.java index ff679635f..47c926450 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/util/i18n/Locales.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/util/i18n/Locales.java @@ -58,12 +58,12 @@ public final class Locales { /** * Spanish */ - public static final SupportedLocale ES = new SupportedLocale(new Locale("es")); + public static final SupportedLocale ES = new SupportedLocale(Locale.forLanguageTag("es")); /** * Russian */ - public static final SupportedLocale RU = new SupportedLocale(new Locale("ru")); + public static final SupportedLocale RU = new SupportedLocale(Locale.forLanguageTag("ru")); /** * Japanese