AIWritingCompanion

AIWritingCompanion

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

Stars: 92

Visit
 screenshot

AIWritingCompanion is a lightweight and versatile browser extension designed to translate text within input fields. It offers universal compatibility, multiple activation methods, and support for various translation providers like Gemini, OpenAI, and WebAI to API. Users can install it via CRX file or Git, set API key, and use it for automatic translation or via shortcut. The tool is suitable for writers, translators, students, researchers, and bloggers. AI keywords include writing assistant, translation tool, browser extension, language translation, and text translator. Users can use it for tasks like translate text, assist in writing, simplify content, check language accuracy, and enhance communication.

README:

AI Writing Companion

English | • فارسی

This Extension is a personal, lightweight, and efficient tool for easy text translation on the web. By offering three different translation methods, it provides a smooth and fast user experience: simply select the text to be translated, click on any element to translate its content, or translate in text fields using a shortcut.

This is a handy, small writing tool and translation assistant.


⚙️ Key Features

  • Translate with Selected Text (Select Text): Simply select the text you want to translate on any website. After releasing the mouse button, the translation will quickly appear in the same place.

  • Translate with Selected Element (Select Element): By activating the "Select Element" mode by clicking the extension icon in the browser toolbar, you can click on any desired element on the page (such as paragraphs, buttons, etc.) to translate its content into your preferred language.

  • Translate in Text Fields (Field): When working with forms, editors, and other text fields, you can translate your text in two ways:

    • Using the Ctrl + / shortcut: By pressing these key combinations, the text in the active field will be translated quickly.
    • By clicking the translator icon: A small translator icon appears next to text fields. By clicking on it, you can easily translate the content of the field.
  • Supports Multiple Translation Providers: This extension supports several different AI translation services, allowing you to choose the best option for your needs.


📋 Requirements

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


🔧 Installation

We're almost done with the fine-tuning, and we'll soon publish it on the Chrome Store.

1. Install via CRX File

  • Download the latest version of AI-Writing-Companion.crx from the Build-Extension/Chrome/ 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.
  • Go to the Settings page of the extension and enter your API key.

2. Install via Git

# Clone the repository
git clone https://github.com/iSegaro/AIWritingCompanion.git
cd AI-Writing-Companion
  • Instead of using the CRX file, you can use the AI-Writing-Companion/Build-Extension/Chrome/ folder.
  • Follow the CRX installation steps.


🔑 API Keys

To utilize the full capabilities of AI Writing Companion, you might need API keys from the following providers:

Provider Get API Key Cost
Google Gemini Google AI Studio Free
OpenAI OpenAI API Keys Paid
OpenRouter OpenRouter API Keys Free
WebAI to API (Doesn't Need) Free

Note: WebAI to API is a Python server that allows you to have a local API without needing an real API key.



🎯 Usage

  • Element Selection: Click on the translator icon in the browser toolbar, then select any element on the page that gets highlighted. The entire text within the selected element will be translated and replaced. Press ESC to revert to the original text.
  • Writing Fields: Click on any field to make the translation icon appear.
  • Shortcut: When an input field is active, press Ctrl + / to activate translation. Type your text in your native language, and then by pressing the shortcut, the text will be automatically replaced with its translation. It's really cool, and we love it! : )


☕ Buy Me a Coffee

If you found this project useful and can afford it, treat me to a coffee! :)


💰 Payment Method 🔗 Link
🟢 USDT (Ethereum) 0x76DAF7D7C3f7af9B90e16B5C25d063ff3A1A0f8f
🟠 Bitcoin (BTC) bc1qgxj96s6nks6nyhzlncw65nnuf7pyngyyxmfrsw
💲 PayPal Donate PayPal

Thank you for your support!

Your support goes to Mohammad Mohammad X



🤝 Contribute

  • Star the repo to support the project. ⭐
  • Report issues: GitHub Issues 🐞
  • Submit Pull Requests (PRs) to contribute improvements.


⚙️ Development

Prerequisites

Ensure Node.js is installed (which includes npm), then type the following in the terminal:

cd AI-Writing-Companion
npm install

Build

To generate extension files, type:

npm run build

This command creates the AI-Writing-Companion/Build-Extension/Chrome/ folder for manual installation.

But if you want to make changes, use this command which is much more useful:

npm run watch


🎨 Credits



📜 License

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

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for AIWritingCompanion

Similar Open Source Tools

For similar tasks

For similar jobs