mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-30 07:58:51 +00:00
feat(typescript): add i18n for input labels in Login V2 (#10233)
# Which Problems Are Solved - Most inputs have hardcoded label # How the Problems Are Solved - add usage of i18n library for every label - add labels to i18n translation files # Additional Changes - fixed key used in `device-code-form.tsx` by submit button - `v2-default.json` was update and contains all values from login app not only newly added key for labels. # Additional Context N.A --------- Co-authored-by: David Skewis <[email protected]> Co-authored-by: Max Peintner <[email protected]>
This commit is contained in:
co-authored by
David Skewis
Max Peintner
parent
6d0b7ed2aa
commit
832e78f9bc
@@ -221,7 +221,7 @@ export function SetPasswordForm({
|
||||
{...register("code", {
|
||||
required: t("set.required.code"),
|
||||
})}
|
||||
label="Code"
|
||||
label={t("set.labels.code")}
|
||||
autoComplete="one-time-code"
|
||||
error={errors.code?.message as string}
|
||||
data-testid="code-text-input"
|
||||
@@ -236,7 +236,7 @@ export function SetPasswordForm({
|
||||
{...register("password", {
|
||||
required: t("set.required.newPassword"),
|
||||
})}
|
||||
label="New Password"
|
||||
label={t("set.labels.newPassword")}
|
||||
error={errors.password?.message as string}
|
||||
data-testid="password-set-text-input"
|
||||
/>
|
||||
@@ -249,7 +249,7 @@ export function SetPasswordForm({
|
||||
{...register("confirmPassword", {
|
||||
required: t("set.required.confirmPassword"),
|
||||
})}
|
||||
label="Confirm Password"
|
||||
label={t("set.labels.confirmPassword")}
|
||||
error={errors.confirmPassword?.message as string}
|
||||
data-testid="password-set-confirm-text-input"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user