egoist / docute

📚 Effortless documentation, done right.
https://docute.egoist.dev
MIT License
3.8k stars 427 forks source link

Multilanguage with LTR and RTL languges #281

Open ahangarha opened 4 years ago

ahangarha commented 4 years ago

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?

egoist commented 4 years ago

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

ahangarha commented 4 years ago

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.