adbrosaci / vue-lang-router

Vue language routing with (optional) localized URLs.
MIT License
66 stars 8 forks source link

Vue 3 example #3

Closed MrSunshyne closed 3 years ago

MrSunshyne commented 4 years ago

Hello,

I realize this is kinda early, any chance to get an example of this working with vue-router-next and vue-i18n-next ?

Thanks for the amazing plugin !

radek-altof commented 4 years ago

Hi @MrSunshyne, some parts of the plugin might need to be rewritten, in order to accommodate for breaking changes in vue-router-next and vue-i18n-next.

Right now there's no plan to implement these, until the plugin sees more usage (stars, npm downloads). I might take a look at it sooner, but it's a low priority. I'll let you know when I do.

MrSunshyne commented 4 years ago

thanks for the heads up @radek-altof.

The problem that this lib solves is very niche, yet for all those who need it, there's no easy alternative. I'll try to figure it out meanwhile. Hoping this gets more attention sooner though :D

radek-altof commented 3 years ago

Vue 3 compatible version is here! It's only a pre-release, but you can check it out in the vue-3 branch. Downloadable from npm as vue-lang-router@next.

:warning: vue-i18n-next is still in beta and this plugin may have some issues as well, but feel free to test...

radek-altof commented 3 years ago

:earth_africa: Language Router for Vue 3 looks stable now, however I won't remove the beta label until vue-i18n-next is released.

Vue CLI plugin has been updated as well, so it's as simple as doing vue add lang-router in a Vue 3 project. It doesn't handle migration though, that needs to be done manually - see documentation for more info.