From ed8bc01cf5611d85815e4205a0776b848f2b81ec Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 31 Oct 2025 12:10:26 -0600 Subject: [PATCH] Adjust wording based on type of model --- web/public/locales/en/views/classificationModel.json | 1 + .../components/classification/wizard/Step1NameAndDefine.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/public/locales/en/views/classificationModel.json b/web/public/locales/en/views/classificationModel.json index 4b268480f..fc49c2ff4 100644 --- a/web/public/locales/en/views/classificationModel.json +++ b/web/public/locales/en/views/classificationModel.json @@ -86,6 +86,7 @@ "classificationSubLabel": "Sub Label", "classificationAttribute": "Attribute", "classes": "Classes", + "states": "States", "classesTip": "Learn about classes", "classesStateDesc": "Define the different states your camera area can be in. For example: 'open' and 'closed' for a garage door.", "classesObjectDesc": "Define the different categories to classify detected objects into. For example: 'delivery_person', 'resident', 'stranger' for person classification.", diff --git a/web/src/components/classification/wizard/Step1NameAndDefine.tsx b/web/src/components/classification/wizard/Step1NameAndDefine.tsx index b158782dc..8a510d33d 100644 --- a/web/src/components/classification/wizard/Step1NameAndDefine.tsx +++ b/web/src/components/classification/wizard/Step1NameAndDefine.tsx @@ -394,7 +394,9 @@ export default function Step1NameAndDefine({
- {t("wizard.step1.classes")} + {watchedModelType === "state" + ? t("wizard.step1.states") + : t("wizard.step1.classes")}