AuthForm: allow translation of the "Clear" button

This commit is contained in:
Jesse Chan
2020-10-27 12:47:43 +08:00
parent c1e69597fd
commit b2a37146ec
3 changed files with 10 additions and 1 deletions
@@ -177,7 +177,9 @@ class AuthForm extends React.Component<AuthFormProps, AuthFormStates> {
this.formRef.resetForm();
}
}}>
Clear
{intl.formatMessage({
id: 'auth.input.clear',
})}
</Button>
<Button isLoading={isSubmitting} type="submit">
{isLoginMode
@@ -329,6 +329,12 @@
"value": "Username cannot be empty."
}
],
"auth.input.clear": [
{
"type": 0,
"value": "Clear"
}
],
"auth.log.in": [
{
"type": 0,
+1
View File
@@ -17,6 +17,7 @@
"auth.current.user": "Current User",
"auth.error.username.empty": "Username cannot be empty.",
"auth.error.password.empty": "Password cannot be empty.",
"auth.input.clear": "Clear",
"auth.log.in": "Log In",
"auth.login": "Login",
"auth.login.intro": "Log in to your account.",