All checks were successful
Dev CI / Backend — Lint (push) Successful in 10m23s
Dev CI / Backend — Unit Tests (push) Successful in 10m17s
Dev CI / Frontend — Lint & Type-check (push) Successful in 11m3s
Dev CI / Frontend — Unit Tests (push) Successful in 10m33s
Dev CI / Notify Failure (push) Has been skipped
8 lines
343 B
TypeScript
8 lines
343 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);
|