Skip to content

KirillGoryakin/Hint_Extension

Repository files navigation

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: