fix: fix classification missing i18n (#21179)

This commit is contained in:
GuoQing Liu
2025-12-07 11:35:48 -07:00
committed by GitHub
parent 88a8de0b1c
commit 644c7fa6b4
5 changed files with 20 additions and 5 deletions
@@ -131,7 +131,9 @@ export default function ClassificationSelectionDialog({
className="flex cursor-pointer gap-2 smart-capitalize"
onClick={() => onCategorizeImage(category)}
>
{category.replaceAll("_", " ")}
{category === "none"
? t("none")
: category.replaceAll("_", " ")}
</SelectorItem>
))}
<Separator />