xiCO2k / laravel-vue-i18n

Allows to connect your `Laravel` Framework translation files with `Vue`.
MIT License
621 stars 51 forks source link

Switching language, including URL #82

Closed xiki808 closed 1 year ago

xiki808 commented 2 years ago

The loadLanguageAsync works great and I like it, but the URL doesn't change to reflect the language. Maybe I am missing something so I'm posting here.

I know I can send an ajax call to get the same result, but would be nice if it works straight away through this functionality.

I'm using laravel 9 with Vite and Inertia.

xiCO2k commented 2 years ago

On full page reload?

If so, you can change the <html lang="en"> argument.