Skip to content

Commit

Permalink
commiting to trigger deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Reem Konsowa authored and Reem Konsowa committed Nov 15, 2024
1 parent 0c6a550 commit 4277dc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/translate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4277dc0

Please sign in to comment.