diff --git a/src/components/game/GameQuestion.jsx b/src/components/game/GameQuestion.jsx index 8ac6013..0a51191 100644 --- a/src/components/game/GameQuestion.jsx +++ b/src/components/game/GameQuestion.jsx @@ -3,8 +3,17 @@ import anwserIconSafe from "../../assets/img/icons/anwser_icon_safe.svg"; import anwserIconUnsafe from "../../assets/img/icons/anwser_icon_unsafe.svg"; import { useGame } from "../../hooks/useGame"; +import { useUser } from "../../hooks/useUser"; +import Loading from "../animations/Loading"; + export default function GameQuestion({ questionId, correctAnswer }, ...props) { const { answerQuestion, contextGameDatas } = useGame(); + const { screensTranslations } = useUser(); + + if (!screensTranslations || !screensTranslations.tutorial) return ; + const currentScreenTranslations = screensTranslations.game; + + console.log("GameQuestion", currentScreenTranslations); const objectPictureUrl = contextGameDatas.gameObjects[questionId].attrs.objectPictureUrl; function handleAnswer(questionId, answer) { @@ -14,13 +23,10 @@ export default function GameQuestion({ questionId, correctAnswer }, ...props) { return (
-

Trouvé !

-

securisé ou risqué ?

+

{currentScreenTranslations.found}

+

{currentScreenTranslations.is_it_secure}

-

- Est-ce que la situation comporte un risque majeur ou identifiez vous un bon - comportement ? -

+

{currentScreenTranslations.is_it_secure_question}