chore: add inputWithTags i18n

This commit is contained in:
ZhaiSoul 2025-03-15 22:30:49 +08:00
parent be2a0130bc
commit e5a7324231
3 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,7 @@
"filterInformation": "Filter information",
"filterActive": "Filters active"
},
"trackedObjectId": "Tracked Object ID",
"filter": {
"label": {
"cameras": "Cameras",

View File

@ -9,6 +9,7 @@
"filterInformation": "筛选信息",
"filterActive": "筛选器已激活"
},
"trackedObjectId": "跟踪对象 ID",
"filter": {
"label": {
"cameras": "摄像机",

View File

@ -824,9 +824,11 @@ export default function InputWithTags({
className="inline-flex items-center whitespace-nowrap rounded-full bg-green-100 px-2 py-0.5 text-sm capitalize text-green-800"
>
{filterType === "event_id"
? "Tracked Object ID"
? t("trackedObjectId")
: filterType === "is_submitted"
? "Submitted to Frigate+"
? t("features.submittedToFrigatePlus.label", {
ns: "components/filter",
})
: t("filter.label." + filterType)}
: {formatFilterValues(filterType, filterValues)}
<button