Use Locale.forLanguageTag (#2064)

This commit is contained in:
Glavo 2023-02-06 22:45:03 +08:00 committed by GitHub
parent 5753c2993c
commit a6c8867ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,12 +58,12 @@ public final class Locales {
/** /**
* Spanish * Spanish
*/ */
public static final SupportedLocale ES = new SupportedLocale(new Locale("es")); public static final SupportedLocale ES = new SupportedLocale(Locale.forLanguageTag("es"));
/** /**
* Russian * Russian
*/ */
public static final SupportedLocale RU = new SupportedLocale(new Locale("ru")); public static final SupportedLocale RU = new SupportedLocale(Locale.forLanguageTag("ru"));
/** /**
* Japanese * Japanese