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 2025-01-11 at 11 34 13 AM](https://private-user-images.githubusercontent.com/43911794/402284360-e50cc761-d936-42d2-a65d-9d8e5cfc28c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDE0NTcsIm5iZiI6MTczOTMwMTE1NywicGF0aCI6Ii80MzkxMTc5NC80MDIyODQzNjAtZTUwY2M3NjEtZDkzNi00MmQyLWE2NWQtOWQ4ZTVjZmMyOGM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE5MTIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhNjMwMTY5ZTI4NTgxOTE0YjYwMjk2MjY3YjQ2ZmNiMWZhM2NmYjlkZmUxNTMzZTU1YTIyN2UzMjViZGRmZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7BYuumKYWoLrk3R1ztHGzX_hUtogjvwJGQWqb_noh4w)
- Highlight text and click an icon to translate it
- Choose between quick translation or detailed explanations with examples
- Select from multiple GPT models for translation
- Choose your target translation language from a comprehensive dropdown
- Customize maximum token usage for responses
- Get word-by-word breakdowns and pronunciation guides
- Smart language detection from page context
- Toggle display of technical details (model and token usage)
- Settings page for configuring OpenAI API Key and preferences
- Clean, intuitive popup interface for translations and explanations
Clone this repository to your local machine using:
git clone https://github.com/johnlewissims/ChatGPTranslate.git
Navigate to the project directory and install the necessary dependencies using:
cd ChatGPTranslate
npm install
Build the project to generate the dist folder:
npm run build
- 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 "dist" folder in the directory where you cloned and built the repository
- 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 (obtain from OpenAI API Keys page)
- Configure your preferred language, model, and other settings
- John Lewis Sims (Creator)
- Konstantin Bobovskiy (Features & Improvements)