13 lines
377 B
TypeScript
13 lines
377 B
TypeScript
|
|
import { defineRouting } from "next-intl/routing";
|
||
|
|
|
||
|
|
export const routing = defineRouting({
|
||
|
|
/** All supported locales */
|
||
|
|
locales: ["fa", "en"] as const,
|
||
|
|
/** Default locale — no URL prefix */
|
||
|
|
defaultLocale: "fa",
|
||
|
|
/** Default locale gets no /fa/ prefix; English is under /en/ */
|
||
|
|
localePrefix: "as-needed",
|
||
|
|
});
|
||
|
|
|
||
|
|
export type Locale = (typeof routing.locales)[number];
|