Skip to content

Commit

Permalink
try multiline it
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico040 committed May 30, 2024
1 parent 80e01bd commit d222aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dislate/src/api/GTranslate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d222aa4

Please sign in to comment.