From 4277dc0eddc1932fa19076ff927f9cecf7203f78 Mon Sep 17 00:00:00 2001 From: Reem Konsowa Date: Fri, 15 Nov 2024 12:40:10 +0300 Subject: [PATCH] commiting to trigger deployment --- src/translate/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/translate/index.js b/src/translate/index.js index 466bc2a648..fd971bca4c 100644 --- a/src/translate/index.js +++ b/src/translate/index.js @@ -3,7 +3,8 @@ const translatorApi = module.exports; translatorApi.translate = async function (postData) { - const TRANSLATOR_API = 'https://nodebb-f24-translator.azurewebsites.net/'; + // Edit the translator URL below + const TRANSLATOR_API = 'translator-syntax-squad.azurewebsites.net'; const response = await fetch(`${TRANSLATOR_API}/?content=${postData.content}`); const data = await response.json(); return [data.is_english, data.translated_content];