Skip to content

User can click on objects in the scene and receives the translation as a pop up. Utilizes A-Frame and Google Translate APIs.

Notifications You must be signed in to change notification settings

robinkwilson/simple-translation-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple translation project screenshot

Simple translation project (work in progress)

This app uses A-Frame, Google Poly, and Google Translate for translations.

How to use

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!

Startup

  1. Clone the repository and run npm install in the cloned repository root
  2. Create an .env file in your project root
  3. Copy and paste the below code into the new .env file:
    PORT=3001
    GOOGLE_API_KEY=YourGeneratedGoogleTranslateAPIKey
    PROJECT_ID=YourGeneratedProjectIDFromGoogleTranslateAPI
    
  4. Generate an Google Cloud API key and enable Google Translate service for it: Using API Keys
  5. Replace YourGeneratedGoogleTranslateAPIKey and YourGeneratedProjectIDFromGoogleTranslateAPI with your generated Google Cloud API keys in your .env file
  6. Run npm start to start up the server
  7. Open your browser to http://localhost:3001/ or the port number specified in the .env file
  8. 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!

Planned Expansions

  • 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

About

User can click on objects in the scene and receives the translation as a pop up. Utilizes A-Frame and Google Translate APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published