Skip to content

Commit

Permalink
cleanup unused locales (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fbasham authored Mar 4, 2025
1 parent a7d1343 commit 4fb5a28
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 126 deletions.
67 changes: 5 additions & 62 deletions frontend/app/.server/locales/protected-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@
"no-cases": "No cases are currently assigned to you.",
"coming-soon": "Coming soon"
},
"countries": {
"select-option": "Select option",
"CAN": "Canada",
"FRA": "France"
},
"provinces": {
"select-option": "Select option",
"AB": "Alberta",
"BC": "British Columbia",
"MB": "Manitoba",
"NB": "New Brunswick",
"NL": "Newfoundland and Labrador",
"NT": "Northwest Territories",
"NS": "Nova Scotia",
"NU": "Nunavut",
"ON": "Ontario",
"PE": "Prince Edward Island",
"QC": "Quebec",
"SK": "Saskatchewan",
"YT": "Yukon"
},
"in-person": {
"title": "In-person SIN request",
"description": "Process an application or amendment"
Expand Down Expand Up @@ -134,12 +113,7 @@
},
"gender": {
"label": "Gender",
"required": "Gender is required.",
"options": {
"female": "Female",
"male": "Male",
"other": "Other"
}
"required": "Gender is required."
},
"citizenship-date": {
"label": "Citizenship date",
Expand All @@ -161,12 +135,7 @@
"document-type": {
"title": "Document type",
"required": "Document type is required.",
"invalid": "Document type is invalid.",
"options": {
"passport": "Passport (Canadian or foreign)",
"id-card": "Canadian provincial or territorial ID card or driver's license",
"other-id": "Any other Canadian government issued ID"
}
"invalid": "Document type is invalid."
},
"expiry-date": {
"title": "Expiry date",
Expand All @@ -189,26 +158,10 @@
"request-details": {
"page-title": "Applicant",
"select-scenario": "Select the scenario that best describes the client's situation",
"scenarios": {
"for-self": "Client is applying for themself",
"legal-guardian": "Client is a parent or legal guardian applying on behalf of a minor or a dependent adult child",
"legal-representative": "Client is a legal representative applying on behalf of someone else",
"as-employee": "Client is a provincial/territorial employee applying on behalf of someone for whom they have legal authority",
"estate-representative": "Client is a legal representative of an estate requesting confirmation of SIN for a deceased person"
},
"type-request": "Type of request",
"requests": {
"select-option": "Select option",
"first-time": "First time SIN",
"record-confirmation": "SIN record amendment / Confirmation of SIN",
"name-change": "Legal name change",
"expiry-extension": "Extension of expiry date",
"change-status": "Change of status",
"sin-confirmation": "Confirmation of SIN",
"new-sin": "New SIN (fraud)"
},
"required-scenario": "Client scenario is required.",
"required-request": "Type of request is required."
"required-request": "Type of request is required.",
"select-option": "Select option"
},
"current-name": {
"page-title": "Name for SIN",
Expand Down Expand Up @@ -284,22 +237,12 @@
"gender": {
"label": "Gender",
"help-message-primary": "This is pre-filled from the applicant's primary identity document and can be changed.",
"required": "Gender is required.",
"options": {
"female": "Female",
"male": "Male",
"other": "Other"
}
"required": "Gender is required."
}
},
"previous-sin": {
"page-title": "Previous SIN",
"has-previous-sin-label": "Has the applicant ever had a SIN?",
"has-previous-sin-options": {
"yes": "Yes",
"no": "No",
"unknown": "Unknown (don't recall)"
},
"social-insurance-number-label": "Social Insurance Number",
"error-messages": {
"has-previous-sin-required": "Select whether the applicant has had a previous SIN",
Expand Down
67 changes: 5 additions & 62 deletions frontend/app/.server/locales/protected-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@
"no-cases": "Aucun dossier n'est actuellement assigné à vous.",
"coming-soon": "Bientôt disponible"
},
"countries": {
"select-option": "Sélectionner une option",
"CAN": "Canada",
"FRA": "France"
},
"provinces": {
"select-option": "Sélectionner une option",
"AB": "Alberta",
"BC": "Colombie-Britannique",
"MB": "Manitoba",
"NB": "Nouveau-Brunswick",
"NL": "Terre-Neuve-et-Labrador",
"NT": "Territoires du Nord-Ouest",
"NS": "Nouvelle-Écosse",
"NU": "Nunavut",
"ON": "Ontario",
"PE": "Île-du-Prince-Édouard",
"QC": "Québec",
"SK": "Saskatchewan",
"YT": "Yukon"
},
"in-person": {
"title": "Demande NAS en personne",
"description": "Traiter une demande ou une modification"
Expand Down Expand Up @@ -134,12 +113,7 @@
},
"gender": {
"label": "Genre",
"required": "Le genre est requis.",
"options": {
"female": "Femme",
"male": "Homme",
"other": "Autre"
}
"required": "Le genre est requis."
},
"citizenship-date": {
"label": "Date de citoyenneté",
Expand All @@ -162,12 +136,7 @@
"document-type": {
"title": "Type de document",
"required": "Le type de document est requis.",
"invalid": "Le type de document est invalide.",
"options": {
"passport": "Passeport (canadien ou étranger)",
"id-card": "Carte d'identité ou permis de conduire provincial ou territorial canadien",
"other-id": "Toute autre pièce d'identité délivrée par le gouvernement canadien"
}
"invalid": "Le type de document est invalide."
},
"expiry-date": {
"title": "Date d'expiration",
Expand All @@ -190,26 +159,10 @@
"request-details": {
"page-title": "Demandeur",
"select-scenario": "Sélectionnez le scénario qui décrit le mieux la situation du client",
"scenarios": {
"for-self": "Le client fait une demande pour lui-même",
"legal-guardian": "Le client est un parent ou un tuteur légal qui présente une demande au nom d'un mineur ou d'un enfant adulte à charge",
"legal-representative": "Le client est un représentant légal qui présente une demande au nom d'une autre personne",
"as-employee": "Le client est un employé provincial/territorial qui présente une demande au nom d'une personne pour laquelle il a une autorité légale",
"estate-representative": "Le client est un représentant légal d'une succession qui demande la confirmation du NAS d'une personne décédée"
},
"type-request": "Type de demande",
"requests": {
"select-option": "Sélectionner une option",
"first-time": "Premier NAS",
"record-confirmation": "Modification de l'enregistrement du NAS / Confirmation du NAS",
"name-change": "Changement de nom légal",
"expiry-extension": "Prolongation de la date d'expiration",
"change-status": "Changement de statut",
"sin-confirmation": "Confirmation du NAS",
"new-sin": "Nouveau NAS (fraude)"
},
"required-scenario": "Scénario client est requis.",
"required-request": "Type de demande est requis."
"required-request": "Type de demande est requis.",
"select-option": "Sélectionner une option"
},
"current-name": {
"page-title": "Nom pour le NAS",
Expand Down Expand Up @@ -285,22 +238,12 @@
"gender": {
"label": "Genre",
"help-message-primary": "Celui-ci est pré-rempli à partir de la pièce d'identité principale du demandeur et peut être modifié.",
"required": "Le genre est requis.",
"options": {
"female": "Femme",
"male": "Homme",
"other": "Autre"
}
"required": "Le genre est requis."
}
},
"previous-sin": {
"page-title": "NAS précédent",
"has-previous-sin-label": "Le demandeur a-t-il déjà eu un NAS?",
"has-previous-sin-options": {
"yes": "Oui",
"no": "Non",
"unknown": "Inconnu (je ne me souviens pas)"
},
"social-insurance-number-label": "Numéro d'assurance sociale",
"error-messages": {
"has-previous-sin-required": "Indiquez si le demandeur a déjà eu un NAS.",
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/routes/protected/person-case/primary-docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function CurrentStatusInCanada({ defaultValue, errorMessage, onChange }: Current

const currentStatusInCanadaOptions = [
{
children: t('protected:request-details.requests.select-option'),
children: t('protected:request-details.select-option'),
value: '',
},
...CurrentStatusInCanada.map((value) => ({
Expand Down Expand Up @@ -420,7 +420,7 @@ function DocumentType({ currentStatus, defaultValue, errorMessage, onChange }: D

const documentTypeOptions = [
{
children: t('protected:request-details.requests.select-option'),
children: t('protected:request-details.select-option'),
value: '',
hidden: true,
},
Expand Down

0 comments on commit 4fb5a28

Please sign in to comment.