This is a manual for Wolf, Goat, and Cabbage module for Keep Talking and Nobody Explodes.
This project was created with Create React App.
- This project requires Node.js. Latest version of Node is recommended.
- Clone this project with
git clone https://github.com/kavinkul/React-wgc-interactive.git
- In the root of the project, run
npm install
to install necessary node packages. - To start development server, run
npm start
which will start the server at http://localhost:3000 - You can build the project with
npm run build
. This will create a build folder with main html file at its root. You must start http server at that folder or its parent for the manual to work correctly. In python 3, you can runpython -m http.server
.
All the texts in the interactive section of the manual are being fetched from translation.json
file. You don't need to rebuild the project after translating. To translate this section:
- In
translation.json
, follow the template of"en"
language in this file. You can add a new language of your choice by creating a key value pair of language and translation:You must give translations to all fields that you see.{ "en": { English Translation Goes Here }, "de": { German Translation Goes Here } }
- In html file of your manual locate
div
element withid
ofroot
:Change language to the language key that you created in step 1.<div id="root" language="en"></div>
Some languages may not work nicely with this manual, most notably in the graph. You may need to review how graph is implemented in Graph.js.