i18n on the web - deepseek translations2
This commit is contained in:
@@ -33,5 +33,14 @@ pub(crate) fn reject_cross_site(headers: &HeaderMap) -> Option<Response> {
|
||||
headers
|
||||
.get("sec-fetch-site")
|
||||
.is_some_and(|value| value == "cross-site")
|
||||
.then(|| (StatusCode::FORBIDDEN, "Cross-site form submission rejected").into_response())
|
||||
.then(|| {
|
||||
(
|
||||
StatusCode::FORBIDDEN,
|
||||
crate::tr!(
|
||||
crate::i18n::Locale::from_headers(headers),
|
||||
"services-cross-site-rejected"
|
||||
),
|
||||
)
|
||||
.into_response()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user