We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0125271 commit bdbce5cCopy full SHA for bdbce5c
server/src/helpers/translation.js
@@ -4,7 +4,9 @@ const logger = require('./logger')
4
const key = process.env.CLOUD_TRANSLATION_API_KEY || ''
5
const detectApiUrl = new URL('https://translation.googleapis.com/language/translate/v2/detect')
6
detectApiUrl.searchParams.append('key', key)
7
-const translationApiUrl = new URL('https://translation.googleapis.com/language/translate/v2')
+const translationApiUrl = new URL(
8
+ 'https://translation.googleapis.com/language/translate/v2?format=text'
9
+)
10
translationApiUrl.searchParams.append('key', key)
11
12
const detectLanguage = async text => {
0 commit comments