Skip to content

Commit

Permalink
fix(core.gbapp): Fix in Spanish NLP.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Feb 2, 2021
1 parent fb73476 commit a9a2bf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core.gbapp/services/GBConversationalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ export class GBConversationalService {
text = text.substr(0, 4999);
GBLog.warn(`Text that bot will translate will be truncated due to MSFT service limitations.`);
}
text = text.replace('¿', '');

let options = {
method: 'POST',
Expand All @@ -752,6 +753,7 @@ export class GBConversationalService {
};

try {

const results = await request(options);

return results[0].translations[0].text;
Expand Down

0 comments on commit a9a2bf8

Please sign in to comment.