* fix face library i18n

* Docs updates
This commit is contained in:
Josh Hawkins
2025-05-14 21:54:15 -05:00
committed by GitHub
parent 7612c3ece0
commit c15fbee537
4 changed files with 37 additions and 17 deletions

View File

@@ -69,6 +69,7 @@
"maxSize": "Max size: {{size}}MB"
},
"nofaces": "No faces available",
"pixels": "{{area}}px",
"readTheDocs": "Read the documentation",
"trainFaceAs": "Train Face as:",
"trainFace": "Train Face",

View File

@@ -791,7 +791,7 @@ function FaceAttemptGroup({
<div className="flex flex-row justify-between">
<div className="flex flex-col gap-1">
<div className="select-none smart-capitalize">
Person
{t("details.person")}
{event?.sub_label
? `: ${event.sub_label} (${Math.round((event.data.sub_label_score || 0) * 100)}%)`
: ": " + t("details.unknown")}
@@ -974,7 +974,7 @@ function FaceAttempt({
/>
{imageArea != undefined && (
<div className="absolute bottom-1 right-1 z-10 rounded-lg bg-black/50 px-2 py-1 text-xs text-white">
{imageArea}px
{t("pixels", { area: imageArea })}
</div>
)}
</div>