🐞 fix:

修改翻译
This commit is contained in:
john 2024-06-06 21:08:42 +08:00
parent a7a1a208dc
commit 33fb9caa69
3 changed files with 8 additions and 4 deletions

View File

@ -3,11 +3,12 @@ import { forwardRef, useState, useImperativeHandle, useEffect } from "react";
import { Md5 } from "ts-md5"; import { Md5 } from "ts-md5";
import { sendCode } from "../api"; import { sendCode } from "../api";
import useUserStore from "../store/user"; import useUserStore from "../store/user";
import { useTranslation } from "react-i18next";
/* /*
* @LastEditors: John * @LastEditors: John
* @Date: 2024-06-06 16:41:24 * @Date: 2024-06-06 16:41:24
* @LastEditTime: 2024-06-06 20:25:13 * @LastEditTime: 2024-06-06 21:07:00
* @Author: John * @Author: John
*/ */
export type SilderVertify_handleType = { export type SilderVertify_handleType = {
@ -39,6 +40,7 @@ const SilderVertify = forwardRef<
const [smallImage, setSmallImage] = useState<string>(""); const [smallImage, setSmallImage] = useState<string>("");
const [smallImageY, setSmallImageY] = useState(0); const [smallImageY, setSmallImageY] = useState(0);
const { SelectCountry, Lang } = useUserStore(); const { SelectCountry, Lang } = useUserStore();
const { t } = useTranslation();
useImperativeHandle(ref, () => { useImperativeHandle(ref, () => {
return { return {
_init() { _init() {
@ -86,7 +88,7 @@ const SilderVertify = forwardRef<
gap: "10px", gap: "10px",
}} }}
> >
<span></span> <span>{t("Complete security verification")}</span>
<div <div
style={{ style={{
width: "100%", width: "100%",

View File

@ -21,5 +21,6 @@
"send successfully": "發送成功", "send successfully": "發送成功",
"Send failure": "發送失敗", "Send failure": "發送失敗",
"Invalid phone number": "無效手機號碼", "Invalid phone number": "無效手機號碼",
"Invalid email": "無效電子郵件" "Invalid email": "無效電子郵件",
"Complete security verification": "完成安全驗證"
} }

View File

@ -21,5 +21,6 @@
"send successfully": "send successfully", "send successfully": "send successfully",
"Send failure": "Send failure", "Send failure": "Send failure",
"Invalid phone number": "Invalid phone number", "Invalid phone number": "Invalid phone number",
"Invalid email": "Invalid email" "Invalid email": "Invalid email",
"Complete security verification": "Complete security verification"
} }