diff --git a/README.md b/README.md index dd202e0e8..3007ac4e8 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ## Easydict -`Easydict` 是一个简洁易用的词典翻译 macOS App,能够轻松优雅地查找单词或翻译文本。Easydict 开箱即用,能自动识别输入文本语言,支持输入翻译,划词翻译和 OCR 截图翻译,可同时查询多个翻译服务结果,目前支持 [有道词典](https://www.youdao.com/),[**🍎 苹果系统词典**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-zh.md),[🍎 **苹果系统翻译**](./docs/How-to-use-macOS-system-translation-in-Easydict-zh.md),[OpenAI (ChatGPT)](https://chat.openai.com/),[DeepL](https://www.deepl.com/translator),[Google](https://translate.google.com),[腾讯翻译](https://fanyi.qq.com/),[Bing](https://www.bing.com/translator),[百度](https://fanyi.baidu.com/),[小牛翻译](https://niutrans.com/),[彩云小译](https://fanyi.caiyunapp.com/) 和 [火山翻译](https://translate.volcengine.com/translate)。 +`Easydict` 是一个简洁易用的词典翻译 macOS App,能够轻松优雅地查找单词或翻译文本。Easydict 开箱即用,能自动识别输入文本语言,支持输入翻译,划词翻译和 OCR 截图翻译,可同时查询多个翻译服务结果,目前支持 [有道词典](https://www.youdao.com/),[**🍎 苹果系统词典**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-zh.md),[🍎 **苹果系统翻译**](./docs/How-to-use-macOS-system-translation-in-Easydict-zh.md),[OpenAI (ChatGPT)](https://chat.openai.com/),[DeepL](https://www.deepl.com/translator),[Google](https://translate.google.com),[腾讯](https://fanyi.qq.com/),[Bing](https://www.bing.com/translator),[百度](https://fanyi.baidu.com/),[小牛翻译](https://niutrans.com/),[彩云小译](https://fanyi.caiyunapp.com/) 和 [火山翻译](https://translate.volcengine.com/translate)。 ![Log](https://raw.githubusercontent.com/tisfeng/ImageBed/main/uPic/Log-1688378715.png) @@ -74,6 +74,7 @@ - [自定义设置](#自定义设置) - [DeepL 翻译](#deepl-翻译) - [配置 AuthKey](#配置-authkey) + - [自定义 DeepL 接口](#自定义-deepl-接口) - [配置 API 调用方式](#配置-api-调用方式) - [腾讯翻译](#腾讯翻译) - [Bing 翻译](#bing-翻译) @@ -416,6 +417,17 @@ DeepL 免费版网页 API 对用户单个 IP 有频率限制,频繁使用会 easydict://writeKeyValue?EZDeepLAuthKey=xxx ``` +#### 自定义 DeepL 接口 + +``` +easydict://writeKeyValue?EZDeepLTranslateEndPointKey=xxx +``` +借助下面开源项目,可以在自己的服务器或者 Cloudflare 上部署支持 DeepL 翻译的接口服务: + +- [deeplx-for-cloudflare](https://github.com/ifyour/deeplx-for-cloudflare) +- [DeepLX](https://github.com/OwO-Network/DeepLX) + + #### 配置 API 调用方式 1. 默认优先使用网页版 API,在网页版 API 失败时会使用个人的 AuthKey(如果有) diff --git a/README_EN.md b/README_EN.md index 70c8385e0..394b99c20 100644 --- a/README_EN.md +++ b/README_EN.md @@ -20,7 +20,7 @@ ## Easydict -`Easydict` is a concise and easy-to-use translation dictionary macOS App that allows you to easily and elegantly look up words or translate text. Easydict is ready to use out of the box, can automatically recognize the language of the input text, supports input translate, select translate, and OCR screenshot translate, and can query multiple translation services results at the same time. Currently, it supports [Youdao Dictionary](https://www.youdao.com/), [**🍎 Apple System Dictionary**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-en.md), [**🍎 macOS System Translation**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-zh.md), [OpenAI(ChatGPT)](https://chat.openai.com/), [DeepL](https://www.deepl.com/translator), [Google](https://translate.google.com/), [Tencent Translate](https://fanyi.qq.com/), [Bing Translate](https://www.bing.com/translator), [Baidu](https://fanyi.baidu.com/), [Niutrans](https://niutrans.com/), [Lingocloud](https://fanyi.caiyunapp.com/#/) and [Volcano Translation](https://translate.volcengine.com/translate). +`Easydict` is a concise and easy-to-use translation dictionary macOS App that allows you to easily and elegantly look up words or translate text. Easydict is ready to use out of the box, can automatically recognize the language of the input text, supports input translate, select translate, and OCR screenshot translate, and can query multiple translation services results at the same time. Currently, it supports [Youdao Dictionary](https://www.youdao.com/), [**🍎 Apple System Dictionary**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-en.md), [**🍎 macOS System Translation**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-zh.md), [OpenAI(ChatGPT)](https://chat.openai.com/), [DeepL](https://www.deepl.com/translator), [Google](https://translate.google.com/), [Tencent](https://fanyi.qq.com/), [Bing](https://www.bing.com/translator), [Baidu](https://fanyi.baidu.com/), [Niutrans](https://niutrans.com/), [Lingocloud](https://fanyi.caiyunapp.com/#/) and [Volcano Translation](https://translate.volcengine.com/translate). ![Log](https://raw.githubusercontent.com/tisfeng/ImageBed/main/uPic/Log-1688378715.png) @@ -73,6 +73,7 @@ - [Customizations](#customizations) - [DeepL Translate](#deepl-translate) - [Configure AuthKey](#configure-authkey) + - [Configure API endpoint](#configure-api-endpoint) - [Configure API call method](#configure-api-call-method) - [腾讯翻译](#腾讯翻译) - [Tencent Translate](#tencent-translate) @@ -416,6 +417,17 @@ Enter the following code in the input box, xxx is your DeepL AuthKey, and then E easydict://writeKeyValue?EZDeepLAuthKey=xxx ``` +#### Configure API endpoint + +``` +easydict://writeKeyValue?EZDeepLTranslateEndPointKey=xxx +``` + +With the help of the following open source projects, you can deploy a DeepL translation interface service that supports DeepL translation on your own server or Cloudflare: + +- [deeplx-for-cloudflare](https://github.com/ifyour/deeplx-for-cloudflare) +- [DeepLX](https://github.com/OwO-Network/DeepLX) + #### Configure API call method 1. The web version API is used by default, and the personal AuthKey will be used when the web version API fails (if any)