[FEAT]: Improve RTL Support for Arabic in Model Responses #2233

Open
opened 2026-02-28 06:00:34 -05:00 by deekerman · 11 comments
Owner

Originally created by @nassim6321 on GitHub (Mar 9, 2025).

What would you like to see?

Description:
First of all, thank you for the amazing work on AnythingLLM! The recent addition of RTL (Right-to-Left) support is a great improvement for Arabic users. However, there is still one issue that makes reading conversations difficult:

🛑 Problem:
While user messages are correctly aligned from right to left, the model responses are still aligned from left to right. This inconsistency creates a frustrating experience for Arabic speakers, especially when a response contains both Arabic and English words. This misalignment can even make sentences unreadable in some cases.

Proposed Solution:

Ensure that model responses are also aligned from right to left when RTL mode is active.
This would greatly improve the user experience for Arabic users and make the conversation more natural and readable.
🎯 Why It Matters:
Arabic is spoken by hundreds of millions of users worldwide, and proper RTL support would make AnythingLLM much more accessible to them. Many Arabic users rely on LLMs for work, learning, and research, and improving readability would enhance their productivity.

We really appreciate your efforts, and we hope you consider this small but very impactful change. Thank you again for your hard work! 😊🚀

Originally created by @nassim6321 on GitHub (Mar 9, 2025). ### What would you like to see? Description: First of all, thank you for the amazing work on AnythingLLM! The recent addition of RTL (Right-to-Left) support is a great improvement for Arabic users. However, there is still one issue that makes reading conversations difficult: 🛑 Problem: While user messages are correctly aligned from right to left, the model responses are still aligned from left to right. This inconsistency creates a frustrating experience for Arabic speakers, especially when a response contains both Arabic and English words. This misalignment can even make sentences unreadable in some cases. ✅ Proposed Solution: Ensure that model responses are also aligned from right to left when RTL mode is active. This would greatly improve the user experience for Arabic users and make the conversation more natural and readable. 🎯 Why It Matters: Arabic is spoken by hundreds of millions of users worldwide, and proper RTL support would make AnythingLLM much more accessible to them. Many Arabic users rely on LLMs for work, learning, and research, and improving readability would enhance their productivity. We really appreciate your efforts, and we hope you consider this small but very impactful change. Thank you again for your hard work! 😊🚀
Author
Owner

@Saidoua commented on GitHub (Mar 11, 2025):

Done Pleese see Comit

@Saidoua commented on GitHub (Mar 11, 2025): Done Pleese see [Comit ](https://github.com/Mintplex-Labs/anything-llm/commit/180ba7c126316c7bd4e821bcf8ad7c7f10618955)
Author
Owner

@nassim6321 commented on GitHub (Mar 15, 2025):

In addition to the issue of Arabic alignment when the model responds, there is a problem with ignoring text formatting when entering formatted text; all spaces are removed, and the text appears as a single block. This becomes frustrating when reviewing and revisiting the conversation. Thank you for everything you do to make this possible!

By the way, I use Windows 10 Professional 64bit, and I use French as the interface language for Windows, but I use Arabic for writing and conversation.

Image

@nassim6321 commented on GitHub (Mar 15, 2025): In addition to the issue of Arabic alignment when the model responds, there is a problem with ignoring text formatting when entering formatted text; all spaces are removed, and the text appears as a single block. This becomes frustrating when reviewing and revisiting the conversation. Thank you for everything you do to make this possible! By the way, I use Windows 10 Professional 64bit, and I use French as the interface language for Windows, but I use Arabic for writing and conversation. ![Image](https://github.com/user-attachments/assets/701405fb-d26a-47b0-a908-6757ab0f643e)
Author
Owner

@smartari1 commented on GitHub (Apr 7, 2025):

Hi :) Hebrew and Arabic are the same RTL-wise, and on switching to Hebrew, I still get the UI of LTR,
Can we align this experience to Arabic and Hebrew both to work on chat and on UI RTL? Thanks much

@smartari1 commented on GitHub (Apr 7, 2025): Hi :) Hebrew and Arabic are the same RTL-wise, and on switching to Hebrew, I still get the UI of LTR, Can we align this experience to Arabic and Hebrew both to work on chat and on UI RTL? Thanks much
Author
Owner

@nassim6321 commented on GitHub (Apr 7, 2025):

Hi :) Hebrew and Arabic are the same RTL-wise, and on switching to Hebrew, I still get the UI of LTR, Can we align this experience to Arabic and Hebrew both to work on chat and on UI RTL? Thanks much

Use Docker to run Anythingllm will appear on Google Chrome, for example, and from there you can customize it as you want by DeVtool.

@nassim6321 commented on GitHub (Apr 7, 2025): > Hi :) Hebrew and Arabic are the same RTL-wise, and on switching to Hebrew, I still get the UI of LTR, Can we align this experience to Arabic and Hebrew both to work on chat and on UI RTL? Thanks much Use Docker to run Anythingllm will appear on Google Chrome, for example, and from there you can customize it as you want by DeVtool.
Author
Owner

@smartari1 commented on GitHub (Apr 7, 2025):

I want to give access to my non-tech friend, how can I send it as Default RTL / Hebrew?

@smartari1 commented on GitHub (Apr 7, 2025): I want to give access to my non-tech friend, how can I send it as Default RTL / Hebrew?
Author
Owner

@Saidoua commented on GitHub (Apr 7, 2025):

This commit is not merged yet, and yes this rtl is for all rtl languages (Arabic, Hebrew, Farsi…)

@Saidoua commented on GitHub (Apr 7, 2025): This commit is not merged yet, and yes this rtl is for all rtl languages (Arabic, Hebrew, Farsi…)
Author
Owner

@smartari1 commented on GitHub (Apr 7, 2025):

Ok great, do you know when is the next GA?

@smartari1 commented on GitHub (Apr 7, 2025): Ok great, do you know when is the next GA?
Author
Owner

@Saidoua commented on GitHub (Apr 7, 2025):

I’m just contributor, sorry I don’t know

@Saidoua commented on GitHub (Apr 7, 2025): I’m just contributor, sorry I don’t know
Author
Owner

@moazeniz commented on GitHub (Sep 25, 2025):

Hello,
Can RTL be added as an option to the settings all together?

@moazeniz commented on GitHub (Sep 25, 2025): Hello, Can RTL be added as an option to the settings all together?
Author
Owner

@timothycarambat commented on GitHub (Sep 25, 2025):

Isnt RTL a property of the language, so why would that need to be a setting? There are languages that support LTR/RTL and interchangably use both based on the reader preference?

@timothycarambat commented on GitHub (Sep 25, 2025): Isnt RTL a property of the language, so why would that need to be a setting? There are languages that support LTR/RTL and interchangably use both based on the reader preference?
Author
Owner

@moazeniz commented on GitHub (Sep 26, 2025):

It is, but it also needs to be supported by the app you are suing, unless you want to add extension to handle that. When using anything llm on any device, the RTL becomes a problem without using any external tools and I can't right now simply offer people to use it. So the support for it needs to be added, if we want to be technically correct.

@moazeniz commented on GitHub (Sep 26, 2025): It is, but it also needs to be supported by the app you are suing, unless you want to add extension to handle that. When using anything llm on any device, the RTL becomes a problem without using any external tools and I can't right now simply offer people to use it. So the support for it needs to be added, if we want to be technically correct.
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
starred/anything-llm#2233
No description provided.