fix(template/i18n): i18n test chinese cancelled

This commit is contained in:
kumfo 2022-12-06 12:18:42 +08:00
parent d8b50b482f
commit 6afd3d44b7
1 changed files with 1 additions and 2 deletions

View File

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