diff options
Diffstat (limited to 'utils')
-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 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 } |