Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#5766] Choice options separator should be multi language #6366

Merged
merged 3 commits into from
Jun 27, 2022

Conversation

ceciliaavila
Copy link
Collaborator

Fixes #5766

Description

This PR updates the ChoiceOptions to support LG allowing to define different template expressions for each language.
It also adds unit tests to cover the new code.

Specific Changes

  • Updated ChoiceInput to get the choice options from an expression.
  • Updated ConfirmInput to get the choice options from an expression.
  • Added the new class ChoiceOptionsSet containing the BindAsync method to map the LG expression into a ChoiceFactoryOptions object.
  • Updated ChoiceInput and ConfirmInput schemas.
  • Added new tests in ActionTests class:
    • Action_ChoicesWithChoiceOptions.test.dialog
    • Action_ChoicesWithChoiceOptionsTemplate.test.dialog
    • Action_ConfirmInputWithChoiceOptions.test.dialog
    • Action_ConfirmInputWithChoiceOptionsTemplate.test.dialog
  • Added new test class ChoiceOptionsSetTests.

Testing

These images show the new unit tests passing and a multilingual bot using expressions to translate the choice options separators.
image
image

@ceciliaavila ceciliaavila added the Automation: Parity with js The PR needs to be ported to JS label Jun 16, 2022
@ceciliaavila ceciliaavila requested a review from a team as a code owner June 16, 2022 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation: Parity with js The PR needs to be ported to JS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Choice options separator should be multi language
3 participants