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 (