translations fixed to be safe

This commit is contained in:
Priec
2026-08-15 12:44:36 +02:00
parent 6ef2694fef
commit 794efac594
26 changed files with 746 additions and 418 deletions

View File

@@ -454,7 +454,14 @@ pub(crate) async fn delete_table(
response.headers_mut().insert("hx-redirect", location);
response
}
Err(_) => (StatusCode::INTERNAL_SERVER_ERROR, "Invalid redirect").into_response(),
Err(_) => (
StatusCode::INTERNAL_SERVER_ERROR,
Html(tr!(
Locale::from_headers(&headers),
"ui-err-invalid-redirect"
)),
)
.into_response(),
}
}
Ok(response) => {