From c3f7fc5d2bf9b91f8cca60710f93df6d1812e3f9 Mon Sep 17 00:00:00 2001 From: parsa aghaei
- 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 (