chore: i18n

This commit is contained in:
hdsuperman
2022-12-22 20:48:00 +08:00
parent 53b883d4a1
commit 8a9b699d9e
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -33,5 +33,6 @@
"welcome": "Welcome to {{name}} server",
"guest_login_tip": "Please sign in to send a message",
"sign_in": "Sign In",
"sign_up": "Sign Up"
"sign_up": "Sign Up",
"signing_up": "Signing Up"
}
+2 -1
View File
@@ -33,5 +33,6 @@
"welcome": "欢迎来到 {{name}} 👏🏻",
"guest_login_tip": "请登录后发消息",
"sign_in": "登录",
"sign_up": "注册"
"sign_up": "注册",
"signing_up": "注册中"
}
+2 -1
View File
@@ -100,6 +100,7 @@ export default function Reg() {
const googleLogin = enableGoogleLogin && clientId;
// magic token 没有并且没有开放注册
if (whoCanSignUp !== "EveryOne" && !magicToken)
// todo: i18n
return <>Sign up method is updated to Invitation Link Only</>;
const { email, password, confirmPassword } = input;
if (data?.mail_is_sent) return <EmailNextTip />;
@@ -148,7 +149,7 @@ export default function Reg() {
placeholder={t("placeholder_confirm_pwd")}
></Input>
<Button type="submit" disabled={isLoading}>
{isLoading ? "Signing Up" : t("sign_up")}
{isLoading ? t('signing_up') : t("sign_up")}
</Button>
</form>
<hr className="or" />