feat: 如果没有中文翻译就使用英文

This commit is contained in:
tiglog 2023-10-23 11:04:29 +08:00
parent 11e8ea904c
commit 68424f4755

View File

@ -2348,6 +2348,9 @@ type UnicodeHelper struct {
func (uh *UnicodeHelper) GetRange(code int) string { func (uh *UnicodeHelper) GetRange(code int) string {
for _, bl := range uh.blocks { for _, bl := range uh.blocks {
if code >= bl.Start && code <= bl.End { if code >= bl.Start && code <= bl.End {
if bl.Zh == "" {
return bl.En
}
return bl.Zh return bl.Zh
} }
} }