fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 842e70d725 - Show all commits

View file

@ -1076,6 +1076,7 @@ export class GBConversationalService {
} }
}); });
} }
GBLog.info(`Tokens (processMessageActivity): ${textProcessed}.`);
// Spells check the input text before translating, // Spells check the input text before translating,
// keeping fixed tokens as specified in Config. // keeping fixed tokens as specified in Config.
@ -1122,7 +1123,6 @@ export class GBConversationalService {
// reserved tokens specified in Config. // reserved tokens specified in Config.
text = await min.conversationalService.translate(min, text, locale); text = await min.conversationalService.translate(min, text, locale);
GBLog.verbose(`Translated text (processMessageActivity): ${text}.`);
// Restores all token text back after spell checking and translation. // Restores all token text back after spell checking and translation.
@ -1133,6 +1133,7 @@ export class GBConversationalService {
text = text.replace(new RegExp(`${item.replacementToken}`, 'gi'), item.text); text = text.replace(new RegExp(`${item.replacementToken}`, 'gi'), item.text);
}); });
} }
GBLog.info(`After (processMessageActivity): ${text}.`);
return text; return text;
} }