mirego / accent

The first developer-oriented translation tool. True asynchronous flow between translators and your team.
https://www.accent.reviews
BSD 3-Clause "New" or "Revised" License
1.29k stars 97 forks source link

Improve RTL support #311

Closed wereHamster closed 2 years ago

wereHamster commented 2 years ago

When mixing RTL with LTR scripts (eg. when using interpolations), the strings do not show up correctly. Compare the two screenshots below, the first is original and the second where I manually set dir=rtl on the textarea element. I see you set lang= but that does not appear to be enough (at least for chrome).

image

image

I had a quick look at the Google Translate UI (or rather, HTML markup) and they also set dir=rtl when the language requires, such as in this case:

image