Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

how to add both RTL and LTR support for Arabic language + English in angular


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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(