From 7b50838f68fc29ad77dee53e28c2547a0a5c4a6e Mon Sep 17 00:00:00 2001 From: Vincent Yang Date: Tue, 23 Apr 2024 00:53:43 -0400 Subject: [PATCH] fix: api host --- translate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate.go b/translate.go index 75ea6e9..967520b 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://www2.deepl.com/jsonrpc" + url := "https://api.deepl.com/jsonrpc" id = id + 1 postData := initDeepLXData(sourceLang, targetLang) text := Text{