This Chrome extension allows you to translate selected text on web pages using the GPT-3.5-turbo model by OpenAI. It's easy to use, fast, and provides high-quality translations.
- Translate selected text in a webpage
- Support for multiple target languages
- API key configuration on the first use
- Loading indicator while the translation is in progress
- Copy translation results to clipboard
- Clone or download this repository to your local machine.
- Open Chrome and navigate to chrome://extensions/.
- Enable "Developer mode" by toggling the switch in the top right corner.
- Click on the "Load unpacked" button.
- Navigate to the folder containing the extension's source code and click "Select Folder" (or "Open" depending on your operating system).
- The extension is now installed and an icon should appear in your browser's toolbar.
- Click on the extension icon to open the popup.
- If you are using the extension for the first time, you will need to enter your OpenAI API key. Click "Submit" to save the key for future use.
- Select the text you want to translate on a web page.
- Click on the extension icon again to display the selected text in the input field.
- Choose the target language from the dropdown menu.
- Click the "Translate" button to start the translation. The button will be disabled, and a "Loading..." message will be displayed while the translation is in progress.
- The translated text will appear below the input field. A "Copy" button will also be displayed, allowing you to easily copy the translation result to your clipboard.
- Contributing
- If you have any suggestions or improvements, feel free to create a fork and submit a pull request. We appreciate your contributions!
This project is licensed under the MIT License. See the LICENSE file for details.