fix: fix classification missing i18n (#21179)

This commit is contained in:
GuoQing Liu
2025-12-08 02:35:48 +08:00
committed by GitHub
parent 88a8de0b1c
commit 644c7fa6b4
5 changed files with 20 additions and 5 deletions

View File

@@ -422,7 +422,12 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
)}
>
<div className="flex w-48 items-center justify-center text-sm text-muted-foreground">
<div className="p-1">{`${selectedImages.length} selected`}</div>
<div className="p-1">
{t("selected", {
ns: "views/event",
count: selectedImages.length,
})}
</div>
<div className="p-1">{"|"}</div>
<div
className="cursor-pointer p-2 text-primary hover:rounded-lg hover:bg-secondary"
@@ -682,7 +687,7 @@ function LibrarySelector({
className="flex-grow cursor-pointer capitalize"
onClick={() => setPageToggle(id)}
>
{id.replaceAll("_", " ")}
{id === "none" ? t("none") : id.replaceAll("_", " ")}
<span className="ml-2 text-muted-foreground">
({dataset?.[id].length})
</span>