[NO-TICKET] Remove unused function attributes (#16878)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4a60cdaf4f
Коммит
cda69d4dd7
@@ -101,7 +101,7 @@ func GetUserTranslations(locale string) i18n.TranslateFunc {
|
||||
return translations
|
||||
}
|
||||
|
||||
func GetTranslationsAndLocale(w http.ResponseWriter, r *http.Request) (i18n.TranslateFunc, string) {
|
||||
func GetTranslationsAndLocale(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]
|
||||
// This is for checking against locales like en, es
|
||||
|
||||
Ссылка в новой задаче
Block a user