From a2febc9030b7068b0cd2a5b8c8c2d6abdce46aa0 Mon Sep 17 00:00:00 2001 From: behnam Date: Tue, 11 Mar 2025 11:05:58 +0300 Subject: [PATCH] feature: Add button for home page for go to dashboard page --- src/app/[lang]/page.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/app/[lang]/page.tsx b/src/app/[lang]/page.tsx index 1e9c77c..06b634c 100644 --- a/src/app/[lang]/page.tsx +++ b/src/app/[lang]/page.tsx @@ -1,4 +1,13 @@ -export default function Home() { +import langKey from "@/bootstrap/i18n/dictionaries/lang-key"; +import { getServerTranslation, LANGS } from "@/bootstrap/i18n/i18n"; +import Link from "next/link"; + +export default async function Home(props: { + params: Promise<{ lang: LANGS }>; +}) { + const { params } = props; + const { lang } = await params; + const { t } = await getServerTranslation(lang); return (
@@ -8,6 +17,12 @@ export default function Home() { Welcome to Acme. This is the example for the , brought to you by Vercel.

+ + {t(langKey.global.dashboard)} +