🌐 Add Korean support (#16526)

This commit is contained in:
Shin Yeongmin 2025-12-06 21:19:58 +09:00 committed by GitHub
parent 6339bdb5d2
commit 350f574d73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 1730 additions and 1 deletions

File diff suppressed because it is too large Load diff

View file

@ -213,6 +213,7 @@
<option value="he_IL">עברית</option>
<option value="it_IT">Italiano</option>
<option value="ja_JP">日本語</option>
<option value="ko_KR">한국어</option>
<option value="pl_PL">Polski</option>
<option value="ru_RU">Русский</option>
<option value="zh_CHT">繁體中文</option>

View file

@ -307,6 +307,7 @@ export abstract class Constants {
he_IL: "20210808180117-6v0mkxr",
it_IT: "20210808180117-6v0mkxr",
ja_JP: "20240530133126-axarxgx",
ko_KR: "20210808180117-6v0mkxr",
pl_PL: "20210808180117-6v0mkxr",
pt_BR: "20210808180117-6v0mkxr",
ru_RU: "20210808180117-6v0mkxr",

View file

@ -285,6 +285,7 @@ declare namespace Config {
| "he_IL"
| "it_IT"
| "ja_JP"
| "ko_KR"
| "pl_PL"
| "pt_BR"
| "ru_RU"

View file

@ -50,6 +50,7 @@ type DisplayName struct {
HeIL string `json:"he_IL"`
ItIT string `json:"it_IT"`
JaJP string `json:"ja_JP"`
KoKR string `json:"ko_KR"`
PlPL string `json:"pl_PL"`
PtBR string `json:"pt_BR"`
RuRU string `json:"ru_RU"`
@ -67,6 +68,7 @@ type Description struct {
HeIL string `json:"he_IL"`
ItIT string `json:"it_IT"`
JaJP string `json:"ja_JP"`
KoKR string `json:"ko_KR"`
PlPL string `json:"pl_PL"`
PtBR string `json:"pt_BR"`
RuRU string `json:"ru_RU"`
@ -84,6 +86,7 @@ type Readme struct {
HeIL string `json:"he_IL"`
ItIT string `json:"it_IT"`
JaJP string `json:"ja_JP"`
koKR string `json:"ko_KR"`
PlPL string `json:"pl_PL"`
PtBR string `json:"pt_BR"`
RuRU string `json:"ru_RU"`
@ -205,6 +208,10 @@ func getPreferredReadme(readme *Readme) string {
if "" != readme.JaJP {
ret = readme.JaJP
}
case "ko_KR":
if "" != readme.KoKR {
ret = readme.KoKR
}
case "pl_PL":
if "" != readme.PlPL {
ret = readme.PlPL
@ -275,6 +282,10 @@ func GetPreferredName(pkg *Package) string {
if "" != pkg.DisplayName.JaJP {
ret = pkg.DisplayName.JaJP
}
case "ko_KR":
if "" != pkg.DisplayName.KoKR {
ret = pkg.DisplayName.KoKR
}
case "pl_PL":
if "" != pkg.DisplayName.PlPL {
ret = pkg.DisplayName.PlPL
@ -345,6 +356,10 @@ func getPreferredDesc(desc *Description) string {
if "" != desc.JaJP {
ret = desc.JaJP
}
case "ko_KR":
if "" != desc.KoKR {
ret = desc.KoKR
}
case "pl_PL":
if "" != desc.PlPL {
ret = desc.PlPL

View file

@ -101,7 +101,7 @@ func Boot() {
readOnly := flag.String("readonly", "false", "read-only mode")
accessAuthCode := flag.String("accessAuthCode", "", "access auth code")
ssl := flag.Bool("ssl", false, "for https and wss")
lang := flag.String("lang", "", "ar_SA/de_DE/en_US/es_ES/fr_FR/he_IL/it_IT/ja_JP/pl_PL/pt_BR/ru_RU/zh_CHT/zh_CN")
lang := flag.String("lang", "", "ar_SA/de_DE/en_US/es_ES/fr_FR/he_IL/it_IT/ja_JP/ko_KR/pl_PL/pt_BR/ru_RU/zh_CHT/zh_CN")
mode := flag.String("mode", "prod", "dev/prod")
flag.Parse()