https://github.com/code-by-sia/swift-translator
Super fast translator Google chrome extension
https://github.com/code-by-sia/swift-translator
Last synced: 9 days ago
JSON representation
Super fast translator Google chrome extension
- Host: GitHub
- URL: https://github.com/code-by-sia/swift-translator
- Owner: code-by-sia
- License: mit
- Created: 2026-04-29T15:33:47.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-29T16:05:33.000Z (about 2 months ago)
- Last Synced: 2026-04-29T18:09:26.162Z (about 2 months ago)
- Language: JavaScript
- Size: 1.48 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift Translator ⚡️
A high-performance, 100% private, beautifully designed Chrome extension that translates text instantly using your browser's built-in Local AI.

## Features
- **Lightning Fast**: Powered by Chrome's experimental built-in AI Translation API.
- **100% Private**: Translations happen locally on your device. Absolutely no text is sent to external servers.
- **Glassmorphic UI**: A premium, drag-and-drop enabled interface with smooth animations and a dynamic theme engine.
- **Smart Language Detection**: Automatically detects the source language of your highlighted text.
- **RTL Support**: Seamlessly handles Right-to-Left languages like Arabic and Hebrew.
## Getting Started
1. **Enable the API**: Go to `chrome://flags/#translation-api` and enable the Translation API. Restart Chrome.
2. **Install**: Open `chrome://extensions`, enable **Developer mode**, and select **Load unpacked**. Choose the `src` folder.
3. **Use**: Highlight any text on any webpage to see the translation instantly.
## Documentation
For full instructions, troubleshooting, and configuration details, please see the [Full Guide](./docs/guide.md).
## Architecture
- `content.js`: Injects the translation UI, handles drag-and-drop, theme application, and communicates with the Local AI models.
- `options.js` & `options.html`: A full-page, responsive dashboard for managing your preferences, built with modern CSS grids.
- `background.js`: Handles service worker tasks and persistent state management.