Skip to content

Commit

Permalink
fix: known bug
Browse files Browse the repository at this point in the history
  • Loading branch information
missuo committed Nov 29, 2023
1 parent 9b2d712 commit 9ca3249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: Vincent Young
* @Date: 2023-07-01 21:45:34
* @LastEditors: Vincent Young
* @LastEditTime: 2023-11-28 00:23:42
* @LastEditTime: 2023-11-28 21:02:08
* @FilePath: /DeepLX/main.go
* @Telegram: https://t.me/missuo
*
Expand Down Expand Up @@ -154,7 +154,7 @@ type TranslationResponse struct {
Translations []Translation `json:"translations"`
}

func translateByAPI(text string, targetLang string, sourceLang string, authKey string) (string, error) {
func translateByAPI(text string, sourceLang string, targetLang string, authKey string) (string, error) {
url := "https://api-free.deepl.com/v2/translate"
textArray := strings.Split(text, "\n")

Expand Down

0 comments on commit 9ca3249

Please sign in to comment.