Implementiere i18n für Frontend, Admin und Datenbank
This commit is contained in:
9
lib/navigation.ts
Normal file
9
lib/navigation.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { createNavigation } from 'next-intl/navigation';
|
||||
|
||||
export const locales = ['de', 'en'] as const;
|
||||
export const localePrefix = 'always'; // Default
|
||||
|
||||
export const { Link, redirect, usePathname, useRouter } = createNavigation({
|
||||
locales,
|
||||
localePrefix
|
||||
});
|
||||
Reference in New Issue
Block a user