chore: remove frigate+ label i18n

This commit is contained in:
ZhaiSoul 2025-04-19 12:39:04 +00:00
parent 296510ca4d
commit a914c556e5

View File

@ -953,9 +953,7 @@ function ObjectDetailsTab({
description={ description={
search.label search.label
? t("details.editSubLabel.desc", { ? t("details.editSubLabel.desc", {
label: t(search.label, { label: search.label,
ns: "objects",
}),
}) })
: t("details.editSubLabel.descNoLabel") : t("details.editSubLabel.descNoLabel")
} }
@ -970,9 +968,7 @@ function ObjectDetailsTab({
description={ description={
search.label search.label
? t("details.editLPR.desc", { ? t("details.editLPR.desc", {
label: t(search.label, { label: search.label,
ns: "objects",
}),
}) })
: t("details.editLPR.descNoLabel") : t("details.editLPR.descNoLabel")
} }
@ -1118,20 +1114,10 @@ export function ObjectSnapshotTab({
> >
{/^[aeiou]/i.test(search?.label || "") {/^[aeiou]/i.test(search?.label || "")
? t("explore.plus.review.true.true_other", { ? t("explore.plus.review.true.true_other", {
label: t( label: search?.label,
search?.label
.replace(" ", "_")
.toLowerCase(),
{ ns: "objects" },
),
}) })
: t("explore.plus.review.true.true_one", { : t("explore.plus.review.true.true_one", {
label: t( label: search?.label,
search?.label
.replace(" ", "_")
.toLowerCase(),
{ ns: "objects" },
),
})} })}
</Button> </Button>
<Button <Button
@ -1145,20 +1131,10 @@ export function ObjectSnapshotTab({
> >
{/^[aeiou]/i.test(search?.label || "") {/^[aeiou]/i.test(search?.label || "")
? t("explore.plus.review.false.false_other", { ? t("explore.plus.review.false.false_other", {
label: t( label: search?.label,
search?.label
.replace(" ", "_")
.toLowerCase(),
{ ns: "objects" },
),
}) })
: t("explore.plus.review.false.false_one", { : t("explore.plus.review.false.false_one", {
label: t( label: search?.label,
search?.label
.replace(" ", "_")
.toLowerCase(),
{ ns: "objects" },
),
})} })}
</Button> </Button>
</> </>