Skip to content

Commit

Permalink
Update translator URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-elzeni committed Nov 16, 2024
1 parent 1ad806e commit 032fe82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/translate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,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://translation-service-logic-lords.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 032fe82

Please sign in to comment.