xpeditis2.0/apps/frontend/i18n/navigation.ts
2026-05-12 21:01:52 +02:00

7 lines
341 B
TypeScript

import { createNavigation } from 'next-intl/navigation';
import { routing } from './routing';
// Locale-aware navigation helpers — use these instead of next/link and
// next/navigation so internal URLs automatically keep the locale prefix.
export const { Link, redirect, usePathname, useRouter, getPathname } = createNavigation(routing);