Home

Awesome

<picture> <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/1651790/224081217-86521beb-1b69-4071-b195-f2ce0bb33db7.png"> <img alt="NebulaGraph Data Intelligence Suite(ngdi)" src="https://user-images.githubusercontent.com/1651790/224081979-d3aa7867-94a6-4a85-a5d7-603e02360cee.png"> </picture> <p align="center"> <br> English | <a href="README-CN.md">ไธญๆ–‡</a> </p> <p align="center"> <em>The translator that does more than just translation - powered by OpenAI.</em> </p> <p align="center"> <a href="LICENSE" target="_blank"> <img alt="MIT License" src="https://img.shields.io/github/license/yetone/openai-translator.svg?style=flat-square" /> </a> <!-- TypeScript Badge --> <img alt="TypeScript" src="https://img.shields.io/badge/-TypeScript-blue?style=flat-square&logo=typescript&logoColor=white" /> <!-- Rust Badge --> <img alt="Rust" src="https://img.shields.io/badge/-Rust-orange?style=flat-square&logo=rust&logoColor=white" /> <a href="https://chrome.google.com/webstore/detail/openai-translator/ogjibjphoadhljaoicdnjnmgokohngcc" target="_blank"> <img alt="Chrome" src="https://img.shields.io/chrome-web-store/stars/ogjibjphoadhljaoicdnjnmgokohngcc?color=blue&label=Chrome&style=flat-square&logo=google-chrome&logoColor=white" /> </a> <a href="https://addons.mozilla.org/en-US/firefox/addon/openai-translator/" target="_blank"> <img alt="Firefox" src="https://img.shields.io/amo/stars/openai-translator?color=orange&label=Firefox&style=flat-square&logo=firefox&logoColor=white" /> </a> <a href="https://github.com/yetone/openai-translator/releases" target="_blank"> <img alt="macOS" src="https://img.shields.io/badge/-macOS-black?style=flat-square&logo=apple&logoColor=white" /> </a> <a href="https://github.com/yetone/openai-translator/releases" target="_blank"> <img alt="Windows" src="https://img.shields.io/badge/-Windows-blue?style=flat-square&logo=windows&logoColor=white" /> </a> <a href="https://github.com/yetone/openai-translator/releases" target="_blank"> <img alt="Linux" src="https://img.shields.io/badge/-Linux-yellow?style=flat-square&logo=linux&logoColor=white" /> </a> </p>

Why Yet another Translator

I have developed a Bob plugin that utilizes ChatGPT API to provide global word translation on macOS. However, since not all users have access to macOS to benefit from the plugin, I have created this project!

More than just a browser extension

What began as a Chrome extension has now evolved into a multi-platform desktop app that I am currently developing.

<p align="center"> <img width="560" src="https://user-images.githubusercontent.com/1206493/223899374-ff386436-63b8-4618-afdd-fed2e6b48d56.png" /> </p>

More than just translation

What began as a translation tool has now evolved to include surprisingly effective word polishing and summarization capabilities, accidentally.

How to use

<p align="center"> <img width="800" src="https://user-images.githubusercontent.com/1206493/223200182-6a1d2a02-3fe0-4723-bdae-99d8b7212a33.gif" /> </p>

Features

  1. It offers three modes: translation, polishing and summarization.
  2. Our tool allows for mutual translation, polishing and summarization across 55 different languages.
  3. Streaming mode is supported!
  4. It allows users to customize their translation text.
  5. One-click copying
  6. Text-to-Speech (TTS)
  7. Available on all platforms (Windows, macOS, and Linux) for both browsers and Desktop
  8. Support screenshot translation
  9. Support for vocabulary books, as well as support for generating memory aids based on the words in the vocabulary books
  10. Supports both OpenAI and Azure OpenAI Service at the same time

Preparation

Installation

Windows

Install Manually

  1. Download the installation package ending in .exe from the Latest Release page.
  2. Double click the downloaded file to install it.
  3. If prompted as unsafe, you can click on More Info -> Run Anyway to proceed with the installation.
  4. Ready to use!

MacOS

Install Manually

  1. Go to the Latest Release page and download the corresponding chip's .dmg installation package. Note: Use aarch64 version for Apple Silicon machines and run xattr command below.
  2. Double click the downloaded file to install it.
  3. Ready to use!

Troubleshooting

Installing Desktop Clip Extensions

For details, see Desktop Clip Extension

<p align="center"> <img width="600" src="https://user-images.githubusercontent.com/1206493/240355949-8f41d98d-f097-4ce4-a533-af60e1757ca1.gif" /> </p>

Browser Extension

  1. Visit your Browser Extension Store to install this plugin:

    <p align="center"> <a target="_blank" href="https://chrome.google.com/webstore/detail/openai-translator/ogjibjphoadhljaoicdnjnmgokohngcc"> <img src="https://img.shields.io/chrome-web-store/v/ogjibjphoadhljaoicdnjnmgokohngcc?label=Chrome%20Web%20Store&style=for-the-badge&color=blue&logo=google-chrome&logoColor=white" /> </a> <a target="_blank" href="https://addons.mozilla.org/en-US/firefox/addon/openai-translator/"> <img src="https://img.shields.io/amo/v/openai-translator?label=Firefox%20Add-on&style=for-the-badge&color=orange&logo=firefox&logoColor=white" /> </a> </p>
  2. Click on the OpenAI Translator icon in the browser plugin list, and enter the obtained API KEY into the configuration interface that pops up from this plugin.

    <p align="center"> <img width="600" src="https://user-images.githubusercontent.com/1206493/222958165-159719b4-28a5-44a4-b700-567786df7f03.png" /> </p>
  3. Refresh the page in the browser to enjoy the smooth translation experience ๐ŸŽ‰!

Configure Azure OpenAI Service

const API_URL = `https://${resourceName}.openai.azure.com`
const API_URL_PATH = `/openai/deployments/${deployName}/chat/completions?api-version=${apiVersion}`

License

LICENSE

Star History

<p align="center"> <a target="_blank" href="https://star-history.com/#yetone/openai-translator&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=yetone/openai-translator&type=Date&theme=dark"> <img alt="NebulaGraph Data Intelligence Suite(ngdi)" src="https://api.star-history.com/svg?repos=yetone/openai-translator&type=Date"> </picture> </a> </p>