question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Images are not redering in Hero Card for locale tr-TR

See original GitHub issue

Describe the bug

We have created Multilingual bot with multiple options in choice set. one of the option is to display images which is specified in Azure Table storeage.

We have created bot in Portugese and Turkish languages. I am able to see images for portugese language but not for Turkish language. we are using directline channel for this.

Version 2.1.1

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Create a bot in Turkish language
  2. Use directline to see the response from bot
  3. Pass the locale as tr-TR
  4. See error in browser console

Expected behavior

Should display the hero card with proper details

Screenshots

image

image

Hero card is displaying as below

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
Danieladucommented, Oct 20, 2021

@ashokdevlabs Sorry for blocking you. It is a bug in Adaptive-Expression library. There are some particular cases in the comparison of uppercase/lowercase of language Turkish. reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/best-practices-strings#string-comparisons-that-use-the-current-culture

For nearly all Latin alphabets, including U.S. English, the character "i" (\u0069) is the lowercase version of the character "I" (\u0049). 
This casing rule quickly becomes the default for someone programming in such a culture. 
However, the Turkish ("tr-TR") alphabet includes an "I with a dot" character "İ" (\u0130), which is the capital version of "i". 
Turkish also includes a lowercase "i without a dot" character, "ı" (\u0131), which capitalizes to "I". 
This behavior occurs in the Azerbaijani ("az") culture as well.

The work around is to change all the “Image” to “image” in expression, that suppose to work.

Screenshot 2021-10-20 140350

image

We would have a fix later in SDK side.

1reaction
ashokdevlabscommented, Oct 20, 2021

@Danieladu @tonyanziano , Thank you so much. This work around fixed my issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hero Card Image Rendering Broken for My CDN-Hosted Images
I'm working on a bot that sends hero cards with images. In the past these have worked fine, but suddenly the images have...
Read more >
[Question] Show images from Database in Hero Cards #3048
Hello Based on my business logic I want to fetch an image from database and use it on my Hero Card. But hero...
Read more >
Is this a bug in the hero card in Teams? - Microsoft Q&A
We are able to repro the issue. In Teams unfurling function, if the image url is unavailable, after few seconds, the thumbnail changes....
Read more >
Diff - 06a9fbcdd68a3d48697e6e88c04fcdb6040673c5^2 ...
+ // I replaced the src attributes in the javascript above with data-dac-src + // so the value would not be molested by...
Read more >
mwp - River Thames Conditions
Walmart rt 130 cinnaminson nj, Labordiagnostik ebv. Belgisch voetbal live kijken gratis! Upenet concurso ipojuca 2014, Dope pics meaning, Hayunaji young!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found