The useRoute hook returns the current route of the page. It can be used to create a generic language switcher component.
useRoute