Code Monkey home page Code Monkey logo

hint_extension's Introduction

Hint extension

This is a simple extension for Google Chrome browser that can give you hints of what you selected. It automatically detects if it's an equation, a price or it's just a text in a foreign language.

๐Ÿ’ก It has 3 main features:

  • Calculation
  • Currency conversion
  • Text translation

Currency rates update once a day and save to cache. Text translations also save to cache up to 300 strings. Caching saves you a lot of requests to the API and boosts result speed. Translation cache can be easily cleared if needed.

๐Ÿ‘“ Demo:

๐Ÿงฌ Technologies and API's

Install

  1. Go to releases page and choose the latest release.
  2. Open assets dropdown and download build-vX.X.X.zip file
  3. Extract this archive anywhere you want to store your extension.
  4. Open your Chrome extension menu. Turn on the "Developer mode" and click "Load unpacked". Then choose path to your extracted "build-vX.X.X" folder.

That's it! You installed the extension! Remember that for text translation you need an API key. How to get one?

Development

Clone repository:

git clone https://github.com/KirillGoryakin/Hint_Extension.git

Install all packages:

npm install

Start webpack:

npm run watch

Then open your Chrome extension menu. Turn on the "Developer mode" and click "Load unpacked". Then choose path to your "build" folder.

Production build:

npm run build

How to enable text translation?

This extension uses Translo API for text translation. This API requires an API key to work. Don't worry! It's free and easy to get! You just need a few actions.

How to get an API key?

  1. To obtain one firstly, you need to sign up or log in RapidAPI site.
  2. After you sign up go to Translo API pricing page and subscribe to Basic, free plan.
  3. Then go to Endpoints page and copy your API key from Code Snippets block. Your key should be labeled as "X-RapidAPI-Key". Be aware! Don't copy the quotation marks!
  4. Then go to the extension option menu and paste your key to the "API key" field

Congrats! You did it! Now you can enable text translation and enjoy! But remember that your translations are limited. 500k characters per month is more than enough, but make sure you don't waste it.


This project was bootstrapped with Chrome Extension CLI

Icons credits:

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.