feat: 如果没有中文翻译就使用英文
This commit is contained in:
parent
11e8ea904c
commit
68424f4755
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user