Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Dec 18, 2023
1 parent c5a385a commit c1724cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
- [自定义设置](#自定义设置)
- [DeepL 翻译](#deepl-翻译)
- [配置 AuthKey](#配置-authkey)
- [自定义 DeepL 接口](#自定义-deepl-接口)
- [自定义 DeepL 接口地址](#自定义-deepl-接口地址)
- [配置 API 调用方式](#配置-api-调用方式)
- [腾讯翻译](#腾讯翻译)
- [Bing 翻译](#bing-翻译)
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit c1724cc

Please sign in to comment.