Xyphyn / photon

An opinionated web client for Lemmy to help users discover the fediverse.
https://phtn.app
GNU Affero General Public License v3.0
386 stars 43 forks source link

Support for Arabic (RTL langauges) #177

Open bluemix opened 1 year ago

bluemix commented 1 year ago

Problem When I try to create a new Arabic post, it is broken (shows from left-to-right), as shown in the screenshot below:

Screenshot 2023-10-19 at 14 59 56

I've attached the correct direction at the post image (shown above the post description).

Solutions With modern browsers, handling rtl langauges (e.g., Arabic or Hebrew) becomes easy. A possible solution is you can introduce the right-to-left icon, so that the text direction match the language direction, and as implemented by the CotEditor app:

Screenshot 2023-10-19 at 15 05 26

Another solution, would be automatically detect language direction, as implemented by Twitter and Facebook, for example.

And, thanks for this wonderful Lemmy client!.

Xyphyn commented 1 year ago

Will fix soon! Once I get localization handled I'll fix this as well.