Skip to content

WebChat does not pass locale property with conversationUpdate activity #2930

@turbozapekanka

Description

@turbozapekanka

Screenshots

image

Version

CDN 4.7.1

Describe the bug

Locale property is set to null for conversationUpdate activity being sent to the bot. This results in welcome message being displayed in default language, instead of the language being passed to WebChat.createDirectLine:

      window.WebChat.renderWebChat({
        directLine: window.WebChat.createDirectLine({ token }),
        styleOptions: {
           hideUploadButton: true
        },
        locale: "es-ES",
        store
        },
        document.getElementById('webchat')
      );

Steps to reproduce

  1. Deploy VA bot with WebChat
  2. Change locale in the WebChat to es-ES
  3. Open chat page
    Welcome message is displayed in English, all subsequent communication switches to Spanish.

Expected behavior

Welcome message is displayed in Spanish

Additional context

Note, this works as expected with BF Emulator and corresponding property is set to correct locale on the conversationUpdate activity.

[Bug]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions