Fylgja works out of the box for right-to-left (RTL) languages such as Arabic and Hebrew.
To be semantically appropriate, in addition to translating the texts, you need to mirror the layout to match the text direction.
To enable this behavior, You must have the following html tags set
- Add an appropriate lang attribute, like
lang="ar", on the
So no additional CSS or plugins needed 😉
In case you need something to be in a LTR direction, no mather the language or direction.
dir="ltr" on the html element where you need this behavior or use the CSS property
Fylgja uses the already supporting CSS properties and values that support RTL Styling.
But please take note while many note that RTL support is experimental. You might find it to be less the case.
For example both CSS Grid and Flexbox are already RTL aware out of the box, you don't need any tools to make this work.
With Fylgja many of our CSS Component ship with start and end features, that are already supported in all moderne browsers.
So working with Fylgja means, you can create component and it is already RTL aware, without any tools or extra classes.