Coder Social home page Coder Social logo

robinkwilson / simple-translation-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.87 MB

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

JavaScript 42.28% CSS 6.82% HTML 50.90%
translate translation aframe google-translate-api vr google-poly

simple-translation-project's Introduction

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

simple-translation-project's People

Contributors

robinkwilson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.