Skip to content

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.

fix(template/render): fix template footer / time

kumfo5bf63452f72d
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go
index b4a43d98..5bd19710 100644
--- a/internal/controller/template_controller.go
+++ b/internal/controller/template_controller.go
@@ -3,7 +3,6 @@ package controller
import (
"encoding/json"
"fmt"
- "github.com/segmentfault/pacman/i18n"
"html/template"
"net/http"
"regexp"
@@ -319,7 +318,7 @@ func (tc *TemplateController) html(ctx *gin.Context, code int, tpl string, siteI
siteInfo.Description = siteInfo.General.Description
}
data["description"] = siteInfo.Description
- data["language"] = i18n.LanguageChinese //handler.GetLang(ctx)
+ data["language"] = handler.GetLang(ctx)
data["timezone"] = siteInfo.Interface.TimeZone
ctx.HTML(code, tpl, data)