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