Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n refactoring #465

Merged
merged 3 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 15 additions & 30 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"contact-us": "Contact us",
"application-name-bar": "Passport application status checker",
"banner": {
"alert": "Test site",
"description": "You cannot check the status of your passport application through this test site. Parts of this site may not work and will change."
},
"contact-us-link": "https://www.canada.ca/en/immigration-refugees-citizenship/services/canadian-passports/contact-passport-program.html",
"date-select-field": {
"day": "Day",
"month": "Month",
"year": "Year"
},
"english": "English",
"footer": {
"date-modified-text": "Date Modified: ",
"canada-ca-alt-text": "Symbol of the Government of Canada",
"date-modified-text": "Date Modified: ",
"header": "About this Site",
"nav-header": "Government of Canada Corporate",
"links": {
"about-canada-ca": "About Canada.ca",
"about-canada-ca-url": "https://www.canada.ca/en/government/about.html",
Expand All @@ -23,45 +25,28 @@
"social-media-url": "https://www.canada.ca/en/social.html",
"terms-and-condition": "Terms and conditions",
"terms-and-condition-url": "https://www.canada.ca/en/transparency/terms.html"
}
},
"nav-header": "Government of Canada Corporate"
},
"found-errors_one": "The following error was found in the form:",
"found-errors_other": "The following {{count}} errors were found in the form:",
"francais": "Français",
"goc": "Government of Canada",
"header": {
"goc-link": "https://www.canada.ca/en.html",
"skip-to-main": "Skip to main content"
},
"language-selection": "Language selection",
"login": "Login",
"required": "(required)",
"service-and-benefits": "Service and Benefits",
"skip-to": {
"about-government": "Skip to 'About government'"
},
"title": "home",
"tools": "Tools",
"top-of-page": "Top of Page",
"welcome": "Welcome to",
"modal-go-back": {
"cancel-button": "Cancel",
"yes-button": "Yes",
"no-button": "No",
"description": "Are you sure you want to go back?",
"header": "Return to the home page",
"description": "Are you sure you want to go back?"
"no-button": "No",
"yes-button": "Yes"
},
"modal-idle-timeout": {
"header": "Session timeout warning",
"description": "You have been inactive for 10 minutes and your session is set to expire in {{timeRemaining}}. Select \"Continue Session\" to continue your session.",
"continue-session": "Continue session",
"end-session": "End session"
"description": "You have been inactive for 10 minutes and your session is set to expire in {{timeRemaining}}. Select \"Continue Session\" to continue your session.",
"end-session": "End session",
"header": "Session timeout warning"
},
"phone-number": "1\u2011800\u2011567\u20116868",
"opens-in-new-tab": "(opens in a new tab)",
"banner": {
"alert": "Test site",
"description": "You cannot check the status of your passport application through this test site. Parts of this site may not work and will change."
},
"application-name-bar": "Passport application status checker"
"required": "(required)"
}
76 changes: 35 additions & 41 deletions public/locales/en/email.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
{
"header": "Get my passport application file number or reference number",
"email": {
"label": "Email address",
"error": {
"required": "The email address is required.",
"valid": "The email address must be valid."
},
"help-message": "Enter it exactly as provided on your passport application form.",
"help-message-secondary": "<strong>For child applications,</strong> provide the full email address for the applicant parent or legal guardian exactly as provided on the passport application."
},
"given-name": {
"error": {
"required": "The given name(s) is required."
},
"label": "Given name(s), as you detailed on the application",
"help-message": "Enter first name(s) and any middle name(s)."
},
"surname": {
"error": {
"required": "The surname is required."
},
"label": "Surname, as you detailed on the application",
"help-message": "Enter last name."
},
"date-of-birth": {
"error": {
"current": "The date of birth must be in the past.",
Expand All @@ -31,38 +7,56 @@
},
"label": "Date of birth, as you detailed on the application"
},
"email-esrf": "Email me the file number or reference number",
"email-sent-confirmation": "An email has been sent if there was a match in our records with the file number (ESRF).",
"email": {
"error": {
"required": "The email address is required.",
"valid": "The email address must be valid."
},
"help-message": "Enter it exactly as provided on your passport application form.",
"help-message-secondary": "<strong>For child applications,</strong> provide the full email address for the applicant parent or legal guardian exactly as provided on the passport application.",
"label": "Email address"
},
"email-confirmation-msg": {
"request-received": "Your request has been received",
"dont-receive": "If you don't receive an email, you can:",
"dont-receive-list": {
"item-1": "review the information you entered and try again or",
"item-2": "try again tomorrow — we update our records daily"
},
"if-exists": "If we can find the file with the information you gave us, <strong>we'll email you the file number or reference number</strong>. If you don't receive the email in your inbox, check your junk folder.",
"may-not-receive": "You may not receive an email if:",
"may-not-receive-list": {
"item-1": "the information you gave us doesn't match the information in our system or",
"item-2": "we received the application, but haven't started processing it yet"
},
"dont-receive": "If you don't receive an email, you can:",
"dont-receive-list": {
"item-1": "review the information you entered and try again or",
"item-2": "try again tomorrow — we update our records daily"
},
"please-contact": "If you still don't receive it, <Link>contact us</Link>."
"please-contact": "If you still don't receive it, <Link>contact us</Link>.",
"request-received": "Your request has been received"
},
"page-unauth": {
"header": "Page Unauthorized",
"desc": "Please accept the Privacy and Email terms as well as give your consent before getting your file number (ESRF)",
"button": "Privacy and Email terms"
"email-esrf": "Email me the file number or reference number",
"given-name": {
"error": {
"required": "The given name(s) is required."
},
"help-message": "Enter first name(s) and any middle name(s).",
"label": "Given name(s), as you detailed on the application"
},
"header": "Get my passport application file number or reference number",
"header-messages": {
"matches": "<strong>Make sure your information matches the proof of citizenship and supporting ID used when you applied for a passport.</strong> Your proof of citizenship could be one of the following:",
"child-applications": "Child applications",
"for-child-application": "Use the child's given name(s) and surname and date of birth, exactly as provided on their proof of citizenship.",
"list": {
"item-1": "birth certificate",
"item-2": "citizenship certificate",
"item-3": "citizenship card or",
"item-4": "other documents, like a naturalization certificate"
},
"child-applications": "Child applications",
"for-child-application": "Use the child's given name(s) and surname and date of birth, exactly as provided on their proof of citizenship."
"matches": "<strong>Make sure your information matches the proof of citizenship and supporting ID used when you applied for a passport.</strong> Your proof of citizenship could be one of the following:"
},
"request-another": "Request another file number or reference number"
"request-another": "Request another file number or reference number",
"surname": {
"error": {
"required": "The surname is required."
},
"help-message": "Enter last name.",
"label": "Surname, as you detailed on the application"
}
}
34 changes: 17 additions & 17 deletions public/locales/en/expectations.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{
"header": "Passport Application Status Checker",
"header-avoid-waiting": "Avoid waiting on the phone and get the status of your passport application online",
"header-who-can-check": "Who can check their status online",
"header-privacy": "Privacy notice statement",
"can-check": {
"description": "You <strong>can get the status</strong> of your application online if you submitted your passport application either:",
"list": {
"item-1": "in person or by mail in Canada or",
"item-2": "by mail from the United States"
}
},
"available-after": {
"description": "The status of your application is available after:",
"updated-status": "We update the status of applications daily.",
"list": {
"item-1": "5 business days if you applied in person or",
"item-2": "10 business days if you applied by mail"
},
"updated-status": "We update the status of applications daily."
},
"button-agree": "I have read and understand",
"can-check": {
"description": "You <strong>can get the status</strong> of your application online if you submitted your passport application either:",
"list": {
"item-1": "in person or by mail in Canada or",
"item-2": "by mail from the United States"
}
},
"cannot-check": {
Expand All @@ -30,16 +27,19 @@
"2": "In addition, Employment and Social Development Canada (ESDC) collects your email address only if you require us to send your passport application file number or reference number by email. Without your email address, ESDC cannot send your passport application number electronically.",
"3": "Your personal information may also be used to improve services through evaluations, reports, and research. In addition, your information may be shared with Immigration, Refugees and Citizenship Canada for program integrity purposes and to improve services through evaluations, reports, and research.",
"4": "This application uses services from third-party provider Microsoft Corporation, which may be subject to foreign laws. For more information, see <Link>Microsoft Data Privacy Policy & Privacy Principles</Link>.",
"5": "Your personal information is administered in accordance with the <em>Department of Employment and Social Development Act</em>, <em>Privacy Act</em>, and other applicable laws. You have the right of access to and protection of your personal information, which is described in Personal Information Bank \u2013 Passport Program (ESDC PPU 708). Instructions for obtaining this information are outlined in the government publication titled, <Link>Information about Programs and Information Holdings</Link>.",
"6": "If you are not satisfied with ESDC's response to your privacy concerns, you have the right to <Link>file a complaint</Link> with the Privacy Commissioner of Canada regarding ESDC's handling of your personal information.",
"4-link": "https://www.microsoft.com/en-ca/trust-center/privacy",
"5": "Your personal information is administered in accordance with the <em>Department of Employment and Social Development Act</em>, <em>Privacy Act</em>, and other applicable laws. You have the right of access to and protection of your personal information, which is described in Personal Information Bank – Passport Program (ESDC PPU 708). Instructions for obtaining this information are outlined in the government publication titled, <Link>Information about Programs and Information Holdings</Link>.",
"5-link": "https://www.canada.ca/en/employment-social-development/corporate/transparency/access-information/reports/infosource.html",
"6": "If you are not satisfied with ESDC's response to your privacy concerns, you have the right to <Link>file a complaint</Link> with the Privacy Commissioner of Canada regarding ESDC's handling of your personal information.",
"6-link": "https://www.priv.gc.ca/en/report-a-concern"
},
"button-agree": "I have read and understand",
"do-not-travel": "Don't finalize travel plans without a passport",
"not-liable": "We're not liable for any losses if you do not receive it in time for travel.",
"header": "Passport Application Status Checker",
"header-avoid-waiting": "Avoid waiting on the phone and get the status of your passport application online",
"header-privacy": "Privacy notice statement",
"header-who-can-check": "Who can check their status online",
"meta": {
"description": "Avoid waiting on the phone and request the status of your application online."
}
},
"not-liable": "We're not liable for any losses if you do not receive it in time for travel."
}
Loading