7 lines
341 B
TypeScript
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);
|