Skip to content

Make text direction RTL for languages like Arabic and Persian // add dir='auto' to all html body elements? #8

Description

@itsmohmans

PROBLEM:
In RTL-written languages like Arabic, the text content (video titles, comments, and video descriptions) has the default text direction set to LTR when YouTube's language is English or any other LTR language. This causes the Arabic text to be unreadable in most cases, especially when it's mixed with Latin characters.

SOLUTION:
The solution to this would be by setting the CSS style direction: rtl to the text elements mentioned above if they start with a character from an RTL-written language.

ALTERNATIVES:

RELEVANCE / SCOPE:
This feature is beneficial to all YT users whose main language's script is RTL (A full list here).

"SIDE EFFECTS":

CONTEXT:
//
Thank you!

SHORT Table (Summary)
Problem
Solution
Alternatives
Scope
Side effects
Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions