mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
fix: fix face library unknown label i18n wrong
This commit is contained in:
parent
7b5a1b7284
commit
d521deadf2
@ -164,7 +164,7 @@ export const ClassificationCard = forwardRef<
|
|||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="break-all smart-capitalize">
|
<div className="break-all smart-capitalize">
|
||||||
{data.name == "unknown"
|
{data.name.toLowerCase() == "unknown"
|
||||||
? t("details.unknown")
|
? t("details.unknown")
|
||||||
: data.name.toLowerCase() == "none"
|
: data.name.toLowerCase() == "none"
|
||||||
? t("details.none")
|
? t("details.none")
|
||||||
@ -336,7 +336,7 @@ export function GroupedClassificationCard({
|
|||||||
<ContentTitle className="flex items-center gap-2 font-normal capitalize">
|
<ContentTitle className="flex items-center gap-2 font-normal capitalize">
|
||||||
{classifiedEvent?.label && classifiedEvent.label !== "none"
|
{classifiedEvent?.label && classifiedEvent.label !== "none"
|
||||||
? classifiedEvent.label
|
? classifiedEvent.label
|
||||||
: t(noClassificationLabel)}
|
: t(noClassificationLabel, { ns: i18nLibrary })}
|
||||||
{classifiedEvent?.label &&
|
{classifiedEvent?.label &&
|
||||||
classifiedEvent.label !== "none" &&
|
classifiedEvent.label !== "none" &&
|
||||||
classifiedEvent.score !== undefined && (
|
classifiedEvent.score !== undefined && (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user