RTL class missing on when using the new Language Switcher
-
Hello,
After updating to the latest version of TranslatePress, I noticed a critical issue with RTL languages (like Arabic) when using the new Language Switcher:
- The
rtlclass is no longer added to the<body>element. - Because of this, Arabic pages are rendered in LTR instead of RTL, which completely breaks the layout.
I tested this further and confirmed:
- The issue only occurs with the new Language Switcher.
- When I enable the option “Load legacy Language Switcher”, the problem is resolved and the
rtlclass is correctly applied to<body>.
So this looks like a bug in the new Language Switcher implementation.
Could you please look into this and provide a fix as soon as possible? This issue is urgent because all RTL sites are affected and Arabic layouts are completely broken unless we switch back to the legacy Language Switcher.
Thanks a lot for your quick support!
Best regards
- The
The topic ‘RTL class missing on when using the new Language Switcher’ is closed to new replies.