From dea84b1892be42e8d42db8b67862b56b38c0da75 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Thu, 21 Jan 2016 13:54:21 -0600 Subject: PLT-7 Adding react-intl libs --- api/api.go | 1 + api/context.go | 1 + 2 files changed, 2 insertions(+) (limited to 'api') 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 { -- cgit v1.2.3-1-g7c22