This app uses A-Frame, Google Poly, and Google Translate for translations.
Click on different objects in the scene and you'll get a translation pop up in the upper left corner.
Pssst! Look around! I promise you'll find something surprising!
- Clone the repository and run
npm install
in the cloned repository root - Create an
.env
file in your project root - Copy and paste the below code into the new
.env
file:PORT=3001 GOOGLE_API_KEY=YourGeneratedGoogleTranslateAPIKey PROJECT_ID=YourGeneratedProjectIDFromGoogleTranslateAPI
- Generate an Google Cloud API key and enable Google Translate service for it: Using API Keys
- Replace
YourGeneratedGoogleTranslateAPIKey
andYourGeneratedProjectIDFromGoogleTranslateAPI
with your generated Google Cloud API keys in your.env
file - Run
npm start
to start up the server - Open your browser to
http://localhost:3001/
or the port number specified in the.env
file - Use your mouse to drag and move around the scene and click on different objects, if the translations pop up in the upper left side of the screen you're all set!
- Added voice that reads translations
- Latin transliteration translation for Chinese (pinyin) and Japanese characters
- VR mode has translation word pop ups
- Toggle sentences with context vs one word object vocabulary