This repository was archived by the owner on Jan 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 290
[PORT]Make language policy in MultiLanguageRecognizer align with the policy in UseLanguagePolicy #2890
Merged
Merged
[PORT]Make language policy in MultiLanguageRecognizer align with the policy in UseLanguagePolicy #2890
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
01f17c8
Make language policy in MultiLanguageRecognizer align with the policy…
Danieladu 44ad8a3
Merge branch 'main' into hond/languagePolicy
Danieladu fb2d429
apply the latest feature
Danieladu 928ac4c
fix the type conversion
Danieladu c058074
refine code
Danieladu 7f4f581
Merge branch 'main' into hond/languagePolicy
Danieladu a5abefb
merge main
Danieladu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
...urces/MultiLanguageRecognizerTests/MultiLanguageRecognizerTest_LanguagePolicy.test.dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| { | ||
| "$schema": "../../../../schemas/sdk.schema", | ||
| "$kind": "Microsoft.Test.Script", | ||
| "dialog": { | ||
| "$kind": "Microsoft.AdaptiveDialog", | ||
| "recognizer": { | ||
| "$kind": "Microsoft.MultiLanguageRecognizer", | ||
| "recognizers": { | ||
| "en-us": { | ||
| "$kind": "Microsoft.RegexRecognizer", | ||
| "intents": [ | ||
| { | ||
| "intent": "Greeting", | ||
| "pattern": "(?i)howdy" | ||
| }, | ||
| { | ||
| "intent": "Goodbye", | ||
| "pattern": "(?i)bye" | ||
| } | ||
| ] | ||
| }, | ||
| "en-gb": { | ||
| "$kind": "Microsoft.RegexRecognizer", | ||
| "intents": [ | ||
| { | ||
| "intent": "Greeting", | ||
| "pattern": "(?i)hiya" | ||
| }, | ||
| { | ||
| "intent": "Goodbye", | ||
| "pattern": "(?i)cheerio" | ||
| } | ||
| ] | ||
| }, | ||
| "en": { | ||
| "$kind": "Microsoft.RegexRecognizer", | ||
| "intents": [ | ||
| { | ||
| "intent": "Greeting", | ||
| "pattern": "(?i)hello" | ||
| }, | ||
| { | ||
| "intent": "Goodbye", | ||
| "pattern": "(?i)goodbye" | ||
| } | ||
| ] | ||
| }, | ||
| "": { | ||
| "$kind": "Microsoft.RegexRecognizer", | ||
| "intents": [ | ||
| { | ||
| "intent": "Greeting", | ||
| "pattern": "(?i)salve" | ||
| }, | ||
| { | ||
| "intent": "Goodbye", | ||
| "pattern": "(?i)vale dicere" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "triggers": [ | ||
| { | ||
| "$kind": "Microsoft.OnIntent", | ||
| "intent": "Greeting", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "activity": "greeting intent" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.OnIntent", | ||
| "intent": "Goodbye", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "activity": "goodbye intent" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.OnUnknownIntent", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "activity": "default rule" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "defaultResultProperty": "dialog.result" | ||
| }, | ||
| "languagePolicy": { | ||
| "": [ "en-gb", "" ] | ||
| }, | ||
| "locale": "", | ||
| "script": [ | ||
| { | ||
| "$kind": "Microsoft.Test.UserSays", | ||
| "text": "hiya" | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.Test.AssertReply", | ||
| "text": "greeting intent" | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.Test.UserSays", | ||
| "text": "howdy" | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.Test.AssertReply", | ||
| "text": "default rule" | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.Test.UserSays", | ||
| "text": "cheerio" | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.Test.AssertReply", | ||
| "text": "goodbye intent" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.