How to install a different language for the Bot platform on the Facebook channel?

I registered my bot in the Microsoft Bot Framework. When I talk to Bot from the Microsoft page, he asks me for confirmation questions in Spanish. Now I am adding a Facebook channel. When I start a conversation on Facebook Messenger, he asks me questions about confirmation in English.

So, how did I install another language for the Bot platform on Facebook Channel in .NET?

+4
source share
2 answers

In .NET, you can set the locale of an action with

  activity.Locale = "es-ES";

In the Post controller method. (For example, in controllers / MessagesController.cs)

+1

:

 var bot = new builder.UniversalBot(connector, {
        localizerSettings: { 
            defaultLocale: "es" 
        }
    });

.

.

0

Source: https://habr.com/ru/post/1675266/


All Articles