how to add rtl support and Arabic language on the language switch button in metronic angular theme demo1
also the color switch from dark to white
Hi everyone,
I recently tackled the same setup — adding both RTL (Arabic) and LTR (English) support in the Metronic Angular demo1 theme. What worked for me was dynamically switching the dir attribute (rtl or ltr) based on the selected language in the language switch button, and updating the stylesheets accordingly. Also added dark/light mode toggle using Metronic’s built-in theme service.
Funny enough, I was working on a localization-heavy project and had to integrate analisilogicatool as part of a logic flow test — that’s when I realized the importance of handling both direction and theme properly for usability.
Hope this helps someone!
Hi,
In Metronic Angular, it's not possible to use both LTR and RTL styles together since they have separate CSS files. Importing them both would lead to conflicts.
You can find the style file being loaded at demo1/src/styles.scss.
Thanks