import type { Locale } from '#shared/utils/locale' /** Derives the current locale from the URL path — `/en` or `/en/...` is English, everything else Italian. */ export function useLocale() { const route = useRoute() return computed(() => (route.path === '/en' || route.path.startsWith('/en/') ? 'en' : 'it')) }