Update next-intl (and other packages), internationalize URLs

This commit is contained in:
Timothy Armes
2023-10-10 19:48:13 +02:00
committed by Owen Rees
parent 44bfe17c8f
commit effb912641
32 changed files with 902 additions and 939 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
import { useTranslations } from "next-intl";
import Link from "next-intl/link";
import { Link } from "@/utils/navigation";
import Hamburger from "./Hamburger";
@@ -7,10 +8,10 @@ export default function Navbar() {
const t = useTranslations("Nav");
const links = [
{ title: t("tournaments"), route: "/tournois" },
{ title: t("tournaments"), route: "/tournaments" },
{ title: t("clubs"), route: "/clubs" },
{ title: t("elo"), route: "/elo" },
];
] as const;
return (
<nav