microsoft / microsoft/BotFramework-WebChat

Locale other than en-US shows the upload button

Open
#4,453 1 comment 0 reactions 1 assignee View on GitHub

@compulim is already working on this.

Since Oct 14, 2022.

Bot Services bug customer-reported ExemptFromDailyDRIReport
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Is it an issue related to Adaptive Cards?
  • Yes, this is an Adaptive Card issue but it is specific to Web Chat.
Do you have any screenshots?

No response

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest)

Which area does this issue affect?

Send box

Is this an accessibility issue?
  • Yes, this is an accessibility issue.
Please describe the bug

I'm using the webchat v4.
I render the chat with the help of window.WebChat.renderWebChat()
When I send the locale parameter as "en-US", the upload attachment button works normally.
but whenever I send the locale parameter as "zh-CN" or anything other than "en-US", the upload attachment button shows-up. and doesn't work.

I do have the application as the bot's default language might change, it can be english or chinese or anything.
I also checked the bot supported languages and the chinese(zh-CN:stt) is present but for some reason, the upload button fails to work or it shows up irrespective of hideUploadButton configuration.

Is there a default language for the bot, or can we change it somehow.

Thanks in advance.

Do you see any errors in console log?

No, I don't see any errors in the console.

How to reproduce the issue?
  1. Navigate to ...
  2. Click on ...
  3. Type "..." in the send box
What is the expected and actual behavior?

Expected: hideUpload button is false, but I'm toggling the upload button manually which works for english language.

Actual: hideUpload button is false, but I'm toggling the upload button manually which doesn't work for any language other than english.

Adaptive Card JSON

No response

Additional context

No response

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.