mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-12 21:36:21 -04:00
fix(lang): incorrect hyperlinks marks.
This commit is contained in:
parent
8e5725946c
commit
f8cf3c22a1
@ -68,9 +68,9 @@ public final class Locales {
|
|||||||
/**
|
/**
|
||||||
* Japanese
|
* Japanese
|
||||||
*/
|
*/
|
||||||
public static final SupportedLocale JA_JP = new SupportedLocale(Locale.JAPAN);
|
public static final SupportedLocale JA = new SupportedLocale(Locale.JAPANESE);
|
||||||
|
|
||||||
public static final List<SupportedLocale> LOCALES = Lang.immutableListOf(DEFAULT, EN, ZH_CN, ZH, ES, RU);
|
public static final List<SupportedLocale> LOCALES = Lang.immutableListOf(DEFAULT, EN, ZH_CN, ZH, ES, RU, JA);
|
||||||
|
|
||||||
public static SupportedLocale getLocaleByName(String name) {
|
public static SupportedLocale getLocaleByName(String name) {
|
||||||
if (name == null) return DEFAULT;
|
if (name == null) return DEFAULT;
|
||||||
@ -85,8 +85,8 @@ public final class Locales {
|
|||||||
return ES;
|
return ES;
|
||||||
case "ru":
|
case "ru":
|
||||||
return RU;
|
return RU;
|
||||||
case "ja_jp":
|
case "ja":
|
||||||
return JA_JP;
|
return JA;
|
||||||
default:
|
default:
|
||||||
return DEFAULT;
|
return DEFAULT;
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ public final class Locales {
|
|||||||
else if (locale == ZH_CN) return "zh_CN";
|
else if (locale == ZH_CN) return "zh_CN";
|
||||||
else if (locale == ES) return "es";
|
else if (locale == ES) return "es";
|
||||||
else if (locale == RU) return "ru";
|
else if (locale == RU) return "ru";
|
||||||
else if (locale == JA_JP) return "ja_JP";
|
else if (locale == JA) return "ja";
|
||||||
else if (locale == DEFAULT) return "def";
|
else if (locale == DEFAULT) return "def";
|
||||||
else throw new IllegalArgumentException("Unknown locale: " + locale);
|
else throw new IllegalArgumentException("Unknown locale: " + locale);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user