diff --git a/src/app/[locale]/dashboard/page.tsx b/src/app/[locale]/dashboard/page.tsx index 561beef..51cf8c2 100644 --- a/src/app/[locale]/dashboard/page.tsx +++ b/src/app/[locale]/dashboard/page.tsx @@ -344,7 +344,7 @@ export default async function DashboardPage() { {canCreate && ( + {t("createInstance")} diff --git a/src/app/[locale]/login/page.tsx b/src/app/[locale]/login/page.tsx index 2864100..a111f19 100644 --- a/src/app/[locale]/login/page.tsx +++ b/src/app/[locale]/login/page.tsx @@ -1,11 +1,12 @@ "use client"; import { signIn } from "next-auth/react"; -import { useTranslations } from "next-intl"; -import Link from "next/link"; +import { useTranslations, useLocale } from "next-intl"; +import { Link, getPathname } from "@/i18n/navigation"; export default function LoginPage() { const t = useTranslations("login"); + const locale = useLocale(); return (