Skip to content

Commit

Permalink
q fix
Browse files Browse the repository at this point in the history
  • Loading branch information
transkarpation committed Mar 13, 2024
1 parent 3b78f67 commit f6d82d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bots/translateBot/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ export const translateText = async(text) => {
}

try{
let detectResponse = await axios.post(`https://translation.googleapis.com/language/translate/v2/detect?key=${API_KEY}`)
let detectResponse = await axios.post(
`https://translation.googleapis.com/language/translate/v2/detect?key=${API_KEY}`
{
q: text
}
)

let lang = ''

Expand Down

0 comments on commit f6d82d7

Please sign in to comment.