From c1724ccac615b3ff0d56d264861f5121f8f33b6b Mon Sep 17 00:00:00 2001 From: tisfeng Date: Mon, 18 Dec 2023 19:07:26 +0800 Subject: [PATCH] docs: update README --- README.md | 10 ++++++++-- README_EN.md | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3007ac4e8..6203b5aac 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ - [自定义设置](#自定义设置) - [DeepL 翻译](#deepl-翻译) - [配置 AuthKey](#配置-authkey) - - [自定义 DeepL 接口](#自定义-deepl-接口) + - [自定义 DeepL 接口地址](#自定义-deepl-接口地址) - [配置 API 调用方式](#配置-api-调用方式) - [腾讯翻译](#腾讯翻译) - [Bing 翻译](#bing-翻译) @@ -417,7 +417,13 @@ DeepL 免费版网页 API 对用户单个 IP 有频率限制,频繁使用会 easydict://writeKeyValue?EZDeepLAuthKey=xxx ``` -#### 自定义 DeepL 接口 +#### 自定义 DeepL 接口地址 + +如果没有自己的 AuthKey,又需要大量使用 DeepL 翻译,那么可以考虑自己部署支持 DeepL 的接口服务,或者使用支持 DeepL 的第三方服务。 + +这种情况需要设置自定义 DeepL 接口地址,其中 EZDeepLTranslateEndPointKey 的值应该是完整的请求 URL,例如 DeepL 官方接口是 https://api-free.deepl.com/v2/translate。如果自定义接口需要 AuthKey,配置方式和前面一样,接口参数和 DeepL 官方保持一致。 + +自定义 DeepL 接口地址的方式,在 Easydict 程序中等同于 DeepL 官方 AuthKey API 形式。 ``` easydict://writeKeyValue?EZDeepLTranslateEndPointKey=xxx diff --git a/README_EN.md b/README_EN.md index 394b99c20..9584309cc 100644 --- a/README_EN.md +++ b/README_EN.md @@ -419,6 +419,12 @@ easydict://writeKeyValue?EZDeepLAuthKey=xxx #### Configure API endpoint +If you don't have your own AuthKey and need to use DeepL translation a lot, you can consider deploying your own interface service that supports DeepL, or using a third-party service that supports DeepL. + +In this case, you need to set a custom DeepL interface address, where the value of EZDeepLTranslateEndPointKey should be the complete request URL, for example, the DeepL official interface is https://api-free.deepl.com/v2/translate. If the custom interface requires AuthKey, the configuration method is the same as before, and the interface parameters are consistent with the DeepL official. + +The way to customize the DeepL interface address is equivalent to the DeepL official AuthKey API form in the Easydict program. + ``` easydict://writeKeyValue?EZDeepLTranslateEndPointKey=xxx ```