From 70efcfeaa0603415dd992cb662d8efb960e6e49a Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 26 Sep 2023 15:54:28 +0200 Subject: refactor(routes): replace hardcoded routes with constants It makes it easier to change a route if needed and it avoid typo mistakes. I also refactored a bit the concerned files to be complient with the new ESlint config. However, I should rewrite the pages to reduce the number of statements. --- src/i18n/en.json | 12 ++++++++---- src/i18n/fr.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) (limited to 'src/i18n') diff --git a/src/i18n/en.json b/src/i18n/en.json index 02952b4..277ed23 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -143,6 +143,10 @@ "defaultMessage": "Contact", "description": "Layout: main nav - contact link" }, + "AN9iy7": { + "defaultMessage": "Contact", + "description": "ContactPage: page title" + }, "AuGklx": { "defaultMessage": "License:", "description": "Meta: license label" @@ -203,10 +207,6 @@ "defaultMessage": "Topics", "description": "Error404Page: topics list widget title" }, - "Gnf1Si": { - "defaultMessage": "{starsCount, plural, =0 {No stars on Github} one {# star on Github} other {# stars on Github}}", - "description": "Projets: Github stars count" - }, "HFdzae": { "defaultMessage": "Contact form", "description": "ContactForm: form accessible name" @@ -559,6 +559,10 @@ "defaultMessage": "No comments.", "description": "PageLayout: no comments text" }, + "sI7gJK": { + "defaultMessage": "{starsCount, plural, =0 {No stars on Github} one {# star on Github} other {# stars on Github}}", + "description": "ProjectsPage: Github stars count" + }, "sO/Iwj": { "defaultMessage": "Contact me", "description": "HomePage: contact button text" diff --git a/src/i18n/fr.json b/src/i18n/fr.json index 2ec3657..69f6b42 100644 --- a/src/i18n/fr.json +++ b/src/i18n/fr.json @@ -143,6 +143,10 @@ "defaultMessage": "Contact", "description": "Layout: main nav - contact link" }, + "AN9iy7": { + "defaultMessage": "Contact", + "description": "ContactPage: page title" + }, "AuGklx": { "defaultMessage": "Licence :", "description": "Meta: license label" @@ -203,10 +207,6 @@ "defaultMessage": "Sujets", "description": "Error404Page: topics list widget title" }, - "Gnf1Si": { - "defaultMessage": "{starsCount, plural, =0 {0 étoile sur Github} one {# étoile sur Github} other {# étoiles sur Github}}", - "description": "Projets: Github stars count" - }, "HFdzae": { "defaultMessage": "Formulaire de contact", "description": "ContactForm: form accessible name" @@ -559,6 +559,10 @@ "defaultMessage": "Aucun commentaire.", "description": "PageLayout: no comments text" }, + "sI7gJK": { + "defaultMessage": "{starsCount, plural, =0 {0 étoile sur Github} one {# étoile sur Github} other {# étoiles sur Github}}", + "description": "ProjectsPage: Github stars count" + }, "sO/Iwj": { "defaultMessage": "Me contacter", "description": "HomePage: contact button text" -- cgit v1.2.3