mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
face library i18n fixes
This commit is contained in:
parent
fa3f2404e8
commit
e923d3cc73
@ -9,7 +9,8 @@
|
|||||||
"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.",
|
"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",
|
"face": "Face Details",
|
||||||
"faceDesc": "Details of the tracked object that generated this face",
|
"faceDesc": "Details of the tracked object that generated this face",
|
||||||
"timestamp": "Timestamp"
|
"timestamp": "Timestamp",
|
||||||
|
"unknown": "Unknown"
|
||||||
},
|
},
|
||||||
"documentTitle": "Face Library - Frigate",
|
"documentTitle": "Face Library - Frigate",
|
||||||
"uploadFaceImage": {
|
"uploadFaceImage": {
|
||||||
|
|||||||
@ -644,7 +644,7 @@ function TrainingGrid({
|
|||||||
<div className="flex flex-col gap-1.5">
|
<div className="flex flex-col gap-1.5">
|
||||||
<div className="text-sm text-primary/40">{t("details.person")}</div>
|
<div className="text-sm text-primary/40">{t("details.person")}</div>
|
||||||
<div className="text-sm smart-capitalize">
|
<div className="text-sm smart-capitalize">
|
||||||
{selectedEvent?.sub_label ?? "Unknown"}
|
{selectedEvent?.sub_label ?? t("details.unknown")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{selectedEvent?.data.sub_label_score && (
|
{selectedEvent?.data.sub_label_score && (
|
||||||
@ -793,7 +793,7 @@ function FaceAttemptGroup({
|
|||||||
Person
|
Person
|
||||||
{event?.sub_label
|
{event?.sub_label
|
||||||
? `: ${event.sub_label} (${Math.round((event.data.sub_label_score || 0) * 100)}%)`
|
? `: ${event.sub_label} (${Math.round((event.data.sub_label_score || 0) * 100)}%)`
|
||||||
: ": Unknown"}
|
: ": " + t("details.unknown")}
|
||||||
</div>
|
</div>
|
||||||
{event && (
|
{event && (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
@ -968,7 +968,9 @@ function FaceAttempt({
|
|||||||
<div className="select-none p-2">
|
<div className="select-none p-2">
|
||||||
<div className="flex w-full flex-row items-center justify-between gap-2">
|
<div className="flex w-full flex-row items-center justify-between gap-2">
|
||||||
<div className="flex flex-col items-start text-xs text-primary-variant">
|
<div className="flex flex-col items-start text-xs text-primary-variant">
|
||||||
<div className="smart-capitalize">{data.name}</div>
|
<div className="smart-capitalize">
|
||||||
|
{data.name == "unknown" ? t("details.unknown") : data.name}
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"",
|
"",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user