mirror of https://gitee.com/answerdev/answer.git
fix(template/i18n): i18n test chinese cancelled
This commit is contained in:
parent
d8b50b482f
commit
6afd3d44b7
|
@ -3,7 +3,6 @@ package controller
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/segmentfault/pacman/i18n"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"regexp"
|
||||
|
@ -308,7 +307,7 @@ func (tc *TemplateController) html(ctx *gin.Context, code int, tpl string, siteI
|
|||
data["siteinfo"] = siteInfo
|
||||
data["scriptPath"] = tc.scriptPath
|
||||
data["cssPath"] = tc.cssPath
|
||||
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