Matías Racedo and GitHub
78be618357
fix(login): translate authentication and OTP strings ( #12668 )
...
Closes #12481
Closes #12226
# Which Problems Are Solved
Login V2 still contained several hardcoded authentication-method and OTP
strings, preventing them from following the selected locale or being
overridden through custom Login translations.
Additionally, the password-reset flow already referenced
`password.errors.passwordResetNotAllowed`, but the key was missing from
the Login V2 translations, causing the raw translation key to be
displayed when password reset is disabled.
# How the Problems Are Solved
* Replaced the hardcoded authentication-method labels with Login V2
translation keys.
* Replaced the OTP challenge and verification fallback messages with
translated values.
* Reused the existing `otp.verify.resendCode` translation for the resend
button's accessible label.
* Added `password.errors.passwordResetNotAllowed`.
* Added the new keys to all supported Login V2 locales and mirrored them
in `internal/query/v2-default.json` so frontend and API-provided default
translations remain consistent.
* Added unit coverage for the translated authentication labels and OTP
failure paths.
# How the Changes Are Tested
* `pnpm nx run @zitadel/login:test-unit`
* `pnpm nx run @zitadel/login:lint`
* `pnpm nx run @zitadel/login:build`
* `pnpm nx run-many --projects @zitadel/login @zitadel/client
@zitadel/proto --targets lint build test`
* Manually verified Login V2 with multiple locales, including
authentication-method labels, OTP failure fallbacks, and the disabled
password-reset flow.
2026-09-03 06:01:34 +02:00
..
2026-08-14 06:12:45 +02:00
2026-02-13 12:31:43 +01:00
2026-08-14 06:12:45 +02:00
2026-08-14 06:12:45 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-10-17 07:35:35 +02:00
2026-08-12 08:04:27 +02:00
2025-02-11 18:45:09 +00:00
2025-02-11 18:45:09 +00:00
2026-08-12 08:04:27 +02:00
2026-08-12 08:04:27 +02:00
2025-04-02 16:53:06 +02:00
2025-05-19 10:16:49 +00:00
2025-04-02 16:53:06 +02:00
2025-12-29 13:35:53 +00:00
2025-03-31 12:45:11 +02:00
2025-12-29 13:35:53 +00:00
2024-12-06 11:32:53 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2024-02-28 10:55:54 +02:00
2025-05-28 21:54:18 +00:00
2025-09-03 15:29:00 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2024-09-11 08:24:00 +00:00
2024-09-11 08:24:00 +00:00
2024-09-11 08:24:00 +00:00
2026-03-17 12:54:27 +01:00
2026-03-17 12:54:27 +01:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2024-04-16 11:19:17 +00:00
2025-09-01 07:21:10 +02:00
2025-09-01 07:21:10 +02:00
2025-09-01 07:21:10 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-09-01 07:21:10 +02:00
2025-10-21 11:18:21 +02:00
2025-10-28 13:23:54 +00:00
2025-10-28 13:23:54 +00:00
2025-10-21 11:18:21 +02:00
2026-07-15 11:27:25 +00:00
2025-06-18 13:24:39 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2026-07-10 09:17:49 +02:00
2026-07-10 09:17:49 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-08-13 07:44:39 +00:00
2025-04-02 16:53:06 +02:00
2026-07-30 14:43:47 +00:00
2026-07-30 14:43:47 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2026-02-27 09:43:11 +01:00
2025-06-30 05:48:04 +00:00
2026-02-05 10:51:09 +00:00
2026-07-30 14:43:47 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2026-07-30 14:43:47 +00:00
2024-10-04 13:15:41 +00:00
2025-08-20 12:37:00 +00:00
2025-04-02 16:53:06 +02:00
2025-06-30 05:48:04 +00:00
2026-04-09 11:30:23 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2026-02-10 20:25:39 +01:00
2026-06-30 11:20:21 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2022-06-14 07:51:00 +02:00
2025-07-04 18:12:59 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2026-08-03 08:37:59 +00:00
2025-04-02 16:53:06 +02:00
2026-08-03 08:37:59 +00:00
2025-04-02 16:53:06 +02:00
2025-06-06 08:48:29 +00:00
2025-04-02 16:53:06 +02:00
2026-01-05 14:14:01 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2026-01-05 14:14:01 +00:00
2025-06-03 14:48:15 +02:00
2026-08-14 06:12:45 +02:00
2025-07-29 15:56:21 +02:00
2025-07-29 15:56:21 +02:00
2024-11-21 08:05:03 +02:00
2025-04-02 16:53:06 +02:00
2026-02-10 20:25:39 +01:00
2025-04-02 16:53:06 +02:00
2026-02-10 20:25:39 +01:00
2026-03-03 10:24:44 +00:00
2025-04-22 08:42:59 +00:00
2025-04-22 08:42:59 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-07-04 18:12:59 +02:00
2025-07-04 18:12:59 +02:00
2026-03-03 10:24:44 +00:00
2025-07-29 09:55:29 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-06-04 11:46:10 +00:00
2025-04-02 16:53:06 +02:00
2025-07-29 09:55:29 +00:00
2024-01-25 17:28:20 +01:00
2026-07-01 04:53:16 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-06-03 14:15:30 +00:00
2025-06-03 14:15:30 +00:00
2025-06-03 14:15:30 +00:00
2025-04-02 16:53:06 +02:00
2025-06-06 08:48:29 +00:00
2025-04-02 16:53:06 +02:00
2025-05-19 10:16:49 +00:00
2025-04-02 16:53:06 +02:00
2025-02-13 16:03:05 +00:00
2025-04-02 16:53:06 +02:00
2025-02-13 16:03:05 +00:00
2025-09-18 09:50:56 +00:00
2025-10-14 09:43:59 +00:00
2026-07-01 04:53:16 +00:00
2026-07-01 04:53:16 +00:00
2026-07-30 14:43:47 +00:00
2025-11-24 06:44:48 +00:00
2025-11-24 06:44:48 +00:00
2025-09-08 11:00:04 +00:00
2025-09-08 11:00:04 +00:00
2026-01-27 15:11:56 +01:00
2026-02-11 11:48:41 +01:00
2026-02-05 10:51:09 +00:00
2025-09-02 09:48:46 +00:00
2026-02-05 10:51:09 +00:00
2025-12-29 13:35:53 +00:00
2025-12-29 13:35:53 +00:00
2025-04-02 16:53:06 +02:00
2025-11-11 05:55:59 +00:00
2025-10-29 10:12:50 +01:00
2025-06-06 08:48:29 +00:00
2025-05-08 07:32:41 +00:00
2025-07-10 15:17:49 +00:00
2026-03-03 10:24:44 +00:00
2025-10-28 12:11:12 +00:00
2026-07-28 11:56:07 +00:00
2026-07-28 11:56:07 +00:00
2026-07-28 11:56:07 +00:00
2025-07-04 18:12:59 +02:00
2026-01-12 06:22:34 +00:00
2025-04-02 16:53:06 +02:00
2025-08-27 13:08:13 +02:00
2025-06-06 08:48:29 +00:00
2025-05-08 07:32:41 +00:00
2026-06-15 11:24:37 +02:00
2026-06-15 11:24:37 +02:00
2025-04-02 16:53:06 +02:00
2025-06-06 08:48:29 +00:00
2024-08-28 19:46:45 +00:00
2025-04-02 16:53:06 +02:00
2026-07-28 11:56:07 +00:00
2026-07-28 11:56:07 +00:00
2026-08-14 06:12:45 +02:00
2024-04-09 15:15:35 +02:00
2026-02-13 12:31:43 +01:00
2025-11-11 09:06:45 +01:00
2026-09-03 06:01:34 +02:00
2024-08-16 11:41:09 +00:00
2024-08-16 11:41:09 +00:00
2024-08-14 14:18:14 +00:00
2024-08-16 11:41:09 +00:00
2025-04-02 16:53:06 +02:00
2024-08-14 14:18:14 +00:00
2023-11-20 17:21:08 +02:00