Skip to content

Commit f6d82d7

Browse files
q fix
1 parent 3b78f67 commit f6d82d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bots/translateBot/api.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ export const translateText = async(text) => {
186186
}
187187

188188
try{
189-
let detectResponse = await axios.post(`https://translation.googleapis.com/language/translate/v2/detect?key=${API_KEY}`)
189+
let detectResponse = await axios.post(
190+
`https://translation.googleapis.com/language/translate/v2/detect?key=${API_KEY}`
191+
{
192+
q: text
193+
}
194+
)
190195

191196
let lang = ''
192197

0 commit comments

Comments
 (0)