Skip to content

Commit

Permalink
Update translator service URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-elzeni committed Nov 17, 2024
1 parent 032fe82 commit b417b40
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://translation-service-logic-lords.azurewebsites.net';
// 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 b417b40

Please sign in to comment.