Fix translations
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
{
|
||||
"": "",
|
||||
"NotFound_user:login": "Benutzer existiert nicht",
|
||||
"Unauthorized:login": "Ungültige E-mail oder Passwort",
|
||||
"Unauthorized:login": "Ungültige E-Mail oder Passwort",
|
||||
|
||||
"GuestBook": "Gästebuch",
|
||||
|
||||
"E-Mail": "E-Mail",
|
||||
"Email": "E-Mail",
|
||||
"Password": "Passwort",
|
||||
|
||||
"E-Mail required": "E-mail darf nicht leer sein",
|
||||
"Email required": "E-Mail darf nicht leer sein",
|
||||
"Password required": "Passwort darf nicht leer sein",
|
||||
|
||||
"Log in": "Anmelden",
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
{
|
||||
"": "",
|
||||
|
||||
"NotFound_user:login": "User does not exist",
|
||||
"Unauthorized:login": "Invalid e-mail or password",
|
||||
"Unauthorized:login": "Invalid email or password",
|
||||
|
||||
"GuestBook": "GuestBook",
|
||||
|
||||
"E-Mail": "E-Mail",
|
||||
"Email": "Email",
|
||||
"Password": "Password",
|
||||
|
||||
"E-Mail required": "E-mail required",
|
||||
"Email required": "Email required",
|
||||
"Password required": "Password required",
|
||||
|
||||
"Log in": "Log in",
|
||||
|
||||
@@ -58,7 +58,7 @@ const Login: FC = () => {
|
||||
onBlur={field.handleBlur}
|
||||
onChange={(e) => field.handleChange(e.target.value)}
|
||||
size="small"
|
||||
label={t('E-Mail')}
|
||||
label={t('EMail')}
|
||||
required
|
||||
error={field.state.meta.isTouched && field.state.meta.errors.length > 0}
|
||||
helperText={field.state.meta.isTouched ? field.state.meta.errors.join(',') : ''}
|
||||
@@ -106,7 +106,7 @@ const Login: FC = () => {
|
||||
</>
|
||||
)}
|
||||
/>
|
||||
<Typography color="error.main">{t(...handleError(error, 'login'))}</Typography>
|
||||
{error && <Typography color="error.main">{t(...handleError(error, 'login'))}</Typography>}
|
||||
</Box>
|
||||
</form>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user