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.

RTL language handled differently across interfaces

See original GitHub issue

Observed behavior

Arabic channel names do not read the same depending on whether they are a content channel tile or a top level breadcrumb

Expected behavior

The titles would be handled RTL similar across each layout

User-facing consequences

Not being able to read a correct tile

Errors and logs

Steps to reproduce

  1. Visit http://australia-kolibri.mylearningpathway.org or http://jordan-kolibri.mylearningpathway.org
  2. Click through “Earn - Job Skills” and search for HP LIFE (arabic) folder. Observe how the title are displayed in the tile
  3. Click on HP LIFE folder and view how the title is displayed across the breadcrumb
  4. They aren’t the same

Screenshot from 2019-12-04 15:31:12

Screenshot from 2019-12-04 15:31:25

Context

Linux, Chrome

From @jonboiser

I think the issue might be because we are wrapping the text inside the tile/card inside another component (TextTruncator) that doesn’t have the language “direction” rule that we usually put in components. The breadcrumb version of the title is not wrapped up this way and should have the correct direction rule on it.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rtibblescommented, Jul 28, 2022

@pcenov could you reinvestigate this in 0.15 onwards?

0reactions
indirectlylitcommented, Aug 3, 2022

These look like examples of where using dir="auto" does not result in optimal behavior, presumably because the first characters in the titles are Latin which establishes an overall LTR base direction for that block.

Refs:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Right to left - Foundations - Human Interface Guidelines - Design
Different RTL languages can use different number systems. For example, Hebrew text uses Western Arabic numerals, whereas Arabic text might use either Western...
Read more >
Bidirectionality - Material Design
UIs for languages that are read from right-to-left (RTL), such as Arabic and Hebrew, should be mirrored to ensure content is easy to...
Read more >
Right-to-left language support and bidirectional text
A great example of right-to-left language support: Microsoft Word; Bidirectional text; English and Arabic/Hebrew text together: ...
Read more >
Interface localisation: adapting text fields for RTL languages
To start with, I'll compare several interfaces of applications that include an RTL audience and how they handle the task of inputting text....
Read more >
Right-to-Left Development: Tips and Tricks - SteelKiwi
Since languages that are read from right to left, such as Arabic, Persian, Hebrew, Urdu, etc., involve making particular changes to the development...
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