fix(lang): incorrect hyperlinks marks.

This commit is contained in:
huanghongxun 2021-10-17 16:42:03 +08:00
parent 8e5725946c
commit f8cf3c22a1
2 changed files with 982 additions and 982 deletions

View File

@ -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);
} }