From 7e9b6dfcd0d14dc8edf45be7c8f378a071aee7b2 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Fri, 22 Jan 2016 10:38:14 -0600 Subject: PLT-7 adding loc header --- utils/i18n.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22