summaryrefslogtreecommitdiffstats
path: root/utils/i18n.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-22 10:38:14 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-22 10:38:14 -0600
commit7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2 (patch)
treec019cfea77b346bb998a67ebc75ad91b2beb4cfb /utils/i18n.go
parent34b461c1b291e701f3a396a9daa622bd4f27fc11 (diff)
downloadchat-7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2.tar.gz
chat-7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2.tar.bz2
chat-7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2.zip
PLT-7 adding loc header
Diffstat (limited to 'utils/i18n.go')
-rw-r--r--utils/i18n.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/i18n.go b/utils/i18n.go
index 47796da8d..2800942ac 100644
--- a/utils/i18n.go
+++ b/utils/i18n.go
@@ -68,7 +68,7 @@ func SetTranslations(locale string) i18n.TranslateFunc {
}
func GetTranslationsAndLocale(w http.ResponseWriter, r *http.Request) (i18n.TranslateFunc, string) {
- headerLocale = strings.Split(strings.Split(r.Header.Get("Accept-Language"), ",")[0], "-")[0]
+ headerLocale := strings.Split(strings.Split(r.Header.Get("Accept-Language"), ",")[0], "-")[0]
if locales[headerLocale] != "" {
translations, _ := i18n.Tfunc(locale)
return translations, headerLocale