From 7984ae43a1f122cea3aecd5db4545b3d40db9945 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 11 Jul 2024 16:28:03 +0200 Subject: [PATCH] handlign translations --- src/pages/Thematiques.jsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/Thematiques.jsx b/src/pages/Thematiques.jsx index 83a37f1..63c31c0 100644 --- a/src/pages/Thematiques.jsx +++ b/src/pages/Thematiques.jsx @@ -14,17 +14,25 @@ import { Pagination, Navigation, EffectCards } from "swiper/modules"; import { useWordpressCustomData } from "../services/WordpressFetchData"; import { Link } from "react-router-dom"; +import Loading from "../components/animations/Loading"; +import { useUser } from "../hooks/useUser"; export default function Thematiques() { const gamesDatas = useWordpressCustomData(`/screen/play/all`); + const { language, screensTranslations } = useUser(); + + if (!screensTranslations || !screensTranslations.ui || !screensTranslations.pagesName) return ; + const uiScreenTranslations = screensTranslations.ui; + const pagesNamesTranslations = screensTranslations.pagesName; + return (