From 33fb9caa69b4abbfd2c3a298b3c64b8182af139e Mon Sep 17 00:00:00 2001 From: john Date: Thu, 6 Jun 2024 21:08:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改翻译 --- src/components/SilderVertify.tsx | 6 ++++-- src/i18n/cn/translation.json | 3 ++- src/i18n/en/translation.json | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) 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")}