This Chrome extension allows you to quickly translate selected text on any webpage using the Google Gemini API. You can also translate any text directly within the extension's popup.
- Translate selected text on any webpage.
- Translate any text directly within the extension's popup.
- Supports multiple target languages.
- Saves your Gemini API key securely in your browser's local storage.
- Collapsible API key settings for a cleaner UI.
- Displays a loading indicator while translating.
- Displays a translation dialog box with the translated text.
- Provides a clear "X" icon to remove the saved API key.
- Validates the API key format before saving.
- Download the extension's ZIP archive.
- Open Chrome and navigate to
chrome://extensions
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the extension's directory.
- Set up your API key:
- Open the extension's popup by clicking its icon in your browser toolbar.
- In the "API Key" section, enter your Gemini API key.
- Click "Save API Key" to store it securely.
- You can obtain a Gemini API key from the Google AI Studio.
- Note: An API key is required to use the extension.
- The API key authenticates your requests to the Gemini API.
- It is stored securely in your browser's local storage.
- Your API key is not shared with any third parties.
- It is used solely for authenticating your requests to the Gemini API.
- Obtaining an API key is free of charge.
- The required model is "gemini-2.0-flash-exp".
- To translate text in the popup:
- Enter the text you want to translate in the "Translate Text" textarea in the popup.
- Select the target language.
- Selected target language will be used for all translations.
- Click "Translate".
- The translated text will appear in the "Translation" textarea.
- To translate text on a webpage:
- Select the text you want to translate on any webpage.
- A translation icon will appear near the selected text.
- Click the translation icon to translate the text.
- A dialog box will appear with the translated text.
- You can change the target language in the popup settings.
- A valid Google Gemini API key. You can obtain one from the Google AI Studio.
- Chrome browser version 88 or higher.
- Your Gemini API key is stored securely in your browser's local storage.
- The extension uses HTTPS for all network requests.
- The extension does not share your API key with any third parties.
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a pull request.
- New: Added 12 language translations (DE, FR, ES, IT, PT, RU, JA, KO, ZH, PL + EN)
- Feature: Complete UI localization system with dynamic text replacement
- Security: Implemented strict Content Security Policy (CSP) rules
- Improvement: Restructured project architecture to Chrome Web Store standards
- Performance: Optimized background service worker implementation
- Code cleanup and dependency optimization
- Enhanced error handling mechanisms
- Semantic HTML improvements
- CSS animation consolidation
- Status display warning fixes
- Separate language selection for text translations
- UI consistency improvements
- Visual feedback for copy operations
- Centralized text configuration
- API key validation enhancements
- Translation request body updates
- Configuration file added
- CSS class prefixing
- Initial release