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
- It offers three modes: translation, polishing and summarization.
- Our tool allows for mutual translation, polishing and summarization across 55 different languages.
- Streaming mode is supported!
- It allows users to customize their translation text.
- One-click copying
- Text-to-Speech (TTS)
- Available on all platforms (Windows, macOS, and Linux) for both browsers and Desktop
- Support screenshot translation
- Support for vocabulary books, as well as support for generating memory aids based on the words in the vocabulary books
- Supports both OpenAI and Azure OpenAI Service at the same time
Preparation
- (required) Apply for an OpenAI API key here or Azure OpenAI Service API Key
- (optional) If you cannot access OpenAI, you can use the OpenAI API Proxy.
Installation
Windows
Install Manually
- Download the installation package ending in
.exe
from the Latest Release page. - Double click the downloaded file to install it.
- If prompted as unsafe, you can click on
More Info
->Run Anyway
to proceed with the installation. - Ready to use!
MacOS
Install Manually
- Go to the Latest Release page and download the corresponding chip's
.dmg
installation package. Note: Use aarch64 version for Apple Silicon machines and runxattr
command below. - Double click the downloaded file to install it.
- Ready to use!
Troubleshooting
-
"OpenAI Translator" canโt be opened because the developer cannot be verified.
<p align="center"> <img width="300" src="https://user-images.githubusercontent.com/1206493/223916804-45ce3f34-6a4a-4baf-a0c1-4ab5c54c521f.png" /> </p>-
Click the
<p align="center"> <img width="500" src="https://user-images.githubusercontent.com/1206493/223916970-9c99f15e-cf61-4770-b92d-4a78f980bb26.png" /> <img width="200" src="https://user-images.githubusercontent.com/1206493/223917449-ed1ac19f-c43d-4b13-9888-79ba46ceb862.png" /> </p>Cancel
button, then go to theSettings
->Privacy and Security
page, click theStill Open
button, and then click theOpen
button in the pop-up window. After that, there will be no more pop-up warnings when openingOpenAI Translator
. ๐ -
If you cannot find the above options in
Privacy & Security
, or get error prompts such as broken files with Apple Silicon machines. OpenTerminal.app
and enter the following command (you may need to enter a password halfway through), then restartOpenAI Translator
:sudo xattr -d com.apple.quarantine /Applications/OpenAI\ Translator.app
-
-
If you encounter a permission prompt every time you open it, or if you cannot perform a shortcut translation, please go to
<p align="center"> <img width="500" src="https://user-images.githubusercontent.com/1206493/224536148-eec559bf-4d99-48c1-bbd3-2cc105aff084.png" /> <img width="600" src="https://user-images.githubusercontent.com/1206493/224536277-4200f58e-8dc0-4c01-a27a-a30d7d8dc69e.gif" /> </p>Settings
->Privacy & Security
->Supporting Features
to remove OpenAI Translator, and then re-add OpenAI Translator.
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
-
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> -
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> -
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}`
- resourceName: Your Azure OpenAI Service resource name.
- deployName: Your Azure OpenAI Service model deploy name, you can change your model here.
- api-version: 2023-05-15, or newer. (supported api-version can be found at Azure's official doc)