fix: fix delete zone type i18n (#21894)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions

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": { "polygonDrawing": {
"type": {
"zone": "zone",
"motion_mask": "motion mask",
"object_mask": "object mask"
},
"removeLastPoint": "Remove last point", "removeLastPoint": "Remove last point",
"reset": { "reset": {
"label": "Clear all points" "label": "Clear all points"

View File

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