summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/api.go1
-rw-r--r--api/context.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/api/api.go b/api/api.go
index 3b35a08fa..d7bf70790 100644
--- a/api/api.go
+++ b/api/api.go
@@ -24,6 +24,7 @@ func NewServerTemplatePage(templateName string) *ServerTemplatePage {
TemplateName: templateName,
Props: make(map[string]string),
ClientCfg: utils.ClientCfg,
+ Locale: model.DEFAULT_LOCALE,
}
}
diff --git a/api/context.go b/api/context.go
index a3311a971..6811b2829 100644
--- a/api/context.go
+++ b/api/context.go
@@ -43,6 +43,7 @@ type Page struct {
Channel *model.Channel
PostID string
SessionTokenIndex int64
+ Locale string
}
func ApiAppHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler {