Browse Source

aggiunta supporto traduzione per tutorial.

John Doe 1 year ago
parent
commit
61faa7fbc3
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/hooks/useSession.jsx

+ 7 - 0
src/hooks/useSession.jsx

@@ -13,11 +13,13 @@ import { updateSession, getSession, getGame } from "../utils/api";
 
 import demoEn from "../games/demo_en.json?url";
 import demoFr from "../games/demo_fr.json?url";
+import demoIt from "../games/demo_it.json?url"
 
 export const SessionContext = React.createContext({});
 
 const demos = {
   fr: demoFr,
+  it: demoIt
 };
 
 const emtpyBoard = {
@@ -30,6 +32,11 @@ const emtpyBoard = {
         name: "Choisissez un jeu",
         description: "...",
       },
+      {
+        language: "it",
+        name: "Scegli un gioco",
+        description: "...",
+      },
     ],
     defaultName: "Choose a game",
     defaultLanguage: "en",