mirror of https://gitee.com/answerdev/answer.git
merge(template/i18n): merge
This commit is contained in:
parent
66e420a72d
commit
787948f944
|
@ -9,8 +9,6 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/segmentfault/pacman/i18n"
|
||||
|
||||
"github.com/answerdev/answer/internal/base/handler"
|
||||
templaterender "github.com/answerdev/answer/internal/controller/template_render"
|
||||
"github.com/answerdev/answer/internal/schema"
|
||||
|
@ -326,8 +324,7 @@ func (tc *TemplateController) html(ctx *gin.Context, code int, tpl string, siteI
|
|||
siteInfo.Description = siteInfo.General.Description
|
||||
}
|
||||
data["description"] = siteInfo.Description
|
||||
// data["language"] = handler.GetLang(ctx)
|
||||
data["language"] = i18n.LanguageChinese //handler.GetLang(ctx)
|
||||
data["language"] = handler.GetLang(ctx)
|
||||
data["timezone"] = siteInfo.Interface.TimeZone
|
||||
|
||||
ctx.HTML(code, tpl, data)
|
||||
|
|
Loading…
Reference in New Issue