Switching Language After a Certain Sequence Results in RTL being applied to English text
OmarElkilany opened this issue · 5 comments
OmarElkilany commented
To reproduce:
- Go to landing page.
- Press sign up/discover our content button.
- While on the signup or content page, change the language to Arabic.
- Click the Nawwar Icon in the top bar to go to the landing page again.
- Scroll down to the switch language button and press it.
- English text is aligned RTL.
I can't think of a fix though.
OmarElkilany commented
@Logician724 @Shiro-Raven
reda-i commented
I noticed this a while ago, can you think of a reason so as to why this happened? Is this because of the translation service injections? @OmarElkilany
OmarElkilany commented
I am not sure, but I don't think so. If the service was the problem, the text would not have changed language @Logician724
reda-i commented
It is probably because of the JQuery code triggering the rtl class. Most probably the switch language logic in the landing page is flawed. I am assigning this to me.
reda-i commented
I believe I fixed the issue. The current latest implementation is available on deployment now. Please review, and confirm the issue is removed.