[GH-ISSUE #39] [FR] RTL support #21

Closed
opened 2026-03-23 20:30:34 +00:00 by mirror · 10 comments
Owner

Originally created by @asafm on GitHub (Nov 19, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/39

Originally assigned to: @zoli on GitHub.

1~3 main use cases of the proposed feature
Notion doesn't have right to left languages support. This can be a great thing to have in the open source

what types of users can benefit from using your proposed feature
Population of world using right to left languages

Additional context
Add any other context or screenshots about the feature request here.

Originally created by @asafm on GitHub (Nov 19, 2021). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/39 Originally assigned to: @zoli on GitHub. **1~3 main use cases of the proposed feature** Notion doesn't have right to left languages support. This can be a great thing to have in the open source **what types of users can benefit from using your proposed feature** Population of world using right to left languages **Additional context** Add any other context or screenshots about the feature request here.
mirror 2026-03-23 20:30:34 +00:00
Author
Owner

@notd5a-alt commented on GitHub (Nov 19, 2021):

I think this would be possible to implement once the developers implement their plugin system for the app.

<!-- gh-comment-id:974544916 --> @notd5a-alt commented on GitHub (Nov 19, 2021): I think this would be possible to implement once the developers implement their plugin system for the app.
Author
Owner

@zoli commented on GitHub (Apr 7, 2023):

@annieappflowy If by plugin label you mean appflowy editors plugin, How this can be implemented via plugin? From what I see for supporting RTL in Appflowy document which is mostly related to appflowy editor core. Appflowy editor should enable setting textDirection on RichText which FlowyRichText builds it.

<!-- gh-comment-id:1500582067 --> @zoli commented on GitHub (Apr 7, 2023): @annieappflowy If by plugin label you mean appflowy editors plugin, How this can be implemented via plugin? From what I see for supporting RTL in Appflowy document which is mostly related to appflowy editor core. Appflowy editor should enable setting `textDirection` on `RichText` which `FlowyRichText` builds it.
Author
Owner

@zoli commented on GitHub (Apr 7, 2023):

Just noting some thoughts here:
Probably TextNode should support direction attribute which sets the RichText textDirection property.
There could be LTR, RTL, AUTO for TextNode direction attribute which could get determined by appflowy toolbar. As RichText doesn't support AUTO internally appflowy editor should handle that part itself (maybe with strong directionality concept).

<!-- gh-comment-id:1500584820 --> @zoli commented on GitHub (Apr 7, 2023): Just noting some thoughts here: Probably `TextNode` should support direction attribute which sets the `RichText` `textDirection` property. There could be LTR, RTL, AUTO for `TextNode` direction attribute which could get determined by appflowy toolbar. As `RichText` doesn't support AUTO internally appflowy editor should handle that part itself (maybe with strong directionality concept).
Author
Owner

@zoli commented on GitHub (Jun 10, 2023):

I would like to take on this.

cc: @annieappflowy

<!-- gh-comment-id:1585812953 --> @zoli commented on GitHub (Jun 10, 2023): I would like to take on this. cc: @annieappflowy
Author
Owner

@annieappflowy commented on GitHub (Jun 11, 2023):

Thank you!!

<!-- gh-comment-id:1585988121 --> @annieappflowy commented on GitHub (Jun 11, 2023): Thank you!!
Author
Owner

@zoli commented on GitHub (Jul 12, 2023):

Now Appflowy Editor supports RTL. IMO the next step will be RTL support in Appflowy Board and Grid.

<!-- gh-comment-id:1631861004 --> @zoli commented on GitHub (Jul 12, 2023): Now Appflowy Editor supports RTL. IMO the next step will be RTL support in Appflowy Board and Grid.
Author
Owner

@annieappflowy commented on GitHub (Sep 26, 2023):

@asafm, please try out the latest release

Toggle on the RTL switch in Settings to write in the RTL layout

Image

<!-- gh-comment-id:1735793111 --> @annieappflowy commented on GitHub (Sep 26, 2023): @asafm, please try out the latest [release ](https://github.com/AppFlowy-IO/AppFlowy/releases/tag/0.3.3) Toggle on the RTL switch in Settings to write in the RTL layout ![Image](https://github.com/AppFlowy-IO/AppFlowy/assets/12026239/605606f8-2b4f-493b-b3cc-7b2e0e0c164b)
Author
Owner

@zoli commented on GitHub (Sep 26, 2023):

@annieappflowy Still RTL support for board and grid is left.

<!-- gh-comment-id:1735973651 --> @zoli commented on GitHub (Sep 26, 2023): @annieappflowy Still RTL support for board and grid is left.
Author
Owner

@asafm commented on GitHub (Oct 16, 2023):

It's very weird implementation.
Usually if you are in Google Doc, or Word, you choose the LTR or RTL direction for the current paragraph. Many times it simply detects if the language is LTR and switches for you automatically - Facebook posts (when you create a new post) is a good example.
It doesn't make a lot of sense to have one direction set for the entire app.

<!-- gh-comment-id:1764426642 --> @asafm commented on GitHub (Oct 16, 2023): It's very weird implementation. Usually if you are in Google Doc, or Word, you choose the LTR or RTL direction for the current paragraph. Many times it simply detects if the language is LTR and switches for you automatically - Facebook posts (when you create a new post) is a good example. It doesn't make a lot of sense to have one direction set for the entire app.
Author
Owner

@zoli commented on GitHub (Oct 16, 2023):

It's very weird implementation. Usually if you are in Google Doc, or Word, you choose the LTR or RTL direction for the current paragraph. Many times it simply detects if the language is LTR and switches for you automatically - Facebook posts (when you create a new post) is a good example. It doesn't make a lot of sense to have one direction set for the entire app.

You can have auto direction detection when setting direction to AUTO. About the per-paragraph direction, I agree with you. This was available in Appflowy a while ago but now its limited to RTL layout direction, So If you set the layout direction to RTL you can set a paragraph direction to either LTR/RTL/AUTO.
I discussed with @LucasXu0 enabling per-paragraph direction in all layout directions we concluded to put a setting for enabling it in the toolbar menu for all layout directions.
The reason for not enabling it by default is because it might confuse some users.

<!-- gh-comment-id:1765033721 --> @zoli commented on GitHub (Oct 16, 2023): > It's very weird implementation. Usually if you are in Google Doc, or Word, you choose the LTR or RTL direction for the current paragraph. Many times it simply detects if the language is LTR and switches for you automatically - Facebook posts (when you create a new post) is a good example. It doesn't make a lot of sense to have one direction set for the entire app. You can have auto direction detection when setting direction to AUTO. About the per-paragraph direction, I agree with you. This was available in Appflowy a while ago but now its limited to RTL layout direction, So If you set the layout direction to RTL you can set a paragraph direction to either LTR/RTL/AUTO. I discussed with @LucasXu0 enabling per-paragraph direction in all layout directions we concluded to put a setting for enabling it in the toolbar menu for all layout directions. The reason for not enabling it by default is because it might confuse some users.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#21
No description provided.