A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
merge(template/i18n): merge
kumfo787948f94494
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.goindex 61cffcae..58ff3730 100644--- a/internal/controller/template_controller.go+++ b/internal/controller/template_controller.go@@ -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, siteIsiteInfo.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.TimeZonectx.HTML(code, tpl, data)