diff --git a/web/public/locales/en/common.json b/web/public/locales/en/common.json index 4ddd9244e..24c85cf9f 100644 --- a/web/public/locales/en/common.json +++ b/web/public/locales/en/common.json @@ -64,6 +64,7 @@ "button": { "apply": "Apply", "reset": "Reset", + "done": "Done", "enabled": "Enabled", "enable": "Enable", "disabled": "Disabled", diff --git a/web/public/locales/en/views/faceLibrary.json b/web/public/locales/en/views/faceLibrary.json index b95f744d7..9e06d6dd1 100644 --- a/web/public/locales/en/views/faceLibrary.json +++ b/web/public/locales/en/views/faceLibrary.json @@ -1,4 +1,7 @@ { + "description": { + "addFace": "Walk through adding a new face to the Face Library." + }, "documentTitle": "Face Library - Frigate", "uploadFaceImage": { "title": "Upload Face Image", @@ -19,12 +22,13 @@ "uploadImage": "Upload Image", "reprocessFace": "Reprocess Face" }, + "readTheDocs": "Read the documentation to view more details on refining images for the Face Library", "trainFaceAs": "Train Face as:", "trainFaceAsPerson": "Train Face as Person", "toast": { "success": { "uploadedImage": "Successfully uploaded image.", - "addFaceLibrary": "Successfully add face library.", + "addFaceLibrary": "{{name}} has successfully been added to the Face Library!", "deletedFace": "Successfully deleted face.", "trainedFace": "Successfully trained face.", "updatedFaceScore": "Successfully updated face score." diff --git a/web/src/components/overlay/detail/FaceCreateWizardDialog.tsx b/web/src/components/overlay/detail/FaceCreateWizardDialog.tsx index ebc62c1d3..5729fc760 100644 --- a/web/src/components/overlay/detail/FaceCreateWizardDialog.tsx +++ b/web/src/components/overlay/detail/FaceCreateWizardDialog.tsx @@ -100,10 +100,8 @@ export default function CreateFaceWizardDialog({ >
- Add New Face - - Walk through adding a new face to the Face Library. - + {t("button.addFace")} + {t("description.addFace")}
{step == 0 && ( @@ -132,7 +130,6 @@ export default function CreateFaceWizardDialog({ )} {step == 2 && (
- {name} has successfully been added to the Face Library!
- {t("classification.faceRecognition.readTheDocumentation", { - ns: "views/settings", - })}{" "} - to view more details on refining images for the Face Library + {t("readTheDocs")}
diff --git a/web/src/components/overlay/dialog/TextEntryDialog.tsx b/web/src/components/overlay/dialog/TextEntryDialog.tsx index ea125b195..6fc1f9ad3 100644 --- a/web/src/components/overlay/dialog/TextEntryDialog.tsx +++ b/web/src/components/overlay/dialog/TextEntryDialog.tsx @@ -29,7 +29,7 @@ export default function TextEntryDialog({ defaultValue = "", allowEmpty = false, }: TextEntryDialogProps) { - const { t } = useTranslation("components/dialog"); + const { t } = useTranslation("common"); return ( @@ -45,10 +45,10 @@ export default function TextEntryDialog({ > diff --git a/web/src/components/overlay/dialog/UploadImageDialog.tsx b/web/src/components/overlay/dialog/UploadImageDialog.tsx index efb05afac..7fab82eea 100644 --- a/web/src/components/overlay/dialog/UploadImageDialog.tsx +++ b/web/src/components/overlay/dialog/UploadImageDialog.tsx @@ -8,6 +8,7 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog"; +import { useTranslation } from "react-i18next"; type UploadImageDialogProps = { open: boolean; @@ -23,6 +24,8 @@ export default function UploadImageDialog({ setOpen, onSave, }: UploadImageDialogProps) { + const { t } = useTranslation("common"); + return ( @@ -32,9 +35,9 @@ export default function UploadImageDialog({ - +