Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2025-09-04 10:30:06 +08:00
commit 2d53c81026

View file

@ -51,7 +51,7 @@ type DisplayName struct {
ItIT string `json:"it_IT"` ItIT string `json:"it_IT"`
JaJP string `json:"ja_JP"` JaJP string `json:"ja_JP"`
PlPL string `json:"pl_PL"` PlPL string `json:"pl_PL"`
ptBR string `json:"pt_BR"` PtBR string `json:"pt_BR"`
RuRU string `json:"ru_RU"` RuRU string `json:"ru_RU"`
ZhCHT string `json:"zh_CHT"` ZhCHT string `json:"zh_CHT"`
ZhCN string `json:"zh_CN"` ZhCN string `json:"zh_CN"`
@ -68,7 +68,7 @@ type Description struct {
ItIT string `json:"it_IT"` ItIT string `json:"it_IT"`
JaJP string `json:"ja_JP"` JaJP string `json:"ja_JP"`
PlPL string `json:"pl_PL"` PlPL string `json:"pl_PL"`
ptBR string `json:"pt_BR"` PtBR string `json:"pt_BR"`
RuRU string `json:"ru_RU"` RuRU string `json:"ru_RU"`
ZhCHT string `json:"zh_CHT"` ZhCHT string `json:"zh_CHT"`
ZhCN string `json:"zh_CN"` ZhCN string `json:"zh_CN"`
@ -85,7 +85,7 @@ type Readme struct {
ItIT string `json:"it_IT"` ItIT string `json:"it_IT"`
JaJP string `json:"ja_JP"` JaJP string `json:"ja_JP"`
PlPL string `json:"pl_PL"` PlPL string `json:"pl_PL"`
ptBR string `json:"pt_BR"` PtBR string `json:"pt_BR"`
RuRU string `json:"ru_RU"` RuRU string `json:"ru_RU"`
ZhCHT string `json:"zh_CHT"` ZhCHT string `json:"zh_CHT"`
ZhCN string `json:"zh_CN"` ZhCN string `json:"zh_CN"`
@ -209,8 +209,8 @@ func getPreferredReadme(readme *Readme) string {
ret = readme.PlPL ret = readme.PlPL
} }
case "pt_BR": case "pt_BR":
if "" != readme.ptBR { if "" != readme.PtBR {
ret = readme.ptBR ret = readme.PtBR
} }
case "ru_RU": case "ru_RU":
if "" != readme.RuRU { if "" != readme.RuRU {
@ -279,8 +279,8 @@ func GetPreferredName(pkg *Package) string {
ret = pkg.DisplayName.PlPL ret = pkg.DisplayName.PlPL
} }
case "pt_BR": case "pt_BR":
if "" != pkg.DisplayName.ptBR { if "" != pkg.DisplayName.PtBR {
ret = pkg.DisplayName.ptBR ret = pkg.DisplayName.PtBR
} }
case "ru_RU": case "ru_RU":
if "" != pkg.DisplayName.RuRU { if "" != pkg.DisplayName.RuRU {
@ -349,8 +349,8 @@ func getPreferredDesc(desc *Description) string {
ret = desc.PlPL ret = desc.PlPL
} }
case "pt_BR": case "pt_BR":
if "" != desc.ptBR { if "" != desc.PtBR {
ret = desc.ptBR ret = desc.PtBR
} }
case "ru_RU": case "ru_RU":
if "" != desc.RuRU { if "" != desc.RuRU {