Skip to content

Commit 040f505

Browse files
implemented latest EN updates (#265)
* implemented latest EN updates
1 parent bc6fc4f commit 040f505

File tree

5 files changed

+59
-45
lines changed

5 files changed

+59
-45
lines changed

frontend/app/.server/locales/estimator-en.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@
88
"invalid": "Your <abbr>UCCB</abbr> and <abbr>RDSP</abbr> income is invalid"
99
},
1010
"info-label": "Information",
11-
"label": "Your Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) income"
11+
"label": "Enter your Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) income."
1212
},
1313
"claimed-repayment": {
1414
"error": {
1515
"invalid": "Your <abbr>UCCB</abbr> and <abbr>RDSP</abbr> repayment is invalid"
1616
},
1717
"info-label": "Information",
18-
"label": "Your Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) repayment"
18+
"label": "Enter your Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) repayment."
1919
},
2020
"net-income": {
2121
"error": {
2222
"invalid": "Your net income is invalid",
2323
"required": "Your net income is required"
2424
},
2525
"info-label": "How to calculate your net income",
26-
"label": "Your net income"
26+
"label": "Enter your net income"
2727
},
2828
"partner": {
2929
"claimed-income": {
3030
"error": {
3131
"invalid": "Your partner's <abbr>UCCB</abbr> and <abbr>RDSP</abbr> income is invalid"
3232
},
3333
"info-label": "Information",
34-
"label": "Your partner's Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) income"
34+
"label": "Enter your partner's Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) income."
3535
},
3636
"claimed-repayment": {
3737
"error": {
@@ -46,15 +46,15 @@
4646
"required": "Your partner's net income is required"
4747
},
4848
"info-label": "How to calculate your partner's net income",
49-
"label": "Your partner's net income"
49+
"label": "Enter your partner's net income."
5050
},
5151
"working-income": {
5252
"error": {
5353
"invalid": "Your partner's working income is invalid",
5454
"required": "Your partner's working income is required"
5555
},
5656
"info-label": "How to calculate your partner's working income",
57-
"label": "Your partner's working income"
57+
"label": "Enter your partner's working income"
5858
}
5959
},
6060
"working-income": {
@@ -63,7 +63,7 @@
6363
"required": "Your working income is required"
6464
},
6565
"info-label": "How to calculate your working income",
66-
"label": "Your working income"
66+
"label": "Enter your working income"
6767
}
6868
},
6969
"form-instructions": {
@@ -76,12 +76,12 @@
7676
"partner-info": "Your partner's information"
7777
},
7878
"info": {
79-
"claimed-income": "Income claimed by you (line 11700 and line 12500 of your tax return).",
80-
"claimed-repayment": "Repayment claimed by you (line 21300 and line 23200 of your tax return).",
81-
"net-income": "Line 23600 on your tax return.",
82-
"partner-claimed-income": "Income claimed by your partner (line 11700 and line 12500 of their tax return).",
83-
"partner-claimed-repayment": "Repayment claimed by your partner (line 21300 and line 23200 of their tax return).",
84-
"partner-net-income": "Line 23600 on your partner's tax return.",
79+
"claimed-income": "To calculate this amount, add line 11700 and line 12500 of your {{year}} tax return.",
80+
"claimed-repayment": "To calculate this amount, add line 21300 and line 23200 of your {{year}} tax return.",
81+
"net-income": "This is found on line 23600 of your {{year}} tax return.",
82+
"partner-claimed-income": "To calculate this amount, add line 11700 and line 12500 of your partner's {{year}} tax return.",
83+
"partner-claimed-repayment": "To calculate this amount, add line 21300 and line 23200 of your partner's {{year}} tax return.",
84+
"partner-net-income": "This is found on line 23600 of your partner's {{year}} tax return.",
8585
"working-income": {
8686
"items": [
8787
"Employment income (line 10100)",

frontend/app/.server/locales/estimator-fr.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"required": "Votre revenu net est requis"
2424
},
2525
"info-label": "Comment calculer votre revenu net ?",
26-
"label": "Votre revenu net"
26+
"label": "Entrez votre revenu net"
2727
},
2828
"partner": {
2929
"claimed-income": {
@@ -63,22 +63,22 @@
6363
"required": "Votre revenu d'emploi est requis"
6464
},
6565
"info-label": "Comment calculer votre revenu d'emploi ?",
66-
"label": "Votre revenu d'emploi"
66+
"label": "Entrez votre revenu d'emploi"
6767
}
6868
},
6969
"form-instructions": {
7070
"married": "Pour estimer vos prestations, nous aurons besoin des renseignements figurant sur votre <strong>déclaration de revenus de {{year}}</strong> ainsi que sur celle de votre partenaire.",
71-
"single": "Pour estimer vos prestations, nous aurons besoin des renseignements figurant sur votre <strong>déclaration de revenus de {{year}}</strong>.",
72-
"note": "Si un montant total est négatif ou égal à zéro, inscrivez '0'."
71+
"single": "Pour estimer vos prestations, nous aurons besoin des renseignements suivants de votre <strong>déclaration de revenus de {{year}}</strong>.",
72+
"note": "Si un des montants est négatif ou nul, entrez '0'."
7373
},
7474
"heading": {
75-
"your-info": "Votre information",
76-
"partner-info": "L'information de votre partenaire"
75+
"your-info": "Votre information\u00A0:",
76+
"partner-info": "L'information de votre partenaire\u00A0:"
7777
},
7878
"info": {
7979
"claimed-income": "Revenu déclaré par vous (lignes 11700 et 12500 de votre déclaration de revenus).",
8080
"claimed-repayment": "Remboursement déclaré par vous (lignes 21300 et 23200 de votre déclaration de revenus).",
81-
"net-income": "Ligne 23600 de votre déclaration.",
81+
"net-income": "Il se trouve à la ligne 23600 de votre déclaration de revenus {{year}}.",
8282
"partner-claimed-income": "Revenu déclaré par votre conjoint (ligne 11700 et ligne 12500 de leur déclaration de revenus).",
8383
"partner-claimed-repayment": "Remboursement déclaré par votre conjoint (ligne 21300 et ligne 23200 de leur déclaration de revenus).",
8484
"partner-net-income": "Ligne 23600 de la déclaration de revenus de votre conjoint.",

frontend/app/routes/estimator/step-income.tsx

+18-7
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,17 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
183183
)}
184184
</p>
185185
<p>{t('estimator:income.form-instructions.note')}</p>
186-
<h2 className="font-lato mb-4 text-2xl font-bold">{t('estimator:income.heading.your-info')}</h2>
186+
{loaderData.isMarried && (
187+
<h2 className="font-lato mb-4 text-2xl font-bold">{t('estimator:income.heading.your-info')}</h2>
188+
)}
187189
<CurrencyField
188190
name="individual-net-income"
189191
label={t('estimator:income.fields.net-income.label')}
190192
required
191193
helpMessagePrimaryClassName="-max-w-prose text-black"
192194
helpMessagePrimary={
193195
<p>
194-
<Trans i18nKey={'estimator:income.info.net-income'} />
196+
<Trans i18nKey={'estimator:income.info.net-income'} values={{ year: previousIncomeTaxReturnYear }} />
195197
</p>
196198
}
197199
defaultValue={
@@ -255,7 +257,7 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
255257
helpMessagePrimaryClassName="-max-w-prose text-black"
256258
helpMessagePrimary={
257259
<p>
258-
<Trans i18nKey={'estimator:income.info.claimed-income'} />
260+
<Trans i18nKey={'estimator:income.info.claimed-income'} values={{ year: previousIncomeTaxReturnYear }} />
259261
</p>
260262
}
261263
defaultValue={
@@ -275,7 +277,7 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
275277
helpMessagePrimaryClassName="-max-w-prose text-black"
276278
helpMessagePrimary={
277279
<p>
278-
<Trans i18nKey={'estimator:income.info.claimed-repayment'} />
280+
<Trans i18nKey={'estimator:income.info.claimed-repayment'} values={{ year: previousIncomeTaxReturnYear }} />
279281
</p>
280282
}
281283
defaultValue={
@@ -300,7 +302,10 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
300302
helpMessagePrimaryClassName="-max-w-prose text-black"
301303
helpMessagePrimary={
302304
<p>
303-
<Trans i18nKey={'estimator:income.info.partner-net-income'} />
305+
<Trans
306+
i18nKey={'estimator:income.info.partner-net-income'}
307+
values={{ year: previousIncomeTaxReturnYear }}
308+
/>
304309
</p>
305310
}
306311
defaultValue={
@@ -365,7 +370,10 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
365370
helpMessagePrimaryClassName="-max-w-prose text-black"
366371
helpMessagePrimary={
367372
<p>
368-
<Trans i18nKey={'estimator:income.info.partner-claimed-income'} />
373+
<Trans
374+
i18nKey={'estimator:income.info.partner-claimed-income'}
375+
values={{ year: previousIncomeTaxReturnYear }}
376+
/>
369377
</p>
370378
}
371379
defaultValue={
@@ -387,7 +395,10 @@ export default function StepIncome({ actionData, loaderData, matches, params }:
387395
helpMessagePrimaryClassName="-max-w-prose text-black"
388396
helpMessagePrimary={
389397
<p>
390-
<Trans i18nKey={'estimator:income.info.partner-claimed-repayment'} />
398+
<Trans
399+
i18nKey={'estimator:income.info.partner-claimed-repayment'}
400+
values={{ year: previousIncomeTaxReturnYear }}
401+
/>
391402
</p>
392403
}
393404
defaultValue={

frontend/e2e/__snapshots__/estimator/step-income.spec.ts/Navigating-to-en-income-renders-the-english-income-page-1.txt

+11-12
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@
1717
your <strong>2024 tax return</strong>
1818
</p>
1919
<p>If any total amounts are negative or zero, enter '0'.</p>
20-
<h2 class="font-lato mb-4 text-2xl font-bold">Your information</h2>
2120
<div id="input-text-field-«Rhmlj5»" class="space-y-2">
2221
<label class="block" id="input-text-field-«Rhmlj5»-label"
23-
><span class="font-semibold">Your net income</span></label
22+
><span class="font-semibold">Enter your net income</span></label
2423
>
2524
<div
2625
class="-max-w-prose text-black"
2726
data-testid="input-help"
2827
id="input-text-field-«Rhmlj5»-help-primary"
2928
>
30-
<p>Line 23600 on your tax return.</p>
29+
<p>This is found on line 23600 of your 2024 tax return.</p>
3130
</div>
3231
<span class="mr-1">$</span
3332
><input
@@ -47,7 +46,7 @@
4746
</div>
4847
<div id="input-text-field-«Rlmlj5»" class="space-y-2">
4948
<label class="block" id="input-text-field-«Rlmlj5»-label"
50-
><span class="font-semibold">Your working income</span></label
49+
><span class="font-semibold">Enter your working income</span></label
5150
>
5251
<div
5352
class="-max-w-prose text-black"
@@ -128,9 +127,9 @@
128127
<div id="input-text-field-«Rpmlj5»" class="space-y-2">
129128
<label class="block" id="input-text-field-«Rpmlj5»-label"
130129
><span class="font-semibold"
131-
>Your Universal Child Care Benefit (<abbr>UCCB</abbr>) and
130+
>Enter your Universal Child Care Benefit (<abbr>UCCB</abbr>) and
132131
Registered Disability Savings Plan (<abbr>RDSP</abbr>)
133-
income</span
132+
income.</span
134133
>
135134
<span aria-hidden="true">(<!-- -->optional<!-- -->)</span></label
136135
>
@@ -140,8 +139,8 @@
140139
id="input-text-field-«Rpmlj5»-help-primary"
141140
>
142141
<p>
143-
Income claimed by you (line 11700 and line 12500 of your tax
144-
return).
142+
To calculate this amount, add line 11700 and line 12500 of your
143+
2024 tax return.
145144
</p>
146145
</div>
147146
<span class="mr-1">$</span
@@ -161,9 +160,9 @@
161160
<div id="input-text-field-«Rtmlj5»" class="space-y-2">
162161
<label class="block" id="input-text-field-«Rtmlj5»-label"
163162
><span class="font-semibold"
164-
>Your Universal Child Care Benefit (<abbr>UCCB</abbr>) and
163+
>Enter your Universal Child Care Benefit (<abbr>UCCB</abbr>) and
165164
Registered Disability Savings Plan (<abbr>RDSP</abbr>)
166-
repayment</span
165+
repayment.</span
167166
>
168167
<span aria-hidden="true">(<!-- -->optional<!-- -->)</span></label
169168
>
@@ -173,8 +172,8 @@
173172
id="input-text-field-«Rtmlj5»-help-primary"
174173
>
175174
<p>
176-
Repayment claimed by you (line 21300 and line 23200 of your tax
177-
return).
175+
To calculate this amount, add line 21300 and line 23200 of your
176+
2024 tax return.
178177
</p>
179178
</div>
180179
<span class="mr-1">$</span

frontend/e2e/__snapshots__/estimator/step-income.spec.ts/Navigating-to-fr-revenus-renders-the-french-income-page-1.txt

+10-6
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,22 @@
1616
<div class="space-y-6">
1717
<p>
1818
Pour estimer vos prestations, nous aurons besoin des renseignements
19-
figurant sur votre <strong>déclaration de revenus de 2024</strong>.
19+
suivants de votre <strong>déclaration de revenus de 2024</strong>.
2020
</p>
21-
<p>Si un montant total est négatif ou égal à zéro, inscrivez '0'.</p>
22-
<h2 class="font-lato mb-4 text-2xl font-bold">Votre information</h2>
21+
<p>Si un des montants est négatif ou nul, entrez '0'.</p>
2322
<div id="input-text-field-«Rhmlj5»" class="space-y-2">
2423
<label class="block" id="input-text-field-«Rhmlj5»-label"
25-
><span class="font-semibold">Votre revenu net</span></label
24+
><span class="font-semibold">Entrez votre revenu net</span></label
2625
>
2726
<div
2827
class="-max-w-prose text-black"
2928
data-testid="input-help"
3029
id="input-text-field-«Rhmlj5»-help-primary"
3130
>
32-
<p>Ligne 23600 de votre déclaration.</p>
31+
<p>
32+
Il se trouve à la ligne 23600 de votre déclaration de revenus
33+
2024.
34+
</p>
3335
</div>
3436
<input
3537
aria-describedby="input-text-field-«Rhmlj5»-help-primary"
@@ -48,7 +50,9 @@
4850
</div>
4951
<div id="input-text-field-«Rlmlj5»" class="space-y-2">
5052
<label class="block" id="input-text-field-«Rlmlj5»-label"
51-
><span class="font-semibold">Votre revenu d'emploi</span></label
53+
><span class="font-semibold"
54+
>Entrez votre revenu d'emploi</span
55+
></label
5256
>
5357
<div
5458
class="-max-w-prose text-black"

0 commit comments

Comments
 (0)