Change site direction based on language

Hello everyone

I’m looking for some suggestions

I’m customizing the direction of erpnext, so that when the user (guest/member) access the site
with right to left language as Arabic, then site sholud be RTL, on the other hand, when user with English language accessed the site, the Direction will be LTR

I will appreciate any help

Frappe Framework is based on Bootstrap and I think this is already managed by the browser based on your preferences.