diff --git a/extensions/utility/translate.py b/extensions/utility/translate.py index 6be6df6..2e9becb 100644 --- a/extensions/utility/translate.py +++ b/extensions/utility/translate.py @@ -26,7 +26,7 @@ async def translate_text(self, text: str): data = await response.json() sentences = data["sentences"][0]["trans"] - return sentences + return "".join(sentence.get("trans", "") for sentence in sentences) except Exception: return "Some error happened :("