feat(login): translations (#10849)

# Which Problems Are Solved

Replace this example text with a concise list of problems that this PR
solves.
For example:
- password complexity requirements have hardcoded English text
- password, loginname, register and verify components have hardcoded
Engilsh error messages/alerts

# How the Problems Are Solved

Replace this example text with a concise list of changes that this PR
introduces.
For example:
- adds i18n for password complexity requirements
- adds i18n for password, loginname, register and verify components
error messages/alerts

# Additional Changes

- small change in code/styles for icons in PasswordComplexity to make
sure that icons keep size

# Additional Context

N.A

---------

Co-authored-by: Adam Kida <[email protected]>
This commit is contained in:
Max Peintner
2025-10-09 11:11:03 +02:00
committed by GitHub
co-authored by Adam Kida
parent 794054c075
commit 64e14de091
22 changed files with 972 additions and 195 deletions
@@ -77,7 +77,7 @@ export function SetPasswordForm({
requestId,
})
.catch(() => {
setError("Could not reset password");
setError(t("set.errors.couldNotResetPassword"));
return;
})
.finally(() => {
@@ -104,7 +104,7 @@ export function SetPasswordForm({
const changeResponse = await changePassword(payload)
.catch(() => {
setError("Could not set password");
setError(t("set.errors.couldNotSetPassword"));
return;
})
.finally(() => {
@@ -117,7 +117,7 @@ export function SetPasswordForm({
}
if (!changeResponse) {
setError("Could not set password");
setError(t("set.errors.couldNotSetPassword"));
return;
}
@@ -141,7 +141,7 @@ export function SetPasswordForm({
requestId,
})
.catch(() => {
setError("Could not verify password");
setError(t("set.errors.couldNotVerifyPassword"));
return;
})
.finally(() => {