Skip to content

Commit 9f376e1

Browse files
committed
Configure next-intl routing with navigation exports and locale settings
1 parent 7dbf1db commit 9f376e1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/web/src/lib/i18n/routing.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import { createNavigation } from "next-intl/navigation";
12
import { defineRouting } from "next-intl/routing";
23

34
export const routing = defineRouting({
45
locales: ["ko", "en", "ja"],
56
defaultLocale: "ko",
7+
localeDetection: true,
8+
localePrefix: "as-needed",
69
});
10+
11+
export const { Link, redirect, usePathname, useRouter } = createNavigation(routing);

0 commit comments

Comments
 (0)