From 95f0a37c7662195838ccc4a7bef67d3842233ef5 Mon Sep 17 00:00:00 2001 From: Owen Rees Date: Sun, 11 Jun 2023 22:39:28 +0200 Subject: [PATCH] french translations --- TODO | 6 ++---- app/api/tournaments/france/route.ts | 1 + app/{contact => contactez-nous}/page.tsx | 4 ++-- app/page.tsx | 12 ++++++------ app/{about => qui-sommes-nous}/page.tsx | 4 ++-- components/Footer.tsx | 6 +++--- components/Navbar.tsx | 8 ++++---- components/TournamentMap.tsx | 2 +- components/TournamentTable.tsx | 2 +- cypress/component/mounting.cy.tsx | 8 ++++---- cypress/e2e/links.cy.ts | 12 ++++++++---- ...inks point to correct pathname (failed).png | Bin 0 -> 427562 bytes cypress/videos/links.cy.ts.mp4 | Bin 0 -> 403731 bytes cypress/videos/mounting.cy.tsx.mp4 | Bin 16701 -> 0 bytes cypress/videos/utils.cy.ts.mp4 | Bin 15397 -> 0 bytes 15 files changed, 34 insertions(+), 31 deletions(-) rename app/{contact => contactez-nous}/page.tsx (66%) rename app/{about => qui-sommes-nous}/page.tsx (66%) create mode 100644 cypress/screenshots/links.cy.ts/Test all links -- Check navbar links point to correct pathname (failed).png create mode 100644 cypress/videos/links.cy.ts.mp4 delete mode 100644 cypress/videos/mounting.cy.tsx.mp4 delete mode 100644 cypress/videos/utils.cy.ts.mp4 diff --git a/TODO b/TODO index 57101ba..29e85fb 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,7 @@ -footer - need a 'return to top' arrow button on smaller screens +muti-language i18n support + light/dark theme tests for tournois, testing the loading of map and table, then counting the markers @@ -17,8 +17,6 @@ error handling e2e tests for tournament page: - make sure number of markers = tournamentData.length -home page - about page contact page diff --git a/app/api/tournaments/france/route.ts b/app/api/tournaments/france/route.ts index f951478..8770226 100644 --- a/app/api/tournaments/france/route.ts +++ b/app/api/tournaments/france/route.ts @@ -15,6 +15,7 @@ export async function GET() { /** * Converts date from string into a date to allow ordering */ + // TODO add into a middleware? const data = await db .collection("tournaments") .aggregate([ diff --git a/app/contact/page.tsx b/app/contactez-nous/page.tsx similarity index 66% rename from app/contact/page.tsx rename to app/contactez-nous/page.tsx index 7a698c4..d83a8c4 100644 --- a/app/contact/page.tsx +++ b/app/contactez-nous/page.tsx @@ -3,10 +3,10 @@ import Layout from "@/components/Layout"; export default function Contact() { return ( -
+
-

Contact Page

+

Contactez-Nous

diff --git a/app/page.tsx b/app/page.tsx index 89475a0..f34ff90 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -4,16 +4,16 @@ import Layout from "@/components/Layout"; export default function Home() { return ( -
+

Echecs France

-

- Find chess tournaments in France on a map +

+ Trouvez Vos Tournois d'Echecs en France Sur Une Carte

- A visual representation of all the chess tournaments published by - the{" "} + Une représentation visuelle de tous les tournois d'échecs publiés + par la{" "} FFE @@ -22,7 +22,7 @@ export default function Home() { href="/tournois" className="text-white bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-teal-300 dark:focus:ring-teal-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 mb-2" > - Get Started + Voir La Carte

diff --git a/app/about/page.tsx b/app/qui-sommes-nous/page.tsx similarity index 66% rename from app/about/page.tsx rename to app/qui-sommes-nous/page.tsx index b0d1012..59afbe4 100644 --- a/app/about/page.tsx +++ b/app/qui-sommes-nous/page.tsx @@ -3,10 +3,10 @@ import Layout from "@/components/Layout"; export default function About() { return ( -
+
-

About Page

+

Qui Sommes-Nous

diff --git a/components/Footer.tsx b/components/Footer.tsx index 0428600..19aa1b5 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -3,11 +3,11 @@ import { FaGithub } from "react-icons/fa"; export default function Footer() { return ( -