From a0b110681d6b56ab43c028016c53507a92ccd466 Mon Sep 17 00:00:00 2001 From: Vincent Yang Date: Tue, 23 Apr 2024 00:54:06 -0400 Subject: [PATCH] fix: api host --- translate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate.go b/translate.go index 967520b..962e3a2 100644 --- a/translate.go +++ b/translate.go @@ -103,7 +103,7 @@ func translateByDeepLX(sourceLang string, targetLang string, translateText strin } // Preparing the request data for the DeepL API - url := "https://api.deepl.com/jsonrpc" + url := "https://www2.deepl.com/jsonrpc" id = id + 1 postData := initDeepLXData(sourceLang, targetLang) text := Text{ @@ -264,7 +264,7 @@ func translateByDeepLXPro(sourceLang string, targetLang string, translateText st } // Preparing the request data for the DeepL API - url := "https://www2.deepl.com/jsonrpc" + url := "https://api.deepl.com/jsonrpc" id = id + 1 postData := initDeepLXData(sourceLang, targetLang) text := Text{