mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
33 lines
718 B
TypeScript
33 lines
718 B
TypeScript
import {
|
|
Pathnames,
|
|
createLocalizedPathnamesNavigation,
|
|
} from "next-intl/navigation";
|
|
|
|
export const locales = ["fr", "en"] as const;
|
|
|
|
// The `pathnames` object holds pairs of internal
|
|
// and external paths, separated by locale.
|
|
export const pathnames = {
|
|
"/": "/",
|
|
"/clubs": "/clubs",
|
|
"/elo": "/elo",
|
|
|
|
"/tournaments": {
|
|
fr: "/tournois",
|
|
en: "/tournaments",
|
|
},
|
|
|
|
"/add-tournament": {
|
|
fr: "/ajouter-un-tournoi",
|
|
en: "/add-tournament",
|
|
},
|
|
|
|
"/contact-us": {
|
|
fr: "/contactez-nous",
|
|
en: "/contact-us",
|
|
},
|
|
} satisfies Pathnames<typeof locales>;
|
|
|
|
export const { Link, redirect, usePathname, useRouter, getPathname } =
|
|
createLocalizedPathnamesNavigation({ locales, pathnames });
|