|
@@ -135,6 +135,10 @@ func getPreferredReadme(readme *Readme) string {
|
|
|
if "" != readme.ZhCN {
|
|
|
ret = readme.ZhCN
|
|
|
}
|
|
|
+ case "zh_CHT":
|
|
|
+ if "" != readme.ZhCN {
|
|
|
+ ret = readme.ZhCN
|
|
|
+ }
|
|
|
case "en_US":
|
|
|
if "" != readme.EnUS {
|
|
|
ret = readme.EnUS
|
|
@@ -158,6 +162,10 @@ func getPreferredName(pkg *Package) string {
|
|
|
if "" != pkg.DisplayName.ZhCN {
|
|
|
ret = pkg.DisplayName.ZhCN
|
|
|
}
|
|
|
+ case "zh_CHT":
|
|
|
+ if "" != pkg.DisplayName.ZhCN {
|
|
|
+ ret = pkg.DisplayName.ZhCN
|
|
|
+ }
|
|
|
case "en_US":
|
|
|
if "" != pkg.DisplayName.EnUS {
|
|
|
ret = pkg.DisplayName.EnUS
|
|
@@ -181,6 +189,10 @@ func getPreferredDesc(desc *Description) string {
|
|
|
if "" != desc.ZhCN {
|
|
|
ret = desc.ZhCN
|
|
|
}
|
|
|
+ case "zh_CHT":
|
|
|
+ if "" != desc.ZhCN {
|
|
|
+ ret = desc.ZhCN
|
|
|
+ }
|
|
|
case "en_US":
|
|
|
if "" != desc.EnUS {
|
|
|
ret = desc.EnUS
|