mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 19:53:51 +08:00
feat: 配置管理中增加本地化切换
This commit is contained in:
parent
0e92e0e2b4
commit
071542726b
@ -3,7 +3,6 @@ package controllers
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
"time"
|
||||
@ -218,7 +217,6 @@ func (c *BaseController) SetLang() {
|
||||
}
|
||||
if len(lang) == 0 ||
|
||||
!i18n.IsExist(lang) {
|
||||
fmt.Println("c.Data[item.OptionName]", c.Data["language"])
|
||||
if c.Data["language"] != nil {
|
||||
lang = c.Data["language"].(string)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user