From f71eef67442474fc61924fb7108e3ee7c51ff4d9 Mon Sep 17 00:00:00 2001 From: ashkano Date: Sat, 23 Nov 2024 22:35:50 +0330 Subject: [PATCH 1/2] verify mastodon link --- components/Footer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Footer.jsx b/components/Footer.jsx index dcb5210..4a08441 100644 --- a/components/Footer.jsx +++ b/components/Footer.jsx @@ -23,7 +23,7 @@ export function Footer() { - + From 4b8a9481cd8c0ceb023bc3b516e81cbd4439dbfd Mon Sep 17 00:00:00 2001 From: ashkano Date: Sat, 23 Nov 2024 22:45:26 +0330 Subject: [PATCH 2/2] favicon --- next.config.mjs | 3 +-- pages/_app.jsx | 7 +++++++ pages/_document.jsx | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 41a2527..aedb702 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -2,8 +2,7 @@ const nextConfig = { i18n: { locales: ['en', 'fa'], - defaultLocale: 'fa', - localeDetection: false + defaultLocale: 'fa' }, reactStrictMode: true, }; diff --git a/pages/_app.jsx b/pages/_app.jsx index 0b22d14..e5f966f 100644 --- a/pages/_app.jsx +++ b/pages/_app.jsx @@ -1,11 +1,18 @@ import BaseLayout from "@/components/Base"; import "@/styles/globals.css"; +import { useTranslation } from "@/utils/translation"; import { ThemeProvider } from "next-themes"; +import Head from "next/head"; export default function App({ Component, pageProps }) { + const { t } = useTranslation() + return + + {t('home.title')} + ; } diff --git a/pages/_document.jsx b/pages/_document.jsx index 8c38400..bc1a485 100644 --- a/pages/_document.jsx +++ b/pages/_document.jsx @@ -8,6 +8,7 @@ export default function Document() { href="https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap" rel="stylesheet" /> +