openfoodfacts / hunger-games

One click Mini-Games for Open Food Facts
https://hunger.openfoodfacts.org
23 stars 39 forks source link

RTL languages appear in LTR #940

Open yarons opened 5 months ago

yarons commented 5 months ago

What

RTL (Right-to-Left languages such as Hebrew, Arabic, Persian, Urdu, etc.) refers to languages written from the reverse order of LTR languages (Such as English, French, Latin, etc.), the UI should change accordingly.

Steps to reproduce the behavior:

  1. Go to settings
  2. Select a different UI language
  3. The UI will remain in LTR

Expected behavior

It should change to RTL. The most naive way is just adding the dir=rtl attribute to the <body> tag (can be done automagically with JS or even CSS directly) and then looking at all the glitches and fix them manually.

Screenshots

A blog post by Spotify: https://engineering.atspotify.com/2019/04/right-to-left-the-mirror-world/ This is Windows 11 in Hebrew: image This is Ubuntu in Hebrew: image KDE in Arabic: image Sharif Linux (Presenting a Persian GNOME): image

Platform (Desktop, Mobile, Hunger Games)

teolemon commented 4 months ago

What

Checklist (AI generated)

Functionality:

Visual Design:

Localization:

Testing:

Additional Considerations:

Let me know if you'd like any of these checklist items explained in more detail.