From 05e6051e31b696988627e9c3429ebb905e36d58b Mon Sep 17 00:00:00 2001 From: LazarAlexandruConstantin Date: Fri, 22 Mar 2024 12:16:32 +0200 Subject: [PATCH] AUT-2606: Update page titles for too many codes requested error page in the creation journey --- src/components/security-code-error/index-wait.njk | 6 +++++- src/locales/cy/translation.json | 1 + src/locales/en/translation.json | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/security-code-error/index-wait.njk b/src/components/security-code-error/index-wait.njk index 5795f1eee..fc3f67b8b 100644 --- a/src/components/security-code-error/index-wait.njk +++ b/src/components/security-code-error/index-wait.njk @@ -1,7 +1,11 @@ {% extends "common/layout/base.njk" %} {% from "govuk/components/button/macro.njk" import govukButton %} {% if support2hrLockout %} - {% set pageTitleName = 'pages.securityCodeWaitToRequest.title' | translate %} + {% if isAccountCreationJourney %} + {% set pageTitleName = 'pages.securityCodeWaitToRequest.title_create' | translate %} + {% else %} + {% set pageTitleName = 'pages.securityCodeWaitToRequest.title' | translate %} + {% endif %} {% else %} {% set pageTitleName = 'pages.securityCodeWaitToRequest.title_old' | translate %} {% endif %} diff --git a/src/locales/cy/translation.json b/src/locales/cy/translation.json index a0a18f0b7..bde49b371 100644 --- a/src/locales/cy/translation.json +++ b/src/locales/cy/translation.json @@ -504,6 +504,7 @@ "header_old": "Ni allwch gael cod diogelwch newydd ar hyn o bryd ", "header": "Ni allwch fewngofnodi ar hyn o bryd ", "header_create": "Ni allwch greu GOV.UK One Login ar hyn o bryd ", + "title_create": "Ni allwch greu GOV.UK One Login ar hyn o bryd ", "info_old": { "paragraph1": "Mae hyn oherwydd eich bod wedi gofyn i ailanfon cod diogelwch ormod o weithiau.", "paragraph2Start": "Gallwch ", diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 6b28d1728..98d944cea 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -504,6 +504,7 @@ "header_old": "You cannot get a new security code at the moment ", "header": "You cannot sign in at the moment ", "header_create": "You cannot create a GOV.UK One Login at the moment ", + "title_create": "You cannot create a GOV.UK One Login at the moment ", "info_old": { "paragraph1": "This is because you asked to resend the security code too many times.", "paragraph2Start": "You can ",