[FEATURE]: Support for RTL languages
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When typing an RTL (right to left) language (such as Arabic) in the input field, or when agent replies in RTL language, the text is styled as LTR, and the characters are reversed.
Suggested solution: if the first character is detected to be from RTL language, switch to RTL styling for the message/input box
(the answer in the image should have been مرحبا)
This issue might be a duplicate of existing issues. Please check:
- #5833: Internationalization (i18n) support for Traditional Chinese - related internationalization work
- #3404: opentui: Unable to input Chinese characters - related character input issues
- #2920: TUI editor hides some double-byte characters in the input field - related multi-byte character display issues
While these are related internationalization efforts, they address different aspects (input capability, character visibility) rather than text directionality. If this is specifically about RTL text direction handling (not just character support), it appears to be a unique feature request.
Feel free to ignore if these don't address your specific RTL styling requirement.
Would be great to have this feature. It is the only thing separating my non-english speaking coworkers from using this great tool.