Skip to content

Commit

Permalink
ADO-132303: fixed text for partner "will be eligible" (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-solo authored Jul 16, 2023
1 parent 8c25a09 commit ad55d0a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/ResultsPage/WillBeEligible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions i18n/web/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions i18n/web/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions i18n/web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export type WebTranslations = {
partnerFutureEligible: string
toReceive: string
partnerToReceive: string
theyToReceive: string
//nextStepOas: string
}

Expand Down

0 comments on commit ad55d0a

Please sign in to comment.