adds hungarian translation

This commit is contained in:
Christian Beutel
2024-03-31 13:10:51 +02:00
parent 36b7b3a309
commit f6fb35ec40
12 changed files with 112 additions and 12 deletions

View File

@@ -25,6 +25,7 @@
{ text: $_("german"), value: "de" },
{ text: $_("english"), value: "en" },
{ text: $_("french"), value: "fr" },
{ text: $_("hungarian"), value: "hu" },
{ text: $_("dutch"), value: "nl" },
{ text: $_("polish"), value: "pl" },
{ text: $_("portuguese"), value: "pt" },
@@ -95,7 +96,7 @@
}
async function handleLanguageSelection(
value: "en" | "de" | "fr" | "nl" | "pl" | "pt",
value: "en" | "de" | "fr" | "hu" | "nl" | "pl" | "pt",
) {
locale.set(value);
await users_update({

View File

@@ -20,13 +20,24 @@
},
validationSchema: object<User>({
username: string()
.min(
3,
$_("must-be-at-least-n-characters-long", {
values: { n: 3 },
}),
)
.required($_("required"))
.matches(/^[\w][\w\.]*$/, { message: $_("invalid-username") }),
email: string()
.email($_("not-a-valid-email-address"))
.required($_("required")),
password: string()
.min(8, $_("must-be-at-least-8-characters-long"))
.min(
8,
$_("must-be-at-least-n-characters-long", {
values: { n: 8 },
}),
)
.required($_("required")),
}),
onSubmit: async (newUser) => {