More translations

This commit is contained in:
Kilian Hofmann 2024-07-25 01:14:34 +02:00
parent 65848f094b
commit 95555a30a5
7 changed files with 30 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -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-CCiAEYtb.js"></script> <script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-BU5osPLH.js"></script>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@ -1,10 +1,16 @@
{ {
"": "",
"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", "E-Mail": "E-Mail",
"Password": "Passwort", "Password": "Passwort",
"E-Mail required": "E-mail darf nicht leer sein",
"Password required": "Passwort darf nicht leer sein",
"Log in": "Anmelden", "Log in": "Anmelden",
"Log out": "Abmelden", "Log out": "Abmelden",
"Profile": "Profil" "Profile": "Profil"

View File

@ -1,10 +1,17 @@
{ {
"": "",
"NotFound_user:login": "User does not exist", "NotFound_user:login": "User does not exist",
"Unauthorized:login": "Invalid e-mail or password", "Unauthorized:login": "Invalid e-mail or password",
"GuestBook": "GuestBook", "GuestBook": "GuestBook",
"E-Mail": "E-Mail", "E-Mail": "E-Mail",
"Password": "Password", "Password": "Password",
"E-Mail required": "E-mail required",
"Password required": "Password required",
"Log in": "Log in", "Log in": "Log in",
"Log out": "Log out", "Log out": "Log out",
"Profile": "Profile" "Profile": "Profile"

View File

@ -1,10 +1,16 @@
{ {
"": "",
"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", "E-Mail": "E-Mail",
"Password": "Passwort", "Password": "Passwort",
"E-Mail required": "E-mail darf nicht leer sein",
"Password required": "Passwort darf nicht leer sein",
"Log in": "Anmelden", "Log in": "Anmelden",
"Log out": "Abmelden", "Log out": "Abmelden",
"Profile": "Profil" "Profile": "Profil"

View File

@ -1,10 +1,17 @@
{ {
"": "",
"NotFound_user:login": "User does not exist", "NotFound_user:login": "User does not exist",
"Unauthorized:login": "Invalid e-mail or password", "Unauthorized:login": "Invalid e-mail or password",
"GuestBook": "GuestBook", "GuestBook": "GuestBook",
"E-Mail": "E-Mail", "E-Mail": "E-Mail",
"Password": "Password", "Password": "Password",
"E-Mail required": "E-mail required",
"Password required": "Password required",
"Log in": "Log in", "Log in": "Log in",
"Log out": "Log out", "Log out": "Log out",
"Profile": "Profile" "Profile": "Profile"

View File

@ -41,7 +41,7 @@ const Login: FC = () => {
<form.Field <form.Field
name="email" name="email"
validators={{ validators={{
onChange: ({ value }) => (!value ? 'Email required' : undefined), onChange: ({ value }) => (!value ? t('Email required') : undefined),
onChangeAsyncDebounceMs: 500, onChangeAsyncDebounceMs: 500,
onChangeAsync: async ({ value }) => { onChangeAsync: async ({ value }) => {
await new Promise((resolve) => setTimeout(resolve, 1000)); await new Promise((resolve) => setTimeout(resolve, 1000));
@ -70,7 +70,7 @@ const Login: FC = () => {
<form.Field <form.Field
name="password" name="password"
validators={{ validators={{
onChange: ({ value }) => (!value ? 'Password required' : undefined), onChange: ({ value }) => (!value ? t('Password required') : undefined),
onChangeAsyncDebounceMs: 500, onChangeAsyncDebounceMs: 500,
onChangeAsync: async ({ value }) => { onChangeAsync: async ({ value }) => {
await new Promise((resolve) => setTimeout(resolve, 1000)); await new Promise((resolve) => setTimeout(resolve, 1000));