import pyperclip
from translation import get_translate
import sys

cd = pyperclip

to_lang = sys.argv[1]


text = cd.paste()

try:
    output = get_translate(text=text, to_lang=to_lang, from_lang="AUTO")
    cd.copy(output)
except Exception:
    print("Sorry, try again")
3250531d09be18a77a4ca4e3b5593edd42326be9
<mask token>

<mask token>
try:
    output = get_translate(text=text, to_lang=to_lang, from_lang='AUTO')
    cd.copy(output)
except Exception:
    print('Sorry, try again')

<mask token>
cd = pyperclip
to_lang = sys.argv[1]
text = cd.paste()
try:
    output = get_translate(text=text, to_lang=to_lang, from_lang='AUTO')
    cd.copy(output)
except Exception:
    print('Sorry, try again')

import pyperclip
from translation import get_translate
import sys
cd = pyperclip
to_lang = sys.argv[1]
text = cd.paste()
try:
    output = get_translate(text=text, to_lang=to_lang, from_lang='AUTO')
    cd.copy(output)
except Exception:
    print('Sorry, try again')

import pyperclip
from translation import get_translate
import sys

cd = pyperclip

to_lang = sys.argv[1]


text = cd.paste()

try:
    output = get_translate(text=text, to_lang=to_lang, from_lang="AUTO")
    cd.copy(output)
except Exception:
    print("Sorry, try again")