mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 03:06:10 +01:00
🎨 多语言配置缺失项使用对应英文配置项补齐 https://github.com/siyuan-note/siyuan/issues/5322
This commit is contained in:
parent
e30782d6f9
commit
ad2510dfb5
2 changed files with 8 additions and 2 deletions
|
|
@ -480,8 +480,13 @@ func (conf *AppConf) GetClosedBoxes() (ret []*Box) {
|
|||
return
|
||||
}
|
||||
|
||||
func (conf *AppConf) Language(num int) string {
|
||||
return langs[conf.Lang][num]
|
||||
func (conf *AppConf) Language(num int) (ret string) {
|
||||
ret = langs[conf.Lang][num]
|
||||
if "" != ret {
|
||||
return
|
||||
}
|
||||
ret = langs["en_US"][num]
|
||||
return
|
||||
}
|
||||
|
||||
func InitBoxes() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue