No description
- JavaScript 80.1%
- CSS 13.4%
- HTML 6.5%
| .claude | ||
| icons | ||
| src | ||
| styles | ||
| CLAUDE.md | ||
| generate-icons.js | ||
| manifest.json | ||
| options.html | ||
| popup.html | ||
| README.md | ||
Translate with Phonetics
A Chrome extension that provides Google Translate functionality with phonetic transcription (romanization/IPA) support - a feature missing from the official Google Translate extension.
Features
- Phonetic Transcription: Shows romanization/phonetic reading for both source and translated text
- Popup Translation: Click the extension icon to translate text
- Text Selection: Select text on any webpage to get instant translation
- Keyboard Shortcut: Use
Ctrl+Shift+T(orCmd+Shift+Ton Mac) to translate selected text - Context Menu: Right-click selected text and choose "Translate"
- Translation History: Access your recent translations
- Text-to-Speech: Listen to pronunciation of source and translated text
- Language Auto-Detection: Automatically detects the source language
Supported Languages
- English, Japanese, Vietnamese, Chinese (Simplified/Traditional), Korean
- Spanish, French, German, Russian, Portuguese, Italian
- Arabic, Hindi, Thai
- And more...
Installation
From Source (Developer Mode)
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked"
- Select the
google_translatefolder - The extension icon will appear in your toolbar
Building Icons (Optional)
The extension works without custom icons, but to add them:
- Open
icons/icon.svgin a design tool or browser - Export as PNG at sizes: 16x16, 32x32, 48x48, 128x128
- Save as
icon16.png,icon32.png,icon48.png,icon128.pngin theicons/folder - Update
manifest.jsonto include the icon references
Usage
Popup Translation
- Click the extension icon in your toolbar
- Type or paste text in the input area
- Translation with phonetics appears automatically
Text Selection Translation
- Select any text on a webpage
- A translation popup appears below the selection
- View translation and phonetic transcription
Keyboard Shortcut
- Select text on any webpage
- Press
Ctrl+Shift+T(Windows/Linux) orCmd+Shift+T(Mac) - Translation popup appears
Context Menu
- Select text on any webpage
- Right-click and choose "Translate [selected text]"
Project Structure
google_translate/
├── manifest.json # Extension manifest (Manifest V3)
├── popup.html # Popup UI
├── src/
│ ├── popup.js # Popup logic
│ ├── background.js # Service worker
│ ├── content.js # Content script for page integration
│ └── translate.js # Translation API wrapper
├── styles/
│ ├── popup.css # Popup styles
│ └── content.css # Inline popup styles
├── icons/
│ └── icon.svg # Base icon (convert to PNG)
└── README.md
API
This extension uses the unofficial Google Translate API endpoint (translate.googleapis.com) which:
- Provides phonetic transcription (romanization)
- Supports auto-detection
- Is free to use but may have rate limits
Permissions
activeTab: Access current tab for text selectionstorage: Save preferences and translation historycontextMenus: Add right-click translate optionhost_permissions: Access Google Translate API
License
MIT License