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.

Emulator not sending user's Locale in conversationUpdate activities

See original GitHub issue

When connecting to a bot with the emulator and specifying the Locale, the conversationUpdate Activity that is passed to the bot has a null Locale. Only when MessageActivitys are sent is the Locale specified.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tonyanzianocommented, Aug 13, 2019

@stevengum there is already a global locale setting in the Emulator that defaults to en-US:

image

So it would be as simple as grabbing the setting value from the settings at the time of sending the conversationUpdate activity and appending it to the activity payload.

0reactions
cwhittencommented, Feb 25, 2021

We’ll keep this on our long-term backlog. No ETA, but we would happily accept a community contribution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get the locale in conversationUpdate activity?
One solution to get the language of the user before his 1st input is to use the backchannel feature of the Webchat.
Read more >
Channels reference - Bot Service - Microsoft Learn
Many channels send conversation update activities. Often, bot welcome behavior is triggered by the conversation update activity. However, ...
Read more >
How to receive events in a Bot Framework SDK v4 Web API bot?
How to send proactive messages with Bot Builder v4? ... activities (there's no user for the channel ConversationUpdate activity).
Read more >
[Solved]-How do I get the locale in conversationUpdate activity?
getElementById('bot')); // Send message to provide language of user botConnectionSettings.postActivity({ type: 'event', from: { id: 'userid' }, locale: ...
Read more >
Known issues - Microsoft Open Source
Emulator will pass the locale setting to the bot as the first ConversationUpdate call. When you're testing in other environments, if it's something...
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