Danish Language Support in Confirm Prompt Bot v4 (C#/.Net Core)
See original GitHub issueDanish Language is not supported by the Confirm Prompt Class and no way provided to extend it.
Version
v4.5.0
Describe the bug
Danish Language is not supported by the Confirm Prompt Class and no way provided to extend it.
Essentially, this code is required -
{ Danish, (new Choice("Ja"), new Choice("Nej"), new ChoiceFactoryOptions(", ", " of ", ", of ", true)) },
Take a look at code here - https://github.com/microsoft/botbuilder-dotnet/blob/master/libraries/Microsoft.Bot.Builder.Dialogs/Prompts/ConfirmPrompt.cs
To Reproduce
Steps to reproduce the behavior:
- Add a Confirm Prompt in V4 Bot
- Try to set Default Locale to Danish
Expected behavior
Danish Locale should be added. And it should be made configurable/injectable for different languages to make it decoupled.
Additional context
Please take action on this as soon as possible.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
How to add support for different language in Confirm ...
I would like to use Confirm Prompt but currently Confirm Prompt supports only few languages such as en-us, fr-fr etc.
Read more >Microsoft Bot Framework SDK v4 Prompts using .NET C# - ...
This class has several built-in prompt types, including text, number, choice, and confirmation prompts. Text prompts are used to prompt the user ...
Read more >ConfirmPrompt Class (Microsoft.Bot.Builder.Dialogs)
Prompts a user to confirm something with a yes/no response. ... Bot.Builder.Dialogs.dll. Package: Microsoft.Bot.Builder.Dialogs v4.18.1. Important.
Read more >Prompt And Waterfall Dialog In Bot V4 Framework ...
This article explains the concept of Prompt & Waterfall Dialogs in Bot Framework SDK 4.
Read more >New Tool Removes Those Pesky Unused .NET Core ...
Opening a command prompt and typing dotnet --list-sdks sto list SDKs and dotnet --list-runtimes will tell you what you've got installed. On this ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Two points here:
Point 1:
Given that our [recognizers library] (https://github.com/Microsoft/Recognizers-Text) doesn’t support Danish, I don’t think this is a change we can take. To do this, we would have to start with the recognizers, then move up the stack.
Point 2: We should allow you to extend this.
I would support something like:
That would be run at startup, or some similar time, and would modify the static dictionary.
Would that work?
A more flexible option may be to have:
@mdrichardson, Thanks for update. I will take reference from from the PR.