From 0916308b9f12b9ff91bd3db22c1a251a665c2264 Mon Sep 17 00:00:00 2001 From: Andrew Youn <52907065+ay0503@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:57:58 -0500 Subject: [PATCH] Changed API URI. --- src/translate/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/translate/index.js b/src/translate/index.js index 259cdd3222..cd3d65a1ee 100644 --- a/src/translate/index.js +++ b/src/translate/index.js @@ -5,7 +5,7 @@ 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://nodebb-f24-translator.azurewebsites.net" const response = await fetch(TRANSLATOR_API + '/?content=' + postData.content); const data = await response.json(); return [data["is_english"], data["translated_content"]]