microsoft / microsoft/BotFramework-WebChat
Locale other than en-US shows the upload button
@compulim is already working on this.
Since Oct 14, 2022.
- 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?
- Navigate to ...
- Click on ...
- 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
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.
Assessment
This issue has not been assessed yet.