12 lines
334 B
TypeScript
12 lines
334 B
TypeScript
import {defineRouting} from 'next-intl/routing';
|
|
import {createNavigation} from 'next-intl/navigation';
|
|
|
|
export const routing = defineRouting({
|
|
locales: ['tr', 'en', 'ru', 'de'],
|
|
defaultLocale: 'en',
|
|
localePrefix: 'always'
|
|
});
|
|
|
|
export const {Link, redirect, usePathname, useRouter, getPathname} =
|
|
createNavigation(routing);
|