Update tools.py

Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
Yasir Aris M 2025-02-14 22:35:29 +07:00 committed by GitHub
parent f2a737da43
commit b98911da41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ GENRES_EMOJI = {
async def gtranslate(text, source="auto", target="id"):
async with Translator() as translator:
result = await translator.translate(text, source, target)
result = await translator.translate(text, src=source, dest=target)
return result