Closed dogfuntom closed 6 years ago
Hi JasonSowers, did you find any information about this because i am facing the similar problem.
Sorry for the delay this fell off my radar and I had been out of the country.
In your image, you are using the emulator. If you set the locale in the emulator itself it will show up with the yes/no options in Russian as you need. Are you seeing this in other channels as well?
This was simply using this code:
public virtual async Task MessageReceivedAsync(IDialogContext context, IAwaitable<IMessageActivity> argument)
{
PromptDialog.Confirm(context, afterPrompt, "Do you like nachos");
}
public async Task afterPrompt(IDialogContext context, IAwaitable<bool> argument)
{
bool isCorrect = await argument;
if (isCorrect)
{
await context.PostAsync("some text");
}
else
{
await context.PostAsync("some text 2");
}
}
Going to assume this is resolved now, if you have any other issues please open a new issue.
Bot Info
Issue Description
Even if locale is forced explicitly and emulator shows that all incoming and outcoming messages has that locale, the bot still uses English texts ("yes", "I didn't understand. Say something in reply.", etc.) instead of localized texts.
(But if the same is repeated in Azure App Service Bot, then all such texts are localized correctly.)
Code Example
Reproduction Steps
Expected Behavior
Localized texts ("yes" → "да", etc.). Note that unlike Functions Bot, App Service Bot shows localized built-in text in the identical circumstances.
Actual Results
English texts despite locale is correct and supported (e.g. by App Service Bot).