Skip to content

Improve LiaScript styling for RTL (right-to-left) languages #234

Description

@andre-dietrich

Description

Currently, LIA Script’s documentation and UI styling assume a left-to-right (LTR) layout, which leads to broken or inconsistent layouts when viewing content in right-to-left (RTL) languages such as Arabic, Hebrew, Persian, or Urdu. We need to update our CSS and templating logic to fully support RTL directionality, including mirrored navigation elements, table of contents, and overall page layout.

Why This Matters

Supporting RTL languages is critical for true internationalization and accessibility. Without proper RTL styling:

  • Native speakers of RTL languages see misaligned or unreadable UI
  • Code examples, tables, and navigation can appear broken or inverted
  • We exclude a significant portion of potential users (over 500 million RTL language speakers worldwide)

By ensuring correct RTL support, we expand our global reach and demonstrate commitment to inclusivity.

How to try

In your browser, use Google Translate (or similar) to switch our docs to an RTL language.

https://liascript.github.io/course/?https://raw.githubusercontent.com/liaScript/docs/master/README.md

testing-rtl.mp4

Flip through pages, code samples, tables, subtitles and images.

Note any text that still reads LTR or elements that don’t mirror.

Two-Step Approach

Step 1 – Content Direction

Switch all text, images, subtitles, tables, code blocks, etc. to dir="rtl".

Ensure paragraphs flow right-to-left and no LTR artifacts remain.

Step 2 – Structure Mirroring

Move the sidebar, table of contents and navigation to the right under RTL.

Flip arrows, any horizontal layout so they mirror naturally.

Activity

  1. added
    🍭 enhancement
    🙏 help wanted
    on Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🍭 enhancement🙏 help wanted

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions