diff options
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 |
commit | 7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2 (patch) | |
tree | c019cfea77b346bb998a67ebc75ad91b2beb4cfb | |
parent | 34b461c1b291e701f3a396a9daa622bd4f27fc11 (diff) | |
download | chat-7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2.tar.gz chat-7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2.tar.bz2 chat-7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2.zip |
PLT-7 adding loc header
-rw-r--r-- | utils/i18n.go | 2 |
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 |