🌐 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

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