Giter VIP home page Giter VIP logo

chatgptranslate's Introduction

ChatGPTranslate

ChatGPTranslate

Description

ChatGPTranslate is a Chrome extension that allows users to highlight text on any webpage, click an icon to translate the text using OpenAI, and get an explanation of the translated text. It provides a seamless way to understand and interpret foreign language content directly from your browser.

Screenshot 2024-06-15 at 6 56 51 PM

Features

  • Highlight text and click an icon to translate it.
  • Get an explanation of the translated text.
  • Hear the pronunciation of the text.
  • Optionally receive a word-by-word breakdown of the text.
  • Dynamically loads a popup with translation, explanation, and breakdown.
  • Settings page for entering and saving OpenAI API Key.
  • Toggle settings to always display explanations or show them via links.

Installation and Setup

Step 1: Clone the Repository

Clone this repository to your local machine using:

git clone https://github.com/johnlewissims/ChatGPTranslate.git

Step 2: Install Dependencies

Navigate to the project directory and install the necessary dependencies using:

cd ChatGPTranslate
npm install

Step 3: Build the Project

Build the project to generate the dist folder:

npm run build

Step 4: Load the Extension in Chrome

  • Open Chrome and go to chrome://extensions/.
  • Enable "Developer mode" by toggling the switch in the top right corner.
  • Click the "Load unpacked" button and select the directory where you cloned the repository.

Step 5: Set Your OpenAI API Key

  • Click on the extension icon in the Chrome toolbar.
  • If you haven't set an API key, you'll see an instruction message.
  • Click the link to go to the settings page.
  • Enter your OpenAI API Key and save it. You can obtain your API key from the OpenAI API Keys page.

chatgptranslate's People

Contributors

johnlewissims avatar

Stargazers

 avatar  avatar Noah Leal avatar Saba Nafees avatar Kevin Claveria 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.