From dfdbf6cac1fe3719dc71e130129d28e04ba4e225 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 1 Dec 2023 13:26:44 +0100 Subject: refactor(pages): refine Thematic pages * add a table of contents (however posts heading are not included) * rename posts list section title * add a useThematic hook to refresh thematic contents * add a useThematicLists hook to refresh thematics list * add a `notIn` filter in thematics list fetcher to directly remove unwanted thematics * add Cypress tests --- src/i18n/en.json | 12 ++++++++---- src/i18n/fr.json | 14 +++++++++----- 2 files changed, 17 insertions(+), 9 deletions(-) (limited to 'src/i18n') diff --git a/src/i18n/en.json b/src/i18n/en.json index 671e2b1..c449756 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -299,10 +299,6 @@ "defaultMessage": "Page not found", "description": "Error404Page: page title" }, - "LszkU6": { - "defaultMessage": "All posts in {thematicName}", - "description": "ThematicPage: posts list heading" - }, "MJLr6U": { "defaultMessage": "CV", "description": "SiteNavbar: main nav - cv link" @@ -555,6 +551,10 @@ "defaultMessage": "Reading time:", "description": "PageHeader: reading time label" }, + "jrRBeb": { + "defaultMessage": "Browse posts in {thematicName} thematic", + "description": "ThematicPage: posts list heading" + }, "kq+fzI": { "defaultMessage": "Cover of {pageTitle}", "description": "RecentPosts: card cover accessible name" @@ -627,6 +627,10 @@ "defaultMessage": "Discover search results for {query} on {websiteName}.", "description": "SearchPage: SEO - Meta description" }, + "rVoW4G": { + "defaultMessage": "Thematics are loading...", + "description": "ThematicPage: loading thematics message" + }, "s57FTB": { "defaultMessage": "Share", "description": "Article: sharing widget title" diff --git a/src/i18n/fr.json b/src/i18n/fr.json index c8b4058..9e5754a 100644 --- a/src/i18n/fr.json +++ b/src/i18n/fr.json @@ -16,7 +16,7 @@ "description": "BlogPage: SEO - Page title" }, "/42Z0z": { - "defaultMessage": "Sujets liés", + "defaultMessage": "Sujets connexes", "description": "ThematicPage: related topics list widget title" }, "/EfcyW": { @@ -299,10 +299,6 @@ "defaultMessage": "Page non trouvée", "description": "Error404Page: page title" }, - "LszkU6": { - "defaultMessage": "Tous les articles dans {thematicName}", - "description": "ThematicPage: posts list heading" - }, "MJLr6U": { "defaultMessage": "CV", "description": "SiteNavbar: main nav - cv link" @@ -555,6 +551,10 @@ "defaultMessage": "Temps de lecture :", "description": "PageHeader: reading time label" }, + "jrRBeb": { + "defaultMessage": "Parcourir les articles de la thématique {thematicName}", + "description": "ThematicPage: posts list heading" + }, "kq+fzI": { "defaultMessage": "Illustration de {pageTitle}", "description": "RecentPosts: card cover accessible name" @@ -627,6 +627,10 @@ "defaultMessage": "Découvrez les résultats de recherche pour {query} sur {websiteName}.", "description": "SearchPage: SEO - Meta description" }, + "rVoW4G": { + "defaultMessage": "Les thématiques sont en cours de chargement…", + "description": "ThematicPage: loading thematics message" + }, "s57FTB": { "defaultMessage": "Partager", "description": "Article: sharing widget title" -- cgit v1.2.3