code: func GetCurrentLocale(req *http.Request) string {
  	locale := l10n.Global
  	if cookie, err := req.Cookie("locale"); err == nil {
  		locale = cookie.Value
  	}
  	return locale
  }
docs: // GetCurrentLocale get current locale from request