chore: update i18n locales

This commit is contained in:
Steven
2023-09-05 22:10:23 +08:00
parent 126e4a62f8
commit 7348f47ef8
9 changed files with 35 additions and 18 deletions

View File

@ -1,6 +1,7 @@
import { Button, Input } from "@mui/joy";
import React, { FormEvent, useEffect, useState } from "react";
import { toast } from "react-hot-toast";
import { useTranslation } from "react-i18next";
import { Link, useNavigate } from "react-router-dom";
import * as api from "../helpers/api";
import useLoading from "../hooks/useLoading";
@ -8,6 +9,7 @@ import { globalService } from "../services";
import useUserStore from "../stores/v1/user";
const SignUp: React.FC = () => {
const { t } = useTranslation();
const navigate = useNavigate();
const userStore = useUserStore();
const {
@ -84,7 +86,7 @@ const SignUp: React.FC = () => {
<form className="w-full mt-4" onSubmit={handleSignupBtnClick}>
<div className={`flex flex-col justify-start items-start w-full ${actionBtnLoadingState.isLoading ? "opacity-80" : ""}`}>
<div className="w-full flex flex-col mb-2">
<span className="leading-8 mb-1 text-gray-600">Email</span>
<span className="leading-8 mb-1 text-gray-600">{t("common.email")}</span>
<Input
className="w-full py-3"
type="email"
@ -98,7 +100,7 @@ const SignUp: React.FC = () => {
<Input className="w-full py-3" type="text" value={nickname} placeholder="steven" onChange={handleNicknameInputChanged} />
</div>
<div className="w-full flex flex-col mb-2">
<span className="leading-8 text-gray-600">Password</span>
<span className="leading-8 text-gray-600">{t("common.password")}</span>
<Input className="w-full py-3" type="password" value={password} placeholder="····" onChange={handlePasswordInputChanged} />
</div>
</div>