mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
i18n keys
This commit is contained in:
parent
75ed98a565
commit
aff4563fcc
@ -98,6 +98,10 @@
|
|||||||
"title": "Confirm Delete",
|
"title": "Confirm Delete",
|
||||||
"desc": {
|
"desc": {
|
||||||
"selected": "Are you sure you want to delete all recorded video associated with this review item?<br /><br />Hold the <em>Shift</em> key to bypass this dialog in the future."
|
"selected": "Are you sure you want to delete all recorded video associated with this review item?<br /><br />Hold the <em>Shift</em> key to bypass this dialog in the future."
|
||||||
|
},
|
||||||
|
"toast": {
|
||||||
|
"success": "Video footage associated with the selected review items has been deleted successfully.",
|
||||||
|
"error": "Failed to delete: {{error}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
|
|||||||
@ -47,7 +47,7 @@ export default function ReviewActionGroup({
|
|||||||
.post(`reviews/delete`, { ids: selectedReviews })
|
.post(`reviews/delete`, { ids: selectedReviews })
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
if (resp.status === 200) {
|
if (resp.status === 200) {
|
||||||
toast.success("Reviews deleted successfully", {
|
toast.success(t("recording.confirmDelete.toast.success"), {
|
||||||
position: "top-center",
|
position: "top-center",
|
||||||
});
|
});
|
||||||
setSelectedReviews([]);
|
setSelectedReviews([]);
|
||||||
@ -59,11 +59,16 @@ export default function ReviewActionGroup({
|
|||||||
error.response?.data?.message ||
|
error.response?.data?.message ||
|
||||||
error.response?.data?.detail ||
|
error.response?.data?.detail ||
|
||||||
"Unknown error";
|
"Unknown error";
|
||||||
toast.error(`Failed to delete reviews: ${errorMessage}`, {
|
toast.error(
|
||||||
|
t("recording.confirmDelete.toast.error", {
|
||||||
|
error: errorMessage,
|
||||||
|
}),
|
||||||
|
{
|
||||||
position: "top-center",
|
position: "top-center",
|
||||||
|
},
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
}, [selectedReviews, setSelectedReviews, pullLatestData, t]);
|
||||||
}, [selectedReviews, setSelectedReviews, pullLatestData]);
|
|
||||||
|
|
||||||
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
|
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
|
||||||
const [bypassDialog, setBypassDialog] = useState(false);
|
const [bypassDialog, setBypassDialog] = useState(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user