diff --git a/src/app/(routes)/blog/categories/page.tsx b/src/app/(routes)/blog/categories/page.tsx
index 9cf67fb..f3ebed2 100644
--- a/src/app/(routes)/blog/categories/page.tsx
+++ b/src/app/(routes)/blog/categories/page.tsx
@@ -8,6 +8,8 @@ import Link from "next/link";
import Pagination from "../components/pagination/pagination";
import NoDataFounded from "../components/no-data-founded/noDataFounded";
import { Metadata } from "next";
+import { getDictionary } from "@/app/lib/functions/dictionaries";
+import { getDefaultLocale } from "@/app/lib/functions/utils";
export const metadata: Metadata = {
title: "All Categories List",
@@ -17,7 +19,9 @@ export const metadata: Metadata = {
title: "All Categories List",
description:
"Browse through our collection of categories to find posts on your favorite topics. Whether you`re looking for insightful articles, how-tos, or the latest trends, our categories make it easy to discover content tailored to your interests.",
- images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/og-image?text=All Categories List`],
+ images: [
+ `${process.env.NEXT_PUBLIC_FRONT_URL}/og-image?text=All Categories List`,
+ ],
},
};
@@ -26,17 +30,16 @@ export default async function Categories({ searchParams }: categoryPropsType) {
`${process.env.NEXT_PUBLIC_BLOG_API_URL}/categories?per_page=${searchParams.per_page ? searchParams.per_page : process.env.NEXT_PUBLIC_CATEGORIES_PER_CATEGORY_PAGE}${searchParams.page ? `&page=${searchParams.page}` : ""}`,
).then((res) => res.json());
+ const dict = await getDictionary(getDefaultLocale());
+
return (
- All Categories List
+ {dict.blog.categoriesPage.pageTitle}
- Browse through our collection of categories to find posts on your
- favorite topics. Whether you`re looking for insightful articles,
- how-tos, or the latest trends, our categories make it easy to discover
- content tailored to your interests.
+ {dict.blog.categoriesPage.description}
@@ -46,7 +49,7 @@ export default async function Categories({ searchParams }: categoryPropsType) {
href={"/blog"}
className="text-[12px] font-[400] capitalize text-blog-text-passive hover:underline"
>
- Home
+ {dict.blog.header.Home}
-
@@ -54,7 +57,7 @@ export default async function Categories({ searchParams }: categoryPropsType) {
- categories
+ {dict.blog.categoriesPage.title}
{CategoriesData.meta.total}
@@ -96,7 +99,11 @@ export default async function Categories({ searchParams }: categoryPropsType) {
{CategoriesData.data.length > 0 &&
CategoriesData.meta.last_page > 1 && (
-
+
)}
diff --git a/src/app/lib/dictionaries/en.json b/src/app/lib/dictionaries/en.json
index 727c6f8..2727fdc 100644
--- a/src/app/lib/dictionaries/en.json
+++ b/src/app/lib/dictionaries/en.json
@@ -67,6 +67,11 @@
"newDescription": "Explore the latest posts on our blog. Stay updated with fresh content, insightful articles, and the most recent discussions in your areas of interest.",
"popularDescription": "Discover the most popular posts with the highest views. These articles have resonated with our audience and are trending across various topics."
},
+ "categoriesPage": {
+ "title": "categories",
+ "pageTitle": "all categories list",
+ "description": "Browse through our collection of categories to find posts on your favorite topics. Whether you`re looking for insightful articles, how-tos, or the latest trends, our categories make it easy to discover content tailored to your interests."
+ },
"header": {
"Home": "Home",
"New": "New",
diff --git a/src/app/lib/dictionaries/fa.json b/src/app/lib/dictionaries/fa.json
index e1cf73e..3c30810 100644
--- a/src/app/lib/dictionaries/fa.json
+++ b/src/app/lib/dictionaries/fa.json
@@ -67,6 +67,11 @@
"newDescription": "آخرین پست های وبلاگ ما را کاوش کنید. با مطالب جدید، مقالات روشنگر و جدیدترین بحث ها در زمینه های مورد علاقه خود به روز باشید.",
"popularDescription": "محبوب ترین پست ها را با بیشترین بازدید کشف کنید. این مقالات با مخاطبان ما طنین انداز شده اند و در موضوعات مختلف در حال ترند هستند."
},
+ "categoriesPage": {
+ "pageTitle": "لیست همه دستهبندیها",
+ "title": "دستهبندیها",
+ "description": "برای یافتن پست هایی در مورد موضوعات مورد علاقه خود، در مجموعه دسته بندی های ما مرور کنید. فرقی نمیکند به دنبال مقالات روشنفکر، روشها یا آخرین روندها باشید، دستههای ما کشف محتوای متناسب با علایق شما را آسان میکنند."
+ },
"header": {
"Home": "خانه",
"New": "جدیدترینها",
diff --git a/src/app/types/types.ts b/src/app/types/types.ts
index 2345d61..f0db539 100644
--- a/src/app/types/types.ts
+++ b/src/app/types/types.ts
@@ -187,6 +187,11 @@ export type Dictionary = {
newDescription: string;
popularDescription: string;
};
+ categoriesPage: {
+ title: string;
+ pageTitle: string;
+ description: string;
+ };
header: {
Home: string;
New: string;