microsoft / microsoft/BotFramework-WebChat
First Message language preference
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
I have a question
In our bot implementation using Web Chat, we have a default welcome card that is triggered via the ConversationUpdate activity. However, even when we pass the user's locale to Web Chat during initialization, this first welcome card always shows in English.
Only after the user sends a message or performs an action that includes the locale, the bot starts responding in the user's preferred language. The issue is that the locale is not being set early enough, so the initial welcome card does not respect the language preference.
Requirement:
We need the bot to send the first welcome card in the correct locale, based on the user's language preference — without requiring any user activity first. The locale should be correctly applied right from the start of the conversation.
Could someone guide me here on how can I get over this issue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing Web Chat initialization and the ConversationUpdate activity, focusing on when the user's locale becomes available. Verify that the initial welcome card uses the preferred locale before any user message or action, and confirm the behavior with a localized first response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- localization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100