Shivamyadav's avatar

How to use locaalization in vue using Laravel with vue I18n package using vite.

Yesterday I was trying to implement but I didn't know where was the issue but in my console there was not any error..

Any other packages if anyone can refer some articles related to this or new package.

I'm using Laravel 12 and vue js 3 with composition api.

If you need my setup code to look for why it's not working I will be updating my code as soon as I reached to my office.. Thanks folks

0 likes
3 replies
Shivamyadav's avatar

@swez_k yeah found this and implemented everything seems to be working except the changes are not reflected due to the app is mounted once and it does not mount every time on local changes so the changes are not reflected..

On first load everything is working based on the default lang but when i chnage default lang to the hi ref value is changed and watch also runs and call the getLocal and set it within vue and laravel as well confirmed that.. but not loading the changes due to the already mounted app.

Any suggestion or help.

my code App.js code

Please or to participate in this conversation.