From ad55d0a5456ab28b2cfedbebbabf1584b52abaa9 Mon Sep 17 00:00:00 2001 From: Alex Soloviev Date: Sun, 16 Jul 2023 07:53:23 -0700 Subject: [PATCH] ADO-132303: fixed text for partner "will be eligible" (#827) --- components/ResultsPage/WillBeEligible.tsx | 9 ++++++--- i18n/web/en.ts | 1 + i18n/web/fr.ts | 1 + i18n/web/index.ts | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/ResultsPage/WillBeEligible.tsx b/components/ResultsPage/WillBeEligible.tsx index bb09af03a..f0cb47b3a 100644 --- a/components/ResultsPage/WillBeEligible.tsx +++ b/components/ResultsPage/WillBeEligible.tsx @@ -55,10 +55,13 @@ export const WillBeEligible: React.VFC<{ : 'Si vous commencez à' : 'À' + const partnerText = + multipleOAS_GIS && nonZeroExist + ? tsln.resultsPage.theyToReceive + : tsln.resultsPage.partnerToReceive + const text = `${language === 'en' ? enStr : frStr} ${age}, ${ - partner - ? tsln.resultsPage.partnerToReceive - : tsln.resultsPage.toReceive + partner ? partnerText : tsln.resultsPage.toReceive }` const resultsArray: BenefitResult[] = Object.keys(resultObj[age]).map( diff --git a/i18n/web/en.ts b/i18n/web/en.ts index dfe98fe9d..b793720e8 100644 --- a/i18n/web/en.ts +++ b/i18n/web/en.ts @@ -196,6 +196,7 @@ const en: WebTranslations = { partnerFutureEligible: ' Your partner will likely be eligible', toReceive: "you'll likely be eligible to receive:", partnerToReceive: 'your partner will likely be eligible to receive:', + theyToReceive: 'they will likely be eligible to receive:', }, resultsQuestions: apiEn.questionShortText, resultsEditAriaLabels: apiEn.questionAriaLabel, diff --git a/i18n/web/fr.ts b/i18n/web/fr.ts index b493db5b2..3a81f2154 100644 --- a/i18n/web/fr.ts +++ b/i18n/web/fr.ts @@ -201,6 +201,7 @@ const fr: WebTranslations = { partnerFutureEligible: ' Votre conjoint sera probablement admissible', toReceive: 'vous pourriez être admissible à recevoir :', partnerToReceive: 'votre conjoint pourrait être admissible à recevoir :', + theyToReceive: 'il pourrait être admissible à recevoir :', }, resultsQuestions: apiFr.questionShortText, resultsEditAriaLabels: apiFr.questionAriaLabel, diff --git a/i18n/web/index.ts b/i18n/web/index.ts index 63b6f9952..4e750e8dd 100644 --- a/i18n/web/index.ts +++ b/i18n/web/index.ts @@ -159,6 +159,7 @@ export type WebTranslations = { partnerFutureEligible: string toReceive: string partnerToReceive: string + theyToReceive: string //nextStepOas: string }