From bf20ce22b3f51f1eafa5285e60a211c2bd38661c Mon Sep 17 00:00:00 2001 From: Badal Khatri Date: Mon, 25 Dec 2023 19:00:43 +0530 Subject: [PATCH 1/2] fix: Footer and Auth Layout Translation --- apps/web/lib/layout/auth-layout.tsx | 4 ++-- apps/web/lib/layout/footer.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/lib/layout/auth-layout.tsx b/apps/web/lib/layout/auth-layout.tsx index 6a889e891..68806d77b 100644 --- a/apps/web/lib/layout/auth-layout.tsx +++ b/apps/web/lib/layout/auth-layout.tsx @@ -3,7 +3,7 @@ import { Meta, Text } from 'lib/components'; import { EverTeamsLogo } from 'lib/components/svgs'; import Image from 'next/legacy/image'; import { PropsWithChildren, ReactNode } from 'react'; -import { useTranslation } from 'react-i18next'; +import { useTranslations } from 'next-intl'; import { Footer } from './footer'; type Props = { @@ -13,7 +13,7 @@ type Props = { } & PropsWithChildren; export function AuthLayout({ children, title, description, isAuthPage = true }: Props) { - const { t } = useTranslation(); + const t = useTranslations(); return ( <> diff --git a/apps/web/lib/layout/footer.tsx b/apps/web/lib/layout/footer.tsx index e2a65f5c4..ad122eabc 100644 --- a/apps/web/lib/layout/footer.tsx +++ b/apps/web/lib/layout/footer.tsx @@ -1,10 +1,10 @@ import { IClassName } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Text, ThemeToggler } from 'lib/components'; -import { useTranslation } from 'react-i18next'; +import { useTranslations } from 'next-intl'; export function Footer({ className }: IClassName) { - const { t } = useTranslation(); + const t = useTranslations(); return (