diff --git a/src/app/(routes)/blog/components/footer/footer.tsx b/src/app/(routes)/blog/components/footer/footer.tsx index 71600a5..df987c8 100644 --- a/src/app/(routes)/blog/components/footer/footer.tsx +++ b/src/app/(routes)/blog/components/footer/footer.tsx @@ -1,8 +1,11 @@ +import { getDictionary } from "@/app/lib/functions/dictionaries"; +import { getDefaultLocale } from "@/app/lib/functions/utils"; import Link from "next/dist/client/link"; import Image from "next/image"; import React from "react"; -export default function Footer() { +export default async function Footer() { + const dict = await getDictionary(getDefaultLocale()); return (
- All Rights Reserved 2024 +
+ {dict.website.footer.Year} +
++ {dict.website.footer.CopyRight} +
- parsa aghayi + {dict.website.footer.Name} - +- BY + {dict.blog.homePage.by}
- IN + {dict.blog.homePage.in}
{data[0].title} diff --git a/src/app/(routes)/blog/components/home/new/new.tsx b/src/app/(routes)/blog/components/home/new/new.tsx index 773e20b..52e3032 100644 --- a/src/app/(routes)/blog/components/home/new/new.tsx +++ b/src/app/(routes)/blog/components/home/new/new.tsx @@ -1,3 +1,5 @@ +import { getDictionary } from "@/app/lib/functions/dictionaries"; +import { getDefaultLocale } from "@/app/lib/functions/utils"; import { PostType } from "@/app/types/types"; import Image from "next/image"; import Link from "next/link"; @@ -6,7 +8,8 @@ interface NewProps { data: PostType[]; } -export default function New({ data }: NewProps) { +export default async function New({ data }: NewProps) { + const dict = await getDictionary(getDefaultLocale()); return (- BY + {dict.blog.homePage.by}
- IN + {dict.blog.homePage.in}
- BY + {dict.blog.homePage.by}
- IN + {dict.blog.homePage.in}
res.json(), ); - return (