Google Translate

23 views
Skip to first unread message

DOUA PROBE

unread,
Jun 21, 2021, 5:55:12 AM6/21/21
to CopyQ
Hello Members!
I tried this command:

copyq:
text = str(input())

url = "https://translate.google.com/#auto/en/???"

x = url.replace("???", encodeURIComponent(text))

html = '<html><head><meta http-equiv="refresh" content="0;url=' + x + '" /></head></html>'

tab(selectedtab())
write(index() + 1, "text/html", html)

...but it doesn't work. Can anyone help me make a script to replace the word from one language to another?

Thank you in advanced!
Reply all
Reply to author
Forward
0 new messages