Stage M1
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user