From d521deadf2794f29cfe36fcafd3782c3b86e70e9 Mon Sep 17 00:00:00 2001 From: ZhaiSoul <842607283@qq.com> Date: Mon, 12 Jan 2026 14:34:59 +0800 Subject: [PATCH] fix: fix face library unknown label i18n wrong --- web/src/components/card/ClassificationCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/card/ClassificationCard.tsx b/web/src/components/card/ClassificationCard.tsx index ffd28a0d0..6581d109a 100644 --- a/web/src/components/card/ClassificationCard.tsx +++ b/web/src/components/card/ClassificationCard.tsx @@ -164,7 +164,7 @@ export const ClassificationCard = forwardRef< )} >
- {data.name == "unknown" + {data.name.toLowerCase() == "unknown" ? t("details.unknown") : data.name.toLowerCase() == "none" ? t("details.none") @@ -336,7 +336,7 @@ export function GroupedClassificationCard({ {classifiedEvent?.label && classifiedEvent.label !== "none" ? classifiedEvent.label - : t(noClassificationLabel)} + : t(noClassificationLabel, { ns: i18nLibrary })} {classifiedEvent?.label && classifiedEvent.label !== "none" && classifiedEvent.score !== undefined && (