From 915ed1e8f7c0058ccfffdff1aa4d09573a72a94d 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx index 5d5a52a..095f185 100644 --- a/cryptide_project/src/Pages/InGame.tsx +++ b/cryptide_project/src/Pages/InGame.tsx @@ -26,7 +26,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 theme = useTheme(); @@ -70,6 +74,9 @@ const InGame = () => { window.open(url); }; + + const indices = Stub.GenerateIndice() + return (