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

hbuyoruk's avatar

Laravel 10 Inertia Js Multiple Language page refresh problem.

Greetings, The technologies I use are Laravel 10.22 inertiajs react typescript. I want my system to have multi-language support. I have tried a few different methods for this, localstorage etc, but when the page is refreshed, it returns to the default language. All examples related to this are inverting the language in a json file. I understand this part, but how can I get the data from the backend from the header Accept Langunage parameter? I could not find any information about this. In addition, this is IMPORTANT!!! local storage values are correct but there is a situation like Inertia react typescript is creating different instance in 2. Is it possible to get an idea on this subject? What about the package etc.?

0 likes
0 replies

Please or to participate in this conversation.