handlign translations
This commit is contained in:
parent
1f5eabd026
commit
7984ae43a1
|
|
@ -14,17 +14,25 @@ import { Pagination, Navigation, EffectCards } from "swiper/modules";
|
||||||
|
|
||||||
import { useWordpressCustomData } from "../services/WordpressFetchData";
|
import { useWordpressCustomData } from "../services/WordpressFetchData";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
import Loading from "../components/animations/Loading";
|
||||||
|
import { useUser } from "../hooks/useUser";
|
||||||
|
|
||||||
export default function Thematiques() {
|
export default function Thematiques() {
|
||||||
const gamesDatas = useWordpressCustomData(`/screen/play/all`);
|
const gamesDatas = useWordpressCustomData(`/screen/play/all`);
|
||||||
|
|
||||||
|
const { language, screensTranslations } = useUser();
|
||||||
|
|
||||||
|
if (!screensTranslations || !screensTranslations.ui || !screensTranslations.pagesName) return <Loading />;
|
||||||
|
const uiScreenTranslations = screensTranslations.ui;
|
||||||
|
const pagesNamesTranslations = screensTranslations.pagesName;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AnimatedPage className='page-container page-container--thematiques '>
|
<AnimatedPage className='page-container page-container--thematiques '>
|
||||||
<div className='content-page '>
|
<div className='content-page '>
|
||||||
<Nav />
|
<Nav />
|
||||||
<div className='inner-content'>
|
<div className='inner-content'>
|
||||||
<div className='page-title'>
|
<div className='page-title'>
|
||||||
<h1 className='page-title__title'>Thémathiques</h1>
|
<h1 className='page-title__title'>{pagesNamesTranslations.themes}</h1>
|
||||||
<div className='page-title__span-construction'>Interactive</div>
|
<div className='page-title__span-construction'>Interactive</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -70,7 +78,9 @@ export default function Thematiques() {
|
||||||
target='_blank'
|
target='_blank'
|
||||||
rel='noreferrer'
|
rel='noreferrer'
|
||||||
className='cta cta--lhoist cta--button-icon cta--download'>
|
className='cta cta--lhoist cta--button-icon cta--download'>
|
||||||
Télécharger
|
{
|
||||||
|
uiScreenTranslations.download
|
||||||
|
}
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
</SwiperSlide>
|
</SwiperSlide>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user