
Checking if the lang param is valid and supported by the App can be done inside the beforeEnter guard. It is a function that receives 3 params, the route you want to go to, the one you come from and a callback to call when you are done. Read more about it in the VueRouter Route Guards docs: