Did you follow the docs? https://github.com/rmariuzzo/Lang.js/
Which part are you struggling with? Just ignore inertia. It's just plain Javascript
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi Guys!
For my current project (Laravel 9, Jetstream, Inertia, Vue) I am trying to setup localization. https://github.com/rmariuzzo/Laravel-JS-Localization has been recommended a couple of times in this forum. I installed it, symlinked /resources/lang to /lang and created the message.js in my public folder.
I am pretty clueless how to get the Lang.js working with Inertia. Any Ideas? Can someone provide me an example?
Please or to participate in this conversation.