Этот коммит содержится в:
Chris
2018-03-07 12:36:40 -06:00
коммит произвёл GitHub
родитель fd9ee780ed
Коммит e8943936c5
35 изменённых файлов: 30 добавлений и 665 удалений

Просмотреть файл

@@ -91,11 +91,6 @@ func GetUserTranslations(locale string) i18n.TranslateFunc {
return translations
}
func SetTranslations(locale string) i18n.TranslateFunc {
translations := TfuncWithFallback(locale)
return translations
}
func GetTranslationsAndLocale(w http.ResponseWriter, r *http.Request) (i18n.TranslateFunc, string) {
// This is for checking against locales like pt_BR or zn_CN
headerLocaleFull := strings.Split(r.Header.Get("Accept-Language"), ",")[0]