From d222aa4c2713b15cb87373bc8fb34f73d3a4d131 Mon Sep 17 00:00:00 2001 From: Rico040 <93081680+Rico040@users.noreply.github.com> Date: Thu, 30 May 2024 23:21:02 +0000 Subject: [PATCH] try multiline it --- plugins/dislate/src/api/GTranslate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dislate/src/api/GTranslate.ts b/plugins/dislate/src/api/GTranslate.ts index 2b30423..4e6963a 100644 --- a/plugins/dislate/src/api/GTranslate.ts +++ b/plugins/dislate/src/api/GTranslate.ts @@ -12,7 +12,7 @@ const translate = async (text: string, source_lang: string = "auto", target_lang dt: "t", dj: "1", source: "input", - q: text + q: encodeURIComponent(text) }); const data: GTranslateResponse = await (await fetch(API_URL)).json()