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?
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)
:
var bot = new builder.UniversalBot(connector, { localizerSettings: { defaultLocale: "es" } });
.
Source: https://habr.com/ru/post/1675266/More articles:ERROR ITMS-90171: "Invalid package structure - binary" XYZ.app/abc.bundle/Contents/MacOS/Abcbundle "not allowed - iosAngular `` дважды отображает шаблон - angulardjango many-to-many show human-readable forms - djangoError aborting due to error: TypeError: _angular_core.InjectionToken is not a constructor - angularVue.js v-bind .camel modifier: not hidden in camelCase - vue.jsNumpy: converting a flat RGB array to a matrix - pythonHibernate5 only updates a collection from many to many relationships - javaTypeError: ufunc 'isnan' не поддерживается для типов ввода, - морская карта Heatmap - python-3.xSpring session session per request policy? - javaHow to make material-ui TableRowColumn span multiple columns - htmlAll Articles