May 27, 2022
Thank you. Firstly, I think functional components are no longer a thing in Vue 3 so if you are using that, this article is no longer relevant. But if you’re still on Vue 2, then there isn’t a way to reference localePath from the instance itself, but you can pass it in from the parent component as a prop. It’s not as convenient, but that’s part of the cost of functional components.