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:
Adam Kida
2025-08-29 05:12:12 +00:00
committed by GitHub
co-authored by David Skewis Max Peintner
parent 6d0b7ed2aa
commit 832e78f9bc
20 changed files with 1786 additions and 716 deletions
@@ -161,7 +161,7 @@ export function ChangePasswordForm({
{...register("password", {
required: t("change.required.newPassword"),
})}
label="New Password"
label={t("change.labels.newPassword")}
error={errors.password?.message as string}
data-testid="password-change-text-input"
/>
@@ -174,7 +174,7 @@ export function ChangePasswordForm({
{...register("confirmPassword", {
required: t("change.required.confirmPassword"),
})}
label="Confirm Password"
label={t("change.labels.confirmPassword")}
error={errors.confirmPassword?.message as string}
data-testid="password-change-confirm-text-input"
/>