mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-13 03:50:07 +08:00
fix: Fixed the issue where application labels were not displayed after updating. (#7834)
This commit is contained in:
parent
89f969ec6e
commit
ab932ae154
@ -129,8 +129,14 @@ func (a AppService) GetAppTags(ctx *gin.Context) ([]response.TagDTO, error) {
|
|||||||
}
|
}
|
||||||
var translations = make(map[string]string)
|
var translations = make(map[string]string)
|
||||||
_ = json.Unmarshal([]byte(tag.Translations), &translations)
|
_ = json.Unmarshal([]byte(tag.Translations), &translations)
|
||||||
if name, ok := translations[lang]; ok {
|
if name, ok := translations[lang]; ok && name != "" {
|
||||||
tagDTO.Name = name
|
tagDTO.Name = name
|
||||||
|
} else {
|
||||||
|
if lang == "zh" || lang == "zh-Hant" {
|
||||||
|
tagDTO.Name = tag.Name
|
||||||
|
} else {
|
||||||
|
tagDTO.Name = tag.Key
|
||||||
|
}
|
||||||
}
|
}
|
||||||
res = append(res, tagDTO)
|
res = append(res, tagDTO)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user