This commit is contained in:
Nông Đức Huy
2026-08-13 23:20:22 +07:00
parent 3e5d38ec18
commit 3d6b0e0d4e
145 changed files with 7817 additions and 801 deletions
+12
View File
@@ -0,0 +1,12 @@
import { createNavigation } from 'next-intl/navigation';
import { routing } from './routing';
/**
* Locale-aware replacements for `next/link` and the navigation hooks.
*
* Always import `Link` from here rather than `next/link`: these variants add
* the locale prefix automatically, so a link written once works in both
* languages and a language switch preserves the current page.
*/
export const { Link, redirect, usePathname, useRouter, getPathname } = createNavigation(routing);