Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

moazzaq's avatar

inertia change direction to rtl , ltr

I'm working on a project multi-language inertia Vue 3 I made everything when choosing the language it gets the data-related translation, but I need to change the direction. Does anyone help me?

0 likes
1 reply
yazidkh's avatar

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

Please or to participate in this conversation.