question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Danish Language Support in Confirm Prompt Bot v4 (C#/.Net Core)

See original GitHub issue

Danish 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:

  1. Add a Confirm Prompt in V4 Bot
  2. 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:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cleemullinscommented, Sep 17, 2019

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:

public static void AddDefaultChoiceItem( ... )
{
}

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:

public static void SetDefaultChoices(Dictionary<>) which replaces the entire dictionary. 
0reactions
mutanttechcommented, Jul 2, 2020

@mdrichardson, Thanks for update. I will take reference from from the PR.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found