diff --git a/src/translate/index.js b/src/translate/index.js index a44af58574..6f5e80daa9 100644 --- a/src/translate/index.js +++ b/src/translate/index.js @@ -5,10 +5,10 @@ const translatorApi = module.exports; translatorApi.translate = async function (postData) { // Edit the translator URL below - const TRANSLATOR_API = "https://nodebb-f24-translator.azurewebsites.net" + const TRANSLATOR_API = "https://translator-service-team-tbd-abh6bqaghsf4b8fz.eastus-01.azurewebsites.net" const query = `?content=${postData.content}`; const url = encodeURI(TRANSLATOR_API + '/' + query); const response = await fetch(url); const data = await response.json(); return [data["is_english"], data["translated_content"]] -} \ No newline at end of file +}