From 847754b3d76924a0aa43776bd1e8ae11b56c651b Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Fri, 22 Jan 2016 10:38:49 -0600 Subject: PLT-7 adding loc header --- utils/i18n.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/i18n.go') diff --git a/utils/i18n.go b/utils/i18n.go index 2800942ac..05154bd92 100644 --- a/utils/i18n.go +++ b/utils/i18n.go @@ -70,7 +70,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] if locales[headerLocale] != "" { - translations, _ := i18n.Tfunc(locale) + translations, _ := i18n.Tfunc(headerLocale) return translations, headerLocale } -- cgit v1.2.3-1-g7c22