egoist / docute

📚 Effortless documentation, done right.

Home Page:https://docute.egoist.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multilanguage with LTR and RTL languges

ahangarha opened this issue · comments

As far as I see, docute's layout is basically LTR which is why another project is forked from it to support RTL (only). I see docute supports multi-language but it is for LTR languages. What if one of the languages be RTL like Persian, Arabic, Urdu,...? Does it support? If not, how to do so?

I've no idea how to add RTL support, but PR welcome. That fork looks pretty nice maybe you can use that directly?

I can help with some part, not all. If you can manage to detect if the selected language belongs to RTL ones (including Persian, Arabic, Urdu,...) and if so, load an additional css, I think I can manage the rest.

I cannot use the Farsi (Persian) fork as it is doing somehow the same thing: forcing one direction which is RTL in that case. What I am proposing is somehow load docute-fa if language is RTL.