8000 GitHub - 0xemad/AIWritingCompanion: Chrome extension for translating from Persian to English and from English to Persian using Google Gemini API.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Chrome extension for translating from Persian to English and from English to Persian using Google Gemini API.

Notifications You must be signed in to change notification settings

0xemad/AIWritingCompanion

 
 

Repository files navigation

AIWritingCompanion

A lightweight and versatile browser extension designed to translate text within input fields (e.g., text boxes, textareas, and contenteditable elements). Translations are triggered by either clicking the extension icon or pressing the Ctrl+/ shortcut.

It's a writing and translation assistant.


Features

  • Universal Compatibility: Works seamlessly with standard and advanced input fields.
  • Multiple Activation Methods: Trigger translation via the icon click or the Ctrl+/ shortcut.
  • Provider Support: Choose between multiple translation providers, including Gemini, OpenAI, and WebAI to API.

Requirements

  • A modern Chromium-based browser (Chrome, Edge, Brave, etc.)
  • A valid API key if not using WebAI ot API

Installation

  1. Install via CRX File:

    • Download the Gemini-Translation-Extension.crx file from the Chrome-Extension/ folder.
    • Open chrome://extensions/ in Chrome and enable Developer mode.
    • Drag and drop the .crx file onto the chrome://extensions/ page to install the extension.
  2. Install via Git:

    • Clone the repository:

      git clone https://github.com/iSegaro/Gemini-Translate.git
      cd Gemini-Translate
    • Load the extension in Chrome:

      • Open chrome://extensions/ and enable Developer mode.
      • Click Load unpacked and select the Chrome-Extension/dist/ folder.
  3. Set your API key on the Options page.


🔑 Get a Free Google API Key

  1. Visit Google AI Studio and log in.
  2. Click Get API Key, then Create API Key, and copy it.

Free Tier: 1,500 requests/day with Gemini 1.5 Flash.

Watch this video guide for details.


Usage

  • Automatic: Hover or click an input field to reveal the translation icon.
  • Shortcut: Press Ctrl+/ when an input field is active.

Development

Prerequisites

Install Node.js (which includes npm), then run:

cd Gemini-Translate
npm install

Build

npm run build

This generates the Chrome-Extension/dist/ folder for manual installation. For live updates, run:

npm run watch

Contribute


License

This project is licensed under the MIT License. Feel free to improve and share!

About

Chrome extension for translating from Persian to English and from English to Persian using Google Gemini API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.0%
  • HTML 9.0%
  • CSS 3.0%
0