this post was submitted on 03 Sep 2021
0 points (NaN% liked)

Asklemmy

43399 readers
1009 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

I was checking my profile settings, looking for arabic language but found that its not implemented yet. if i install lemmy in future, do i need to install arabic to my instance separately or it will come our of the box?

you are viewing a single comment's thread
view the rest of the comments
[–] Fakefunk@lemmy.ml 0 points 3 years ago* (last edited 3 years ago) (1 children)

I do not speak an RTL language either, but from what I know of I can give you an idea of what it takes to support it properly.

The start would be to add dir="rtl" to the html element and see what needs fixing: thankfully because you use flexbox in most places the layout naturally switches. The rest would be to use logical properties: text-align:start; instead of text-align:left, padding-inline-start instead of padding-left… Most of the CSS spatial properties have their logical sibling, even border-radius. If needed, you can also overwrite rules with html[dir="rtl"] {…}

Then, for user inputed text, each top level node (p, ul, ol, blockquote, h1…) should have the dir="auto" attribute, so it's possible to have text in two directions, depending on the first word of the element. Simply doing <textarea dir="auto"> isn't possible because then the first word decides of the text direction for the whole content. Supporting RTL fully also means supporting mixed directional text.

[–] dessalines@lemmy.ml 0 points 3 years ago (1 children)

If you wanted to take a look at lemmy-ui and add this, I'd be happy to help where I can.

[–] Fakefunk@lemmy.ml 1 points 3 years ago* (last edited 3 years ago) (1 children)

Will do! I will start with switching main.css to logical properties, and then have a look at the themes…