Just wanted to implement a second language to a bot and to my surprise it is not possible to change the locale at runtime. In this bot we define the locale based on fields we receive from the web client and allow the user to change their locale in the bot when they prefer to talk in a different language.
Other typical use case is to set the locale based on the locale settings of the users mailbox settings using a Graph Api call after authentication.
Hope I am overlooking something here...
Hello @cxbuilders
Would you please clarify whether this post was meant as a bug, feature request, or question? If this is a question then it probably belongs on Stack Overflow, but in any case it would help us a lot if you worded this as an actual question so that we can answer it for you. Thank you.
@v-kydela It's a feature request.
Thank you for the reply, @cxbuilders
Can you explain what feature you are requesting? I am able to change the locale during runtime without issue. I can store a locale in a user-scoped property and then provide that property as an expression for the default locale of a confirmation input. As long as I make sure my client isn't putting a locale in the activities it sends to the bot, my custom locale will be used. Can you perhaps explain what you've tried and what difficulties you're running into?
@cxbuilders I'm transferring this to SDK repo since SDK is not ready yet. SDK side is pretty close with this, we already have the right structure setup, just the last mile to finish the E2E.
@boydc2014 could you link this to the appropriate work items, thanks?
@xieofxie / @cosmicshuai / @boydc2014 could you please provide an update?
@tonyanziano Hi Tony, currently I am working on this issue.
I will publish a draft pr this week.
@mrivera-ms would you please review the PR accompanying this?