Skip to content

Commit

Permalink
<-
Browse files Browse the repository at this point in the history
  • Loading branch information
Itz-fork committed Oct 29, 2023
1 parent 0c0173d commit c7056f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_trans/async_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def translate(self, text, dest_lang="en"):

# Google Translate
async def google_translate(self, text, dest_lang):
r_url = f"https://clients5.google.com/translate_a/t?client=dict-chrome-ex&sl=auto&tl={dest_lang}&q={text}"
r_url = f"https://clients5.google.com/translate_a/t?client=at&sl=auto&tl={dest_lang}&q={text}"
try:
async with ClientSession() as tr_ses:
async with tr_ses.get(r_url) as get_req:
Expand Down

0 comments on commit c7056f2

Please sign in to comment.