mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Update tools.py
Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
parent
f2a737da43
commit
b98911da41
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ GENRES_EMOJI = {
|
||||||
|
|
||||||
async def gtranslate(text, source="auto", target="id"):
|
async def gtranslate(text, source="auto", target="id"):
|
||||||
async with Translator() as translator:
|
async with Translator() as translator:
|
||||||
result = await translator.translate(text, source, target)
|
result = await translator.translate(text, src=source, dest=target)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue