mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
feat: improve i18n and add some translation
Signed-off-by: turbodog <turbodog1003@gmail.com>
This commit is contained in:
@ -141,7 +141,7 @@ class SignupPage extends React.Component {
|
||||
rules={[
|
||||
{
|
||||
required: required,
|
||||
message: i18next.t("login:Please input your username!"),
|
||||
message: i18next.t("forget:Please input your username!"),
|
||||
whitespace: true,
|
||||
},
|
||||
]}
|
||||
@ -202,14 +202,14 @@ class SignupPage extends React.Component {
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
name="emailCode"
|
||||
label={i18next.t("signup:Email code")}
|
||||
label={i18next.t("code:Email code")}
|
||||
rules={[{
|
||||
required: required,
|
||||
message: i18next.t("signup:Please input your verification code!"),
|
||||
message: i18next.t("code:Please input your verification code!"),
|
||||
}]}
|
||||
>
|
||||
<CountDownInput
|
||||
defaultButtonText={i18next.t("user:Send code")}
|
||||
defaultButtonText={i18next.t("code:Send code")}
|
||||
onButtonClick={UserBackend.sendCode}
|
||||
onButtonClickArgs={[this.state.email, "email", application?.organizationObj.owner + "/" + application?.organizationObj.name]}
|
||||
coolDownTime={60}
|
||||
@ -282,16 +282,16 @@ class SignupPage extends React.Component {
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
name="phoneCode"
|
||||
label={i18next.t("signup:Phone code")}
|
||||
label={i18next.t("code:Phone code")}
|
||||
rules={[
|
||||
{
|
||||
required: required,
|
||||
message: i18next.t("signup:Please input your phone verification code!"),
|
||||
message: i18next.t("code:Please input your phone verification code!"),
|
||||
},
|
||||
]}
|
||||
>
|
||||
<CountDownInput
|
||||
defaultButtonText={i18next.t("user:Send code")}
|
||||
defaultButtonText={i18next.t("code:Send code")}
|
||||
onButtonClick={UserBackend.sendCode}
|
||||
onButtonClickArgs={[this.state.phone, "phone", application.organizationObj.owner + "/" + application.organizationObj.name]}
|
||||
coolDownTime={60}
|
||||
|
Reference in New Issue
Block a user