Closed
Description
The changes in [#6531] Prompt validation of confirm prompt in chatbot is not working for newly added language (#6554) may need to be ported to maintain parity with microsoft/botbuilder-dotnet
.
Fixes #6531Description
This PR adds the new RecognizeLanguage property in the PromptOptions class to be used in the onRecognizedAsync method allowing a different language than the one determined by the activity.
It also updates the onRecognizedAsync method of the ConfirmPrompt class to use this property solving the issue when a ConfirmPrompt is used along with a TranslationMiddleware.Specific Changes
- Updated PromptOptions class adding the RecognizeLanguage property.
- Updated the onRecognizedAsync method of the ConfirmPrompt class using the new property.
- Added a unit test in ConfirmPromptTests to cover the new test case.
Testing
These images show a bot using the translator service and the confirm prompt working as expected.
Please review and, if necessary, port the changes.
Activity
port: [#4369] Prompt validation of confirm prompt in chatbot is not w…