Skip to content

Commit

Permalink
Merge pull request #99 from kdmsnr/patch-1
Browse files Browse the repository at this point in the history
Use 'gtx' instead of 't' as ``client`` parameter.
  • Loading branch information
stardiviner authored Jul 22, 2020
2 parents c66cbc9 + 7aa3cd4 commit 619d318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google-translate-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ QUERY-PARAMS must be an alist of field-value pairs."
("total" . ,(or total "1"))
("idx" . ,(or idx "0"))
("textlen" . ,(number-to-string (length text)))
("client" . "t")
("client" . "gtx")
("prev" . "input")
("tk" . ,(google-translate--gen-tk text)))))

Expand Down Expand Up @@ -253,7 +253,7 @@ response in json format."
translate TEXT from SOURCE-LANGUAGE to TARGET-LANGUAGE."
(google-translate--http-response-body
(google-translate--format-request-url
`(("client" . "t")
`(("client" . "gtx")
("ie" . "UTF-8")
("oe" . "UTF-8")
("hl" . ,google-translate-host-language)
Expand Down

0 comments on commit 619d318

Please sign in to comment.