sienori/simple-translate

RTL support in opened translation balloon

NabiKAZ opened this issue · 0 comments

I know that translation balloon automatically detects right-aligned or left-aligned text and makes RTL or LTR.
But this is based on an algorithm that may be based on the first letter of the character. Sometimes it is wrong.
For example, in Farsi, if the first letter is Farsi, it RTLs it well. But if only the first letter is English, it will be displayed as LTR, which is where the problem begins.

See this example where the whole text is LTR because the sentence starts with AJAX:
firefox_QKQVql23jM

In the case that the correct mode is as follows and in the form of RTL:
firefox_bipb30ulnx

NOW:

🔸I think there should be an option in the plugin settings to set RTL or LTR to force and high priority.