Smartlate

A Chrome extension for smart translation and rephrasing using AI providers (OpenAI, Anthropic, or DeepSeek).

Features

Installation

  1. Clone this repository or download the ZIP file
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable “Developer mode” in the top right
  4. Click “Load unpacked” and select the extension directory
  5. The extension icon will appear in your toolbar

Setup

  1. Click the extension icon in the toolbar
  2. Click “Go to Options” to configure:
    • AI Provider: Choose between OpenAI, Anthropic, or DeepSeek
    • API Key: Enter your API key for the selected provider
    • Languages: Add languages you want to translate to (e.g., Spanish, French, German)
    • Tone: Set the default rephrasing tone (professional, casual, concise, etc.)

Getting API Keys

Usage

  1. Select any text on a webpage
  2. Right-click to open the context menu
  3. Choose a language from the menu:
    • English: Rephrase in English with your chosen tone
    • Other Languages: Translate to that language AND rephrase with your tone
  4. The result is automatically copied to your clipboard
  5. Paste anywhere with Cmd+V (Mac) or Ctrl+V (Windows)

How It Works

Privacy & Security

Permissions

Development

Built with Chrome Extension Manifest V3

Building for Production

To create a production-ready ZIP file for Chrome Web Store submission:

./build.sh

This will create chrome-store-submission/smartlate-[version].zip with only the necessary extension files.

File Structure

├── manifest.json          # Extension configuration
├── background.js          # Service worker handling translation logic
├── content.js             # Content script for page interaction
├── content.css            # Styles for content script
├── offscreen.js           # Offscreen document for clipboard access
├── offscreen.html         # Offscreen document HTML
├── options.html           # Settings page
├── options.js             # Settings page logic
├── popup.html             # Extension popup
├── popup.js               # Extension popup logic
├── build.sh               # Build script for packaging
└── icons/                 # Extension icons
    ├── icon16.png
    ├── icon48.png
    └── icon128.png

Technologies

License

MIT License - Feel free to use and modify as needed.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.