diff --git a/web/public/locales/en/views/faceLibrary.json b/web/public/locales/en/views/faceLibrary.json index 7f4c3a5b9..3a0804511 100644 --- a/web/public/locales/en/views/faceLibrary.json +++ b/web/public/locales/en/views/faceLibrary.json @@ -5,7 +5,6 @@ "invalidName": "Invalid name. Names can only include letters, numbers, spaces, apostrophes, underscores, and hyphens." }, "details": { - "person": "Person", "subLabelScore": "Sub Label Score", "scoreInfo": "The sub label score is the weighted score for all of the recognized face confidences, so this may differ from the score shown on the snapshot.", "face": "Face Details", diff --git a/web/src/components/card/ClassificationCard.tsx b/web/src/components/card/ClassificationCard.tsx index e0f1385cc..5153b6d71 100644 --- a/web/src/components/card/ClassificationCard.tsx +++ b/web/src/components/card/ClassificationCard.tsx @@ -14,6 +14,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip"; import { LuSearch } from "react-icons/lu"; import { TooltipPortal } from "@radix-ui/react-tooltip"; import { useNavigate } from "react-router-dom"; +import { getTranslatedLabel } from "@/utils/i18n"; type ClassificationCardProps = { className?: string; @@ -133,6 +134,7 @@ type GroupedClassificationCardProps = { threshold?: ClassificationThreshold; selectedItems: string[]; i18nLibrary: string; + objectType: string; onClick: (data: ClassificationItemData | undefined) => void; onSelectEvent: (event: Event) => void; children?: (data: ClassificationItemData) => React.ReactNode; @@ -143,6 +145,7 @@ export function GroupedClassificationCard({ threshold, selectedItems, i18nLibrary, + objectType, onClick, onSelectEvent, children, @@ -190,7 +193,7 @@ export function GroupedClassificationCard({