From 5f870853e2be7df3e2ac2d5ce12ad017cbea265e Mon Sep 17 00:00:00 2001 From: RochDLY Date: Wed, 8 Nov 2023 17:27:01 +0100 Subject: [PATCH 1/3] =?UTF-8?q?interface=20en-fr=20:=E2=80=AFmodification?= =?UTF-8?q?=20du=20footer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/components/Footer.jsx | 8 +++++--- front/src/locales/en/translation.json | 5 ++++- front/src/locales/fr/translation.json | 5 ++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/front/src/components/Footer.jsx b/front/src/components/Footer.jsx index 22cbf6a89..5b28cfed7 100644 --- a/front/src/components/Footer.jsx +++ b/front/src/components/Footer.jsx @@ -1,6 +1,7 @@ import React, { useCallback } from 'react' import { useSelector, useDispatch } from 'react-redux' import { Switch, Route, Link } from 'react-router-dom' +import { useTranslation } from 'react-i18next' import styles from './header.module.scss' import { HelpCircle } from "react-feather"; @@ -9,6 +10,7 @@ function Footer () { const dispatch = useDispatch() const userHasConsent = useSelector(state => state.userPreferences.trackingConsent) const toggleConsent = useCallback(() => dispatch({ type: 'USER_PREFERENCES_TOGGLE', key: 'trackingConsent' }), []) + const { t } = useTranslation() return ( @@ -22,18 +24,18 @@ function Footer () { rel="noopener noreferrer" > - Documentation + {t('footer.documentation.link')}
  • - Changelog + {t('footer.changelog.link')}
  • Privacy
  • { import.meta.env.SNOWPACK_MATOMO_URL && (
  • ) } diff --git a/front/src/locales/en/translation.json b/front/src/locales/en/translation.json index 46b817123..19f1a2acd 100644 --- a/front/src/locales/en/translation.json +++ b/front/src/locales/en/translation.json @@ -121,5 +121,8 @@ "export.sectionChapters.unnumbered": "Section and Chapters: unnumbered", "export.bookDivision.part": "Book division: Part & chapters", "export.bookDivision.chapter": "Book division: Chapter only", - "export.submitForm.button": "Export with these settings" + "export.submitForm.button": "Export with these settings", + "footer.documentation.link": "Documentation", + "footer.changelog.link": "Changelog", + "footer.navStats.checkbox": "I accept to share my navigation stats" } diff --git a/front/src/locales/fr/translation.json b/front/src/locales/fr/translation.json index 1b67da4f7..2db7de4e4 100644 --- a/front/src/locales/fr/translation.json +++ b/front/src/locales/fr/translation.json @@ -119,5 +119,8 @@ "export.sectionChapters.unnumbered": "Section et chapitres: non numérotés", "export.bookDivision.part": "Division du corpus : parties et chapitres", "export.bookDivision.chapter": "Division du corpus : chapitres seulement", - "export.submitForm.button": "Exporter avec ces paramètres" + "export.submitForm.button": "Exporter avec ces paramètres", + "footer.documentation.link": "Documentation", + "footer.changelog.link": "Journal des modifications", + "footer.navStats.checkbox": "J'accepte de partager mes statistiques de navigations" } From 636621362005b0dcb31894892c551035fb3b2f38 Mon Sep 17 00:00:00 2001 From: RochDLY Date: Wed, 8 Nov 2023 17:31:10 +0100 Subject: [PATCH 2/3] =?UTF-8?q?interface=20en-fr=20:=E2=80=AFmodification?= =?UTF-8?q?=20du=20footer,=20il=20manquait=20privacy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/components/Footer.jsx | 2 +- front/src/locales/en/translation.json | 3 ++- front/src/locales/fr/translation.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/front/src/components/Footer.jsx b/front/src/components/Footer.jsx index 5b28cfed7..87e5d8ea3 100644 --- a/front/src/components/Footer.jsx +++ b/front/src/components/Footer.jsx @@ -31,7 +31,7 @@ function Footer () { {t('footer.changelog.link')} -
  • Privacy
  • +
  • {t('footer.privacy.link')}
  • { import.meta.env.SNOWPACK_MATOMO_URL && (