microsoft / microsoft/BotFramework-WebChat

First Message language preference

Open
#5,618 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bot Services customer-reported question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.