Skip to content

Commit 325b86e

Browse files
applies text chanages to income page
1 parent 748d265 commit 325b86e

File tree

6 files changed

+230
-509
lines changed

6 files changed

+230
-509
lines changed

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

+19-17
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"invalid": "Your <abbr>UCCB</abbr> and <abbr>RDSP</abbr> income is invalid"
99
},
1010
"info-label": "Information",
11-
"label": "Your <abbrUCCB>UCCB</abbrUCCB> and <abbrRDSP>RDSP</abbrRDSP> income"
11+
"label": "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 <abbrUCCB>UCCB</abbrUCCB> and <abbrRDSP>RDSP</abbrRDSP> repayment"
18+
"label": "Your Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) repayment"
1919
},
2020
"net-income": {
2121
"error": {
@@ -31,14 +31,14 @@
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 <abbrUCCB>UCCB</abbrUCCB> and <abbrRDSP>RDSP</abbrRDSP> income"
34+
"label": "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": {
3838
"invalid": "Your partner's <abbr>UCCB</abbr> and <abbr>RDSP</abbr> repayment is invalid"
3939
},
4040
"info-label": "Information",
41-
"label": "Your partner's <abbrUCCB>UCCB</abbrUCCB> and <abbrRDSP>RDSP</abbrRDSP> repayment"
41+
"label": "Your partner's Universal Child Care Benefit (<abbr>UCCB</abbr>) and Registered Disability Savings Plan (<abbr>RDSP</abbr>) repayment"
4242
},
4343
"net-income": {
4444
"error": {
@@ -67,23 +67,21 @@
6767
}
6868
},
6969
"form-instructions": {
70-
"married": "To estimate your benefits, we will need the following information from your {{year}} tax return and your partner's {{year}} tax return.",
71-
"single": "To estimate your benefits, we will need the following information from your {{year}} tax return:"
70+
"married": "To estimate your benefits, we will need the following information from your and your partner's <strong>{{year}} tax returns</strong>.",
71+
"single": "To estimate your benefits, we will need the following information from your <strong>{{year}} tax return</strong>",
72+
"note": "If any total amounts are negative or zero, enter '0'."
7273
},
7374
"heading": {
7475
"your-info": "Your information",
7576
"partner-info": "Your partner's information"
7677
},
7778
"info": {
78-
"CDB": { "term": "CDB", "text": "Canada Disability Benefit" },
79-
"claimed-income": "Income claimed by you (line 11700 and line 12500 of your tax return). If field is left blank, we will assume it is zero.",
80-
"claimed-repayment": "Repayment claimed by you (line 21300 and line 23200 of your tax return). If field is left blank, we will assume it is zero.",
81-
"net-income": "Line 23600 on your tax return. If your net income is negative, enter '0'",
82-
"partner-claimed-income": "Income claimed by your spouse/partner (line 11700 and line 12500 of their tax return). If field is left blank, we will assume it is zero.",
83-
"partner-claimed-repayment": "Repayment claimed by your spouse/partner (line 21300 and line 23200 of their tax return). If field is left blank, we will assume it is zero.",
84-
"partner-net-income": "Line 23600 on your spouse/partners tax return. If your the net income is negative, enter '0'",
85-
"RDSP": { "term": "RDSP", "text": "Registered Disability Savings Plan" },
86-
"UCCB": { "term": "UCCB", "text": "Universal Child Care Benefit" },
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.",
8785
"working-income": {
8886
"items": [
8987
"Employment income (line 10100)",
@@ -95,8 +93,12 @@
9593
"Farming income (use 0 if the amount is negative) (line 14100)",
9694
"Fishing income (use 0 if the amount is negative) (line 14300)"
9795
],
98-
"text1": "To determine your working income, add up all the following types of income:",
99-
"text2": "If your working income is negative, enter '0'."
96+
"text1": "To calculate your working income, add up all the following lines from your {{year}} tax return:",
97+
"description": "This is income you made from your employment or self-employment."
98+
},
99+
"partner-working-income": {
100+
"text1": "To calculate your partner's working income, add up all the following lines from their {{year}} tax return:",
101+
"description": "This is income your partner made from their employment or self-employment."
100102
}
101103
},
102104
"page-title": "Step 2 of 2: Income"

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

+19-17
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"invalid": "Votre revenu de <abbr>PUGE</abbr> et <abbr>REEI</abbr> est invalide"
99
},
1010
"info-label": "Information",
11-
"label": "Votre revenu de <abbrUCCB>PUGE</abbrUCCB> et <abbrRDSP>REEI</abbrRDSP>"
11+
"label": "Votre revenu de la Prestation universelle pour la garde d'enfants (<abbr>PUGE</abbr>) et du Régime enregistré d'épargne-invalidité (<abbr>REEI</abbr>)"
1212
},
1313
"claimed-repayment": {
1414
"error": {
1515
"invalid": "Votre remboursement de <abbr>PUGE</abbr> et <abbr>REEI</abbr> est invalide"
1616
},
1717
"info-label": "Information",
18-
"label": "Votre remboursement de <abbrUCCB>PUGE</abbrUCCB> et <abbrRDSP>REEI</abbrRDSP>"
18+
"label": "Votre remboursement de la Prestation universelle pour la garde d'enfants (<abbr>PUGE</abbr>) et du Régime enregistré d'épargne-invalidité (<abbr>REEI</abbr>)"
1919
},
2020
"net-income": {
2121
"error": {
@@ -31,14 +31,14 @@
3131
"invalid": "Le revenu de <abbr>PUGE</abbr> et <abbr>REEI</abbr> de votre partenaire est invalide"
3232
},
3333
"info-label": "Information",
34-
"label": "Le revenu de <abbrUCCB>PUGE</abbrUCCB> et <abbrRDSP>REEI</abbrRDSP> de votre partenaire"
34+
"label": "Le revenu de votre partenaire provenant de la Prestation universelle pour la garde d'enfants (<abbr>PUGE</abbr>) et du Régime enregistré d'épargne-invalidité (<abbr>REEI</abbr>)"
3535
},
3636
"claimed-repayment": {
3737
"error": {
3838
"invalid": "Le remboursement de <abbr>PUGE</abbr> et <abbr>REEI</abbr> de votre partenaire est invalid"
3939
},
4040
"info-label": "Information",
41-
"label": "Le remboursement de <abbrUCCB>PUGE</abbrUCCB> et <abbrRDSP>REEI</abbrRDSP> de votre partenaire"
41+
"label": "Le remboursement par votre partenaire de la Prestation universelle pour la garde d'enfants (<abbr>PUGE</abbr>) et du Régime enregistré d'épargne-invalidité (<abbr>REEI</abbr>)"
4242
},
4343
"net-income": {
4444
"error": {
@@ -67,23 +67,21 @@
6767
}
6868
},
6969
"form-instructions": {
70-
"married": "Pour estimer vos prestations, nous aurons besoin des renseignements suivants de votre déclaration de revenus de {{year}} et de la déclaration de revenus de {{year}} de votre partenaire.",
71-
"single": "Pour estimer vos prestations, nous aurons besoin des renseignements suivants de votre déclaration de revenus de {{year}}. "
70+
"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'."
7273
},
7374
"heading": {
7475
"your-info": "Votre information",
7576
"partner-info": "L'information de votre partenaire"
7677
},
7778
"info": {
78-
"CDB": { "term": "PCPH", "text": "Prestation canadienne des personnes handicapées" },
79-
"claimed-income": "Revenu que vous avez demandé (ligne 11700 et ligne 12500 de votre déclaration de revenus). Si le champ est laisse vide, nous supposerons qu'il est égal à zéro.",
80-
"claimed-repayment": "Remboursement que vous avez demandé (ligne 21300 et ligne 23200 de votre déclaration de revenus). Si le champ est laisse vide, nous supposerons qu'il est égal à zéro.",
81-
"net-income": "Ligne 23600 de votre déclaration. Si votre revenu net est négatif, entrez '0'",
82-
"partner-claimed-income": "Revenu que votre conjoint a demandé (ligne 11700 et ligne 12500 de leur déclaration de revenus). Si le champ est laisse vide, nous supposerons qu'il est égal à zéro.",
83-
"partner-claimed-repayment": "Remboursement que votre conjoint a demandé (ligne 21300 et ligne 23200 de leur déclaration de revenus). Si le champ est laisse vide, nous supposerons qu'il est égal à zéro.",
84-
"partner-net-income": "Ligne 23600 de la déclaration de votre conjoint.",
85-
"RDSP": { "term": "REEI", "text": "Revenus d'un régime enregistré d'épargne-invalidité" },
86-
"UCCB": { "term": "PUGE", "text": "Prestation universelle pour la garde d'enfants" },
79+
"claimed-income": "Revenu déclaré par vous (lignes 11700 et 12500 de votre déclaration de revenus).",
80+
"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.",
82+
"partner-claimed-income": "Revenu déclaré par votre conjoint (ligne 11700 et ligne 12500 de leur déclaration de revenus).",
83+
"partner-claimed-repayment": "Remboursement déclaré par votre conjoint (ligne 21300 et ligne 23200 de leur déclaration de revenus).",
84+
"partner-net-income": "Ligne 23600 de la déclaration de revenus de votre conjoint.",
8785
"working-income": {
8886
"items": [
8987
"Revenus d'emploi (linge 10100)",
@@ -95,8 +93,12 @@
9593
"Revenus d'agriculture (entrez 0 si le montant et négatif) (ligne 14100)",
9694
"Revenus de pêche (entrez 0 si le montant et négatif) (ligne 14300)"
9795
],
98-
"text1": "Pour déterminer votre revenu de travail, additionnez tous les types de revenus suivants\u00A0:",
99-
"text2": "Si votre revenu de travail est négatif, entrez '0'."
96+
"text1": "Pour calculer votre revenu de travail, additionnez toutes les lignes suivantes de votre déclaration de revenus de {{year}}\u00A0:",
97+
"description": "Votre revenu provenant d'un emploi ou d'un travail indépendant"
98+
},
99+
"partner-working-income": {
100+
"text1": "Pour calculer le revenu de travail de votre partenaire, additionnez toutes les lignes suivantes de la déclaration de revenus de cette personne pour l’année {{year}} :",
101+
"description": "Le revenu de votre partenaire provenant d'un emploi ou d'un travail indépendant."
100102
}
101103
},
102104
"page-title": "Étape 2 de 2\u00A0: Revenu"

frontend/app/components/currency-field.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export function CurrencyField({ allowNegative = false, maxLength, ...rest }: Cur
3030
beforeInput={i18n.language === 'en' ? <span className="mr-1">$</span> : undefined}
3131
afterInput={i18n.language === 'fr' ? <span className="ml-1">$</span> : undefined}
3232
className={cn('inline', rest.className)}
33+
inputMode="numeric"
3334
{...rest}
3435
/>
3536
);

0 commit comments

Comments
 (0)