mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-27 14:48:45 +00:00
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:
co-authored by
Adam Kida
parent
794054c075
commit
64e14de091
@@ -52,9 +52,8 @@ export function PasswordForm({ loginSettings, loginName, organization, requestId
|
||||
}),
|
||||
requestId,
|
||||
})
|
||||
.catch((error) => {
|
||||
setError("Could not verify password");
|
||||
console.error("Error verifying password:", error);
|
||||
.catch(() => {
|
||||
setError(t("verify.errors.couldNotVerifyPassword"));
|
||||
return;
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -82,7 +81,7 @@ export function PasswordForm({ loginSettings, loginName, organization, requestId
|
||||
requestId,
|
||||
})
|
||||
.catch(() => {
|
||||
setError("Could not reset password");
|
||||
setError(t("verify.errors.couldNotResetPassword"));
|
||||
return;
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -94,7 +93,7 @@ export function PasswordForm({ loginSettings, loginName, organization, requestId
|
||||
return;
|
||||
}
|
||||
|
||||
setInfo("Password was reset. Please check your email.");
|
||||
setInfo(t("verify.info.passwordResetSent"));
|
||||
|
||||
const params = new URLSearchParams({
|
||||
loginName: loginName,
|
||||
|
||||
Reference in New Issue
Block a user