fix: api host

This commit is contained in:
Vincent Yang 2024-04-23 00:53:43 -04:00
parent c954c65d0f
commit 7b50838f68
No known key found for this signature in database
GPG Key ID: 55F1635E821BF0E8

View File

@ -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{