fix: fix enrichments pages i18n keys wrong

This commit is contained in:
ZhaiSoul 2025-04-16 04:54:19 +00:00
parent 263acc0ba6
commit d71637327b
2 changed files with 6 additions and 2 deletions

View File

@ -150,6 +150,7 @@
"embeddings": {
"image_embedding_speed": "Image Embedding Speed",
"face_embedding_speed": "Face Embedding Speed",
"face_recognition_speed": "Face Recognition Speed",
"plate_recognition_speed": "Plate Recognition Speed",
"text_embedding_speed": "Text Embedding Speed"
}

View File

@ -77,7 +77,10 @@ export default function EnrichmentMetrics({
const key = rawKey.replaceAll("_", " ");
if (!(key in series)) {
series[key] = { name: t("features.embeddings." + rawKey), data: [] };
series[key] = {
name: t("enrichments.embeddings." + rawKey),
data: [],
};
}
series[key].data.push({ x: statsIdx + 1, y: stat });
@ -90,7 +93,7 @@ export default function EnrichmentMetrics({
<>
<div className="scrollbar-container mt-4 flex size-full flex-col overflow-y-auto">
<div className="text-sm font-medium text-muted-foreground">
{t("features.title")}
{t("enrichments.title")}
</div>
<div
className={cn(