mirror of
https://github.com/zoriya/flood.git
synced 2026-06-08 20:46:04 +00:00
AuthForm: allow translation of the "Clear" button
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user