mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-01 00:22:19 +03:00
feat: document locale url (#18409)
* feat: document locale url * fix: remove debug code * fix readme_cn line * feat: add menu document locale url
This commit is contained in:
@@ -24,6 +24,7 @@ import { Trans, useTranslation } from "react-i18next";
|
||||
import { LuExternalLink } from "react-icons/lu";
|
||||
import { Link } from "react-router-dom";
|
||||
import { toast } from "sonner";
|
||||
import { useDocDomain } from "@/hooks/use-doc-domain";
|
||||
|
||||
const STEPS = ["steps.faceName", "steps.uploadFace", "steps.nextSteps"];
|
||||
|
||||
@@ -38,7 +39,7 @@ export default function CreateFaceWizardDialog({
|
||||
onFinish,
|
||||
}: CreateFaceWizardDialogProps) {
|
||||
const { t } = useTranslation("views/faceLibrary");
|
||||
|
||||
const { getLocaleDocUrl } = useDocDomain();
|
||||
// wizard
|
||||
|
||||
const [step, setStep] = useState(0);
|
||||
@@ -155,7 +156,7 @@ export default function CreateFaceWizardDialog({
|
||||
</p>
|
||||
<div className="my-2 flex items-center text-sm text-primary">
|
||||
<Link
|
||||
to="https://docs.frigate.video/configuration/face_recognition"
|
||||
to={getLocaleDocUrl("configuration/face_recognition")}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline"
|
||||
|
||||
Reference in New Issue
Block a user