Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTR to RTL Translation Layout Misalignment in Web UI #34

Open
Salah-Sal opened this issue Jul 10, 2024 · 1 comment · May be fixed by #37
Open

LTR to RTL Translation Layout Misalignment in Web UI #34

Salah-Sal opened this issue Jul 10, 2024 · 1 comment · May be fixed by #37
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Salah-Sal
Copy link

  • Clearly describe the bug:
    When using the Translation Agent WebUI to translate from a Left-to-Right (LTR) language (e.g., English) to a Right-to-Left (RTL) language (e.g., Arabic), the output text is not aligned correctly. This misalignment is particularly noticeable when the output contains words from both languages. The result is a jumbled text that's difficult to read and doesn't respect the RTL layout requirements of languages like Arabic.

  • Expected behavior:
    The translated text should be properly aligned from right to left, with any remaining LTR text (like untranslated terms) seamlessly integrated without disrupting the overall RTL flow. The text should be easily readable and maintain the correct RTL layout throughout, regardless of the presence of LTR words.

@Salah-Sal Salah-Sal added the bug Something isn't working label Jul 10, 2024
@methanet methanet added the help wanted Extra attention is needed label Jul 11, 2024
@methanet
Copy link
Collaborator

@Salah-Sal thank you so much for raising this issue! This indeed will lead to major usability challenges like you describe. If you are interested in working on resolving this, we welcome a PR. Perhaps the solutions can be broken down into two steps: 1) Support for RTL languages (no context switching) and 2) an enhancement which takes into account context switching between LTR/RTL languages.

@Salah-Sal Salah-Sal linked a pull request Jul 12, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants