Add missing i18n keys (#17861)

This commit is contained in:
Josh Hawkins 2025-04-22 20:46:05 -05:00 committed by GitHub
parent f9b2db4405
commit 78c1694451
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 23 additions and 7 deletions

View File

@ -31,5 +31,6 @@
"label": "View new review items",
"button": "New Items To Review"
},
"selected": "selected",
"camera": "Camera"
}

View File

@ -136,6 +136,7 @@
"desc": "Frigate can recognize license plates on vehicles and automatically add the detected characters to the recognized_license_plate field or a known name as a sub_label to objects that are of type car. A common use case may be to read the license plates of cars pulling into a driveway or cars passing by on a street.",
"readTheDocumentation": "Read the Documentation"
},
"restart_required": "Restart required (Classification settings changed)",
"toast": {
"success": "Classification settings have been saved. Restart Frigate to apply your changes.",
"error": "Failed to save config changes: {{errorMessage}}"
@ -178,6 +179,7 @@
"filter": {
"all": "All Masks and Zones"
},
"restart_required": "Restart required (masks/zones changed)",
"toast": {
"success": {
"copyCoordinates": "Copied coordinates for {{polyName}} to clipboard."
@ -583,6 +585,7 @@
"loadingAvailableModels": "Loading available models...",
"modelSelect": "Your available models on Frigate+ can be selected here. Note that only models compatible with your current detector configuration can be selected."
},
"restart_required": "Restart required (Frigate+ model changed)",
"toast": {
"success": "Frigate+ settings have been saved. Restart Frigate to apply changes.",
"error": "Failed to save config changes: {{errorMessage}}"

View File

@ -153,11 +153,17 @@
"title": "Enrichments",
"infPerSecond": "Inferences Per Second",
"embeddings": {
"image_embedding": "Image Embedding",
"text_embedding": "Text Embedding",
"face_recognition": "Face Recognition",
"plate_recognition": "Plate Recognition",
"image_embedding_speed": "Image Embedding Speed",
"face_embedding_speed": "Face Embedding Speed",
"face_recognition_speed": "Face Recognition Speed",
"plate_recognition_speed": "Plate Recognition Speed",
"text_embedding_speed": "Text Embedding Speed"
"text_embedding_speed": "Text Embedding Speed",
"yolov9_plate_detection_speed": "YOLOv9 Plate Detection Speed",
"yolov9_plate_detection": "YOLOv9 Plate Detection"
}
}
}

View File

@ -95,7 +95,13 @@ export default function ReviewActionGroup({
<div className="absolute inset-x-2 inset-y-0 flex items-center justify-between gap-2 bg-background py-2 md:left-auto">
<div className="mx-1 flex items-center justify-center text-sm text-muted-foreground">
<div className="p-1">{`${selectedReviews.length} selected`}</div>
<div className="p-1">
{selectedReviews.length}{" "}
{t("selected", {
ns: "views/events",
count: selectedReviews.length,
})}
</div>
<div className="p-1">{"|"}</div>
<div
className="cursor-pointer p-2 text-primary hover:rounded-lg hover:bg-secondary"

View File

@ -222,7 +222,7 @@ export default function PolygonItem({
saveToConfig(polygon);
addMessage(
"masks_zones",
"Restart required (masks/zones changed)",
t("masksAndZones.restart_required"),
undefined,
"masks_zones",
);

View File

@ -165,7 +165,7 @@ export default function ClassificationSettingsView({
.finally(() => {
addMessage(
"search_settings_restart",
`Restart required (Classification settings changed)`,
t("classification.restart_required"),
undefined,
"search_settings",
);

View File

@ -158,7 +158,7 @@ export default function FrigatePlusSettingsView({
.finally(() => {
addMessage(
"plus_restart",
"Restart required (Frigate+ model changed)",
t("frigatePlus.restart_required"),
undefined,
"plus_restart",
);

View File

@ -194,11 +194,11 @@ export default function MasksAndZonesView({
setUnsavedChanges(false);
addMessage(
"masks_zones",
"Restart required (masks/zones changed)",
t("masksAndZones.restart_required"),
undefined,
"masks_zones",
);
}, [editingPolygons, setUnsavedChanges, addMessage]);
}, [t, editingPolygons, setUnsavedChanges, addMessage]);
useEffect(() => {
if (isLoading) {