From 9f7160ddc68cadfa11959b6ae1410572b35ce55a Mon Sep 17 00:00:00 2001 From: Zekun Li <33238951+uozkl@users.noreply.github.com> Date: Wed, 21 Jul 2021 19:49:13 -0400 Subject: [PATCH] Add DeepL API --- config/config.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/config.json b/config/config.json index 2f7df30..35e4c07 100644 --- a/config/config.json +++ b/config/config.json @@ -69,6 +69,14 @@ "jsFile": "config\\baiduApi.js", "name": "百度" }, + { + "enable": false, + "method": "POST", + "name": "DeepL", + "requestBodyFormat": "X{\"auth_key\":\"#Replace with your auth_key#\",\"text\":%TEXT%,\"target_lang\":\"ZH\"}", + "responseBodyPattern": "J%RESPONSE%.translations[0].text", + "url": "https://api-free.deepl.com/v2/translate" + }, { "enable": false, "external": true,