I am working on a new multi-language project inertia React and breeze I started the configuration of the project so is empty, for the multilanguage, I didn't use any external packages 1 - in app/Http/Middleware/HandleInertiaRequests.php I return ( cached translation, current language, language list (to show in component ), direction )
for the direction after every switch of language, I did
document.documentElement.dir = direction;
and the page automatically changed direction when I switched to ARABIC I didn't change anything in tailwind I am using the stater kit of breeze and after change the document.documentElement.dir he change direction