i18n on the web - deepseek translations2

This commit is contained in:
Priec
2026-08-14 20:52:31 +02:00
parent 8f1bfdbe0c
commit 967335d4ca
16 changed files with 110 additions and 33 deletions

View File

@@ -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()
})
}