11 lines
290 B
TypeScript
11 lines
290 B
TypeScript
import {defineRouting} from 'next-intl/routing';
|
|
import {createNavigation} from 'next-intl/navigation';
|
|
|
|
export const routing = defineRouting({
|
|
locales: ['en'],
|
|
defaultLocale: 'en'
|
|
});
|
|
|
|
export const {Link, redirect, usePathname, useRouter, getPathname} =
|
|
createNavigation(routing);
|