Skip to content

Commit

Permalink
feat: modify accessibility text (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
RenauxLeaInsee authored Jan 8, 2025
1 parent 38d8acb commit 4050954
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "platine-access",
"version": "2.0.0",
"version": "2.3.0",
"private": true,
"dependencies": {
"@codegouvfr/react-dsfr": "^1.9.14",
Expand Down
19 changes: 6 additions & 13 deletions src/components/Accessibility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ export const Accessibility = () => {
return (
<FooterPageLayout t={t}>
<p>{t("accessibilityText")}</p>
<p>{t("accessibilityPlan")}</p>
<div className="fr-col fr-mb-2w">
<ul>
<li>{t("multiYearPlan")}</li>
<li>{t("actionPlans")}</li>
</ul>
</div>

<p>{t("accessibilityDocumentsNote")}</p>
<p>{t("accessibilityPlan", {})}</p>
<p>{t("accessibilityStatementLink", {})}</p>

<TitleWithText title={t("complianceStatusTitle")} text={t("complianceStatusText")} />
Expand Down Expand Up @@ -59,10 +51,11 @@ export const Accessibility = () => {
const { i18n } = declareComponentKeys<
| "pageTitle"
| "accessibilityText"
| "accessibilityPlan"
| "multiYearPlan"
| "actionPlans"
| "accessibilityDocumentsNote"
| {
K: "accessibilityPlan";
P: Record<string, never>;
R: JSX.Element;
}
| {
K: "accessibilityStatementLink";
P: Record<string, never>;
Expand Down
22 changes: 15 additions & 7 deletions src/i18n/resources/en.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,20 @@ export const translations: Translations<"en"> = {
"pageTitle": "Accessibility",
"accessibilityText":
"Insee is committed to making its internet, intranet, extranet sites, and software applications accessible (including mobile applications and digital urban furniture) in accordance with Article 47 of Law No. 2005-102 of February 11, 2005.",
"multiYearPlan": " To this end, it implements the following strategy and actions:",
"accessibilityPlan": "Multi-year accessibility implementation plan 2022-2024",
"actionPlans": "Action plans 2023, 2024",

"accessibilityDocumentsNote": "These documents are available upon request.",

accessibilityPlan: () => (
<p>
To this end, it implements a multi-year plan setting out Insee's digital accessibility policy
(currently being drafted), as well as an annual action plan.{" "}
<a
className="fr-link"
href="https://www.insee.fr/fr/information/7621795"
target="_blank"
title="Insee's multi-year digital accessibility plan 2023-2025 - open link in a new tab"
>
https://www.insee.fr/fr/information/7621795
</a>
</p>
),
accessibilityStatementLink: () => (
<p>
This accessibility statement applies to{" "}
Expand Down Expand Up @@ -338,7 +346,7 @@ export const translations: Translations<"en"> = {
"nonApplicableContentText": "Not applicable.",

"statementEstablishmentTitle": "Establishment of This Accessibility Statement",
"statementEstablishmentText": "?",
"statementEstablishmentText": "This declaration was issued on January 07, 2025",

"technologiesUsedTitle": "Technologies Used for the Site",
"technology1": "HTML5",
Expand Down
22 changes: 15 additions & 7 deletions src/i18n/resources/fr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,20 @@ export const translations: Translations<"fr"> = {
"pageTitle": "Accessibilité",
"accessibilityText":
"L'Insee s’engage à rendre ses sites internet, intranet, extranet et ses progiciels accessibles (et ses applications mobiles et mobilier urbain numérique) conformément à l’article 47 de la loi n°2005-102 du 11 février 2005.",
"accessibilityPlan": "À cette fin, elle met en œuvre la stratégie et les actions suivantes :",

"multiYearPlan": "Schéma pluriannuel de mise en accessibilité 2022-2024",
"actionPlans": "Plans d’actions 2023, 2024",
"accessibilityDocumentsNote": "Ces documents sont communicables à la demande.",

accessibilityPlan: () => (
<p>
A cette fin, il met en œuvre un schéma pluriannuel présentant la politique de l'Insee en matière
d'accessibilité numérique (en cours de rédaction) ainsi qu'un plan annuel d'action.{" "}
<a
className="fr-link"
href="https://www.insee.fr/fr/information/7621795"
target="_blank"
title="Schéma pluriannuel de mise en accessibilité numérique de l’Insee 2023-2025 - ouvre une nouvelle fenêtre"
>
https://www.insee.fr/fr/information/7621795
</a>
</p>
),
accessibilityStatementLink: () => (
<p>
Cette déclaration d’accessibilité s’applique à{" "}
Expand Down Expand Up @@ -339,7 +347,7 @@ export const translations: Translations<"fr"> = {
"nonApplicableContentText": "Sans objet.",

"statementEstablishmentTitle": "Établissement de cette déclaration d’accessibilité",
"statementEstablishmentText": "?",
"statementEstablishmentText": "Cette déclaration a été établie le 07 janvier 2025",

"technologiesUsedTitle": "Technologies utilisées pour la réalisation du site",
"technology1": "HTML5",
Expand Down

0 comments on commit 4050954

Please sign in to comment.