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