masks and zones i18n fixes

This commit is contained in:
Josh Hawkins 2025-05-16 14:22:12 -05:00
parent 066fff81f7
commit 9dc1faadb9
2 changed files with 13 additions and 3 deletions

View File

@ -191,6 +191,8 @@
"copyCoordinatesFailed": "Could not copy coordinates to clipboard."
}
},
"motionMaskLabel": "Motion Mask {{number}}",
"objectMaskLabel": "Object Mask {{number}} ({{label}})",
"form": {
"zoneName": {
"error": {

View File

@ -271,7 +271,9 @@ export default function MasksAndZonesView({
type: "motion_mask" as PolygonType,
typeIndex: index,
camera: cameraConfig.name,
name: `Motion Mask ${index + 1}`,
name: t("masksAndZones.motionMaskLabel", {
number: index + 1,
}),
objects: [],
points: interpolatePoints(
parseCoordinates(maskData),
@ -295,7 +297,10 @@ export default function MasksAndZonesView({
type: "object_mask" as PolygonType,
typeIndex: index,
camera: cameraConfig.name,
name: `Object Mask ${index + 1} (all objects)`,
name: t("masksAndZones.objectMaskLabel", {
number: index + 1,
label: t("masksAndZones.zones.allObjects"),
}),
objects: [],
points: interpolatePoints(
parseCoordinates(maskData),
@ -322,7 +327,10 @@ export default function MasksAndZonesView({
type: "object_mask" as PolygonType,
typeIndex: subIndex,
camera: cameraConfig.name,
name: `Object Mask ${globalObjectMasksCount + index + 1} (${objectName})`,
name: t("masksAndZones.objectMaskLabel", {
number: globalObjectMasksCount + index + 1,
label: t(objectName, { ns: "objects" }),
}),
objects: [objectName],
points: interpolatePoints(
parseCoordinates(maskItem),