Fix translations
This commit is contained in:
parent
95555a30a5
commit
7e30d515b6
File diff suppressed because one or more lines are too long
2
exam/dist/index.html
vendored
2
exam/dist/index.html
vendored
@ -5,7 +5,7 @@
|
|||||||
<link rel="icon" type="image/svg+xml" href="/phpCourse/exam/dist/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/phpCourse/exam/dist/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + React + TS</title>
|
<title>Vite + React + TS</title>
|
||||||
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-BU5osPLH.js"></script>
|
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-DF1vYdSH.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
7
exam/dist/locales/de/translation.json
vendored
7
exam/dist/locales/de/translation.json
vendored
@ -1,14 +1,13 @@
|
|||||||
{
|
{
|
||||||
"": "",
|
|
||||||
"NotFound_user:login": "Benutzer existiert nicht",
|
"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",
|
"GuestBook": "Gästebuch",
|
||||||
|
|
||||||
"E-Mail": "E-Mail",
|
"Email": "E-Mail",
|
||||||
"Password": "Passwort",
|
"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",
|
"Password required": "Passwort darf nicht leer sein",
|
||||||
|
|
||||||
"Log in": "Anmelden",
|
"Log in": "Anmelden",
|
||||||
|
|||||||
8
exam/dist/locales/en/translation.json
vendored
8
exam/dist/locales/en/translation.json
vendored
@ -1,15 +1,13 @@
|
|||||||
{
|
{
|
||||||
"": "",
|
|
||||||
|
|
||||||
"NotFound_user:login": "User does not exist",
|
"NotFound_user:login": "User does not exist",
|
||||||
"Unauthorized:login": "Invalid e-mail or password",
|
"Unauthorized:login": "Invalid email or password",
|
||||||
|
|
||||||
"GuestBook": "GuestBook",
|
"GuestBook": "GuestBook",
|
||||||
|
|
||||||
"E-Mail": "E-Mail",
|
"Email": "Email",
|
||||||
"Password": "Password",
|
"Password": "Password",
|
||||||
|
|
||||||
"E-Mail required": "E-mail required",
|
"Email required": "Email required",
|
||||||
"Password required": "Password required",
|
"Password required": "Password required",
|
||||||
|
|
||||||
"Log in": "Log in",
|
"Log in": "Log in",
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
{
|
{
|
||||||
"": "",
|
|
||||||
"NotFound_user:login": "Benutzer existiert nicht",
|
"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",
|
"GuestBook": "Gästebuch",
|
||||||
|
|
||||||
"E-Mail": "E-Mail",
|
"Email": "E-Mail",
|
||||||
"Password": "Passwort",
|
"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",
|
"Password required": "Passwort darf nicht leer sein",
|
||||||
|
|
||||||
"Log in": "Anmelden",
|
"Log in": "Anmelden",
|
||||||
|
|||||||
@ -1,15 +1,13 @@
|
|||||||
{
|
{
|
||||||
"": "",
|
|
||||||
|
|
||||||
"NotFound_user:login": "User does not exist",
|
"NotFound_user:login": "User does not exist",
|
||||||
"Unauthorized:login": "Invalid e-mail or password",
|
"Unauthorized:login": "Invalid email or password",
|
||||||
|
|
||||||
"GuestBook": "GuestBook",
|
"GuestBook": "GuestBook",
|
||||||
|
|
||||||
"E-Mail": "E-Mail",
|
"Email": "Email",
|
||||||
"Password": "Password",
|
"Password": "Password",
|
||||||
|
|
||||||
"E-Mail required": "E-mail required",
|
"Email required": "Email required",
|
||||||
"Password required": "Password required",
|
"Password required": "Password required",
|
||||||
|
|
||||||
"Log in": "Log in",
|
"Log in": "Log in",
|
||||||
|
|||||||
@ -58,7 +58,7 @@ const Login: FC = () => {
|
|||||||
onBlur={field.handleBlur}
|
onBlur={field.handleBlur}
|
||||||
onChange={(e) => field.handleChange(e.target.value)}
|
onChange={(e) => field.handleChange(e.target.value)}
|
||||||
size="small"
|
size="small"
|
||||||
label={t('E-Mail')}
|
label={t('EMail')}
|
||||||
required
|
required
|
||||||
error={field.state.meta.isTouched && field.state.meta.errors.length > 0}
|
error={field.state.meta.isTouched && field.state.meta.errors.length > 0}
|
||||||
helperText={field.state.meta.isTouched ? field.state.meta.errors.join(',') : ''}
|
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>
|
</Box>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user