feat: 配置管理中增加本地化切换

This commit is contained in:
zhanzhenping 2024-07-09 17:38:24 +08:00
parent 0e92e0e2b4
commit 071542726b

View File

@ -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 {