Open Yasand123 opened 5 months ago
Wow this is such a nice suggestion, thanks for raising this!
related #2184
related #2184
You probably thought of that already, but just in case.
Having multiple localizations is definitely great, but I think this behavior (setting text direction based on the char set) should apply regardless of which language you pick for the UI. As many people are bilingual and prefer English in general, but with the occasional Arabic/Hebrew/Persian messages.
Moreover, this would make it so you can use multi-lingual language models in a convenient way without having to keep switching the UI.
Problem Both LTR and RTL writing systems in Jan are left to right. This is good for LTR languages such as English, but not for RTL languages such as Arabic.
Success Criteria It would be nice to automatically set text direction based on the character set used. If the first character in a message is detected to be Arabic for example, that message will have RTL text direction. This should be per text field (message, input prompt, instructions, etc).
Note there's a difference between text alignment, and text direction. Simple text alignment will not work properly.
Thank you.