fix(basic.gblib): SET LANGUAGE fix.

This commit is contained in:
Rodrigo Rodriguez 2024-02-28 21:09:57 -03:00
parent cff2107270
commit 842e70d725

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;
} }