diff --git a/src/components/SilderVertify.tsx b/src/components/SilderVertify.tsx index 336a455..e443200 100644 --- a/src/components/SilderVertify.tsx +++ b/src/components/SilderVertify.tsx @@ -3,11 +3,12 @@ import { forwardRef, useState, useImperativeHandle, useEffect } from "react"; import { Md5 } from "ts-md5"; import { sendCode } from "../api"; import useUserStore from "../store/user"; +import { useTranslation } from "react-i18next"; /* * @LastEditors: John * @Date: 2024-06-06 16:41:24 - * @LastEditTime: 2024-06-06 20:25:13 + * @LastEditTime: 2024-06-06 21:07:00 * @Author: John */ export type SilderVertify_handleType = { @@ -39,6 +40,7 @@ const SilderVertify = forwardRef< const [smallImage, setSmallImage] = useState(""); const [smallImageY, setSmallImageY] = useState(0); const { SelectCountry, Lang } = useUserStore(); + const { t } = useTranslation(); useImperativeHandle(ref, () => { return { _init() { @@ -86,7 +88,7 @@ const SilderVertify = forwardRef< gap: "10px", }} > - 请完成安全验证 + {t("Complete security verification")}