i18n by next-intl
This commit is contained in:
7
frontend/src/navigation.ts
Normal file
7
frontend/src/navigation.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createSharedPathnamesNavigation } from "next-intl/navigation";
|
||||
|
||||
export const locales = ["en", "ja"] as const;
|
||||
export const localePrefix = "always";
|
||||
|
||||
export const { Link, redirect, usePathname, useRouter } =
|
||||
createSharedPathnamesNavigation({ locales, localePrefix });
|
||||
Reference in New Issue
Block a user