12 lines
330 B
TypeScript
12 lines
330 B
TypeScript
import {defineRouting} from 'next-intl/routing';
|
|
import {createNavigation} from 'next-intl/navigation';
|
|
|
|
export const routing = defineRouting({
|
|
locales: ['id', 'en'],
|
|
defaultLocale: 'id',
|
|
localePrefix: 'never',
|
|
localeDetection: false
|
|
});
|
|
|
|
export const {Link, redirect, usePathname, useRouter} = createNavigation(routing);
|