From 26620c464b7fa9f3adfe455015cc67fe9af83b7a Mon Sep 17 00:00:00 2001 From: Pierre Ferreira Date: Fri, 10 Nov 2023 14:11:36 +0100 Subject: [PATCH] ajout de la traduction des indices en fonction de la langue choisi par l'utilisateur. :globe_with_meridians: --- cryptide_project/src/Pages/InGame.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx index 2eaba35..f3ef4ee 100644 --- a/cryptide_project/src/Pages/InGame.tsx +++ b/cryptide_project/src/Pages/InGame.tsx @@ -24,7 +24,11 @@ import { Link } from 'react-router-dom'; import Button from 'react-bootstrap/Button'; import Offcanvas from 'react-bootstrap/Offcanvas'; -const InGame = () => { +/* Model */ +import Stub from '../source/Stub'; + +//@ts-ignore +const InGame = ({locale}) => { const [showChoiceBar, setShowChoiceBar] = useState(false); const handleNodeClick = (shouldShowChoiceBar: boolean) => { @@ -66,6 +70,9 @@ const InGame = () => { window.open(url); }; + + const indices = Stub.GenerateIndice() + return (
@@ -131,7 +138,10 @@ const InGame = () => { Indice - Possède les cheveux noir ou joue au basket + {/* Possède les cheveux noir ou joue au basket */} + {indices[0].ToString(locale)}
+ {indices[1].ToString(locale)}
+ {indices[2].ToString(locale)}