fix: fix delete zone type i18n (#21894)

This commit is contained in:
GuoQing Liu 2026-02-05 23:38:09 +08:00 committed by GitHub
parent c9ba851f0d
commit c9055ea941
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -468,6 +468,11 @@
}
},
"polygonDrawing": {
"type": {
"zone": "zone",
"motion_mask": "motion mask",
"object_mask": "object mask"
},
"removeLastPoint": "Remove last point",
"reset": {
"label": "Clear all points"

View File

@ -283,7 +283,10 @@ export default function PolygonItem({
<Trans
ns="views/settings"
values={{
type: polygon.type.replace("_", " "),
type: t(
`masksAndZones.form.polygonDrawing.type.${polygon.type}`,
{ ns: "views/settings" },
),
name: polygon.friendly_name ?? polygon.name,
}}
>