diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-21 13:54:21 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-21 13:54:21 -0600 |
commit | dea84b1892be42e8d42db8b67862b56b38c0da75 (patch) | |
tree | 2427c16e886a29870b685a90ea7e5173a217875d /api | |
parent | ff9bcce42d14c3b26baf2dab2a1574a3848ea93b (diff) | |
download | chat-dea84b1892be42e8d42db8b67862b56b38c0da75.tar.gz chat-dea84b1892be42e8d42db8b67862b56b38c0da75.tar.bz2 chat-dea84b1892be42e8d42db8b67862b56b38c0da75.zip |
PLT-7 Adding react-intl libs
Diffstat (limited to 'api')
-rw-r--r-- | api/api.go | 1 | ||||
-rw-r--r-- | api/context.go | 1 |
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 { |