face library i18n fixes

This commit is contained in:
Josh Hawkins 2025-05-08 08:44:32 -05:00
parent 52d94231c7
commit fa3f2404e8
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"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",
"faceDesc": "Details for the face and associated object",
"faceDesc": "Details of the tracked object that generated this face",
"timestamp": "Timestamp"
},
"documentTitle": "Face Library - Frigate",
@ -16,6 +16,7 @@
"title": "Upload Face Image",
"desc": "Upload an image to scan for faces and include for {{pageToggle}}"
},
"collections": "Collections",
"createFaceLibrary": {
"title": "Create Collection",
"desc": "Create a new collection",

View File

@ -443,7 +443,7 @@ function LibrarySelector({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button className="flex justify-between smart-capitalize">
{pageToggle || t("selectFace")}
{pageToggle == "train" ? t("train.title") : pageToggle}
<span className="ml-2 text-primary-variant">
({(pageToggle && faceData?.[pageToggle]?.length) || 0})
</span>
@ -467,7 +467,7 @@ function LibrarySelector({
<>
<DropdownMenuSeparator />
<div className="mb-1 ml-1.5 text-xs text-secondary-foreground">
Collections
{t("collections")}
</div>
</>
)}