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
@@ -120,7 +120,7 @@ export function SetRegisterPasswordForm({
{...register("password", {
required: t("password.required.password"),
})}
label="Password"
label={t("password.labels.password")}
error={errors.password?.message as string}
data-testid="password-text-input"
/>
@@ -133,7 +133,7 @@ export function SetRegisterPasswordForm({
{...register("confirmPassword", {
required: t("password.required.confirmPassword"),
})}
label="Confirm Password"
label={t("password.labels.confirmPassword")}
error={errors.confirmPassword?.message as string}
data-testid="password-confirm-text-input"
/>