Date: Thu, 23 Nov 2023 15:38:01 +0100
Subject: [PATCH 3/9] feat(blog header): translate blog header
translate blog header
fix #107
---
public/locales/ar/blogs.json | 4 +++-
public/locales/ar/common.json | 3 ++-
public/locales/ar/landingPage.json | 1 -
public/locales/en/blogs.json | 4 +++-
public/locales/en/common.json | 3 ++-
public/locales/en/landingPage.json | 1 -
public/locales/fr/blogs.json | 4 +++-
public/locales/fr/common.json | 3 ++-
public/locales/fr/landingPage.json | 1 -
public/locales/tr/blogs.json | 4 +++-
public/locales/tr/common.json | 3 ++-
public/locales/tr/landingPage.json | 1 -
src/components/LandingPage/BlogsSection/BlogsSection.jsx | 2 +-
src/pages/blogs/index.jsx | 8 +++-----
14 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/public/locales/ar/blogs.json b/public/locales/ar/blogs.json
index 25351fe..6898ed6 100644
--- a/public/locales/ar/blogs.json
+++ b/public/locales/ar/blogs.json
@@ -1,3 +1,5 @@
{
- "allBlogs": "جميع المدونات"
+ "allBlogs": "جميع المدونات",
+ "blogsAndResources": "مدونات و مصادر",
+ "blogsHeader": "تفقَّد مدوناتنا لقراءة ممتعة! اغمر نفسك في القصص المهمة وانضم إلينا في صنع تأثير إيجابي. دعونا نصنع الفارق معًا."
}
diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json
index f933bce..39f1a3c 100644
--- a/public/locales/ar/common.json
+++ b/public/locales/ar/common.json
@@ -27,5 +27,6 @@
"noItemsFound": "لم يتم العثور على عناصر...",
"prevButton": "الصفحة السابقة",
"nextButton": "الصفحة الموالية"
- }
+ },
+ "latestBlogs": "أحدث المدونات"
}
diff --git a/public/locales/ar/landingPage.json b/public/locales/ar/landingPage.json
index 45f3442..9bfd179 100644
--- a/public/locales/ar/landingPage.json
+++ b/public/locales/ar/landingPage.json
@@ -43,6 +43,5 @@
},
"items": "العناصر الشائعة",
"blogs": "المدونات",
- "latestBlogs": "أحدث مدوناتنا",
"partners": "شركاؤنا"
}
diff --git a/public/locales/en/blogs.json b/public/locales/en/blogs.json
index b9ffbc5..49bbf73 100644
--- a/public/locales/en/blogs.json
+++ b/public/locales/en/blogs.json
@@ -1,3 +1,5 @@
{
- "allBlogs": "All Blogs"
+ "allBlogs": "All Blogs",
+ "blogsAndResources": "Blogs & Resources",
+ "blogsHeader": "Check out our blogs for some cool reads! Dive into stories that matter and join us in making a positive impact. Let's make a difference together"
}
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index 53e8913..af097f6 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -27,5 +27,6 @@
"noItemsFound": "No Items Found...",
"prevButton": "Previous",
"nextButton": "Next"
- }
+ },
+ "latestBlogs": "Latest Blogs"
}
diff --git a/public/locales/en/landingPage.json b/public/locales/en/landingPage.json
index ab17ac3..035992b 100644
--- a/public/locales/en/landingPage.json
+++ b/public/locales/en/landingPage.json
@@ -42,6 +42,5 @@
},
"items": "Popular items",
"blogs": "Blogs",
- "latestBlogs": "Our Latest Blogs",
"partners": "Our Partners"
}
diff --git a/public/locales/fr/blogs.json b/public/locales/fr/blogs.json
index 8f2f730..95aaffc 100644
--- a/public/locales/fr/blogs.json
+++ b/public/locales/fr/blogs.json
@@ -1,3 +1,5 @@
{
- "allBlogs": "Tous les blogs"
+ "allBlogs": "Tous les blogs",
+ "blogsAndResources": "Blogs & Resources",
+ "blogsHeader": "Consultez nos blogs pour des lectures intéressantes ! Plongez-vous dans des histoires qui comptent et rejoignez-nous pour avoir un impact positif. Faisons la différence ensemble"
}
diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json
index 8bd88f6..f391711 100644
--- a/public/locales/fr/common.json
+++ b/public/locales/fr/common.json
@@ -27,5 +27,6 @@
"noItemsFound": "Aucun élément trouvé...",
"prevButton": "Précédent",
"nextButton": "Suivant"
- }
+ },
+ "latestBlogs": "Nos plus récents blogs"
}
diff --git a/public/locales/fr/landingPage.json b/public/locales/fr/landingPage.json
index 7835f61..ee0e323 100644
--- a/public/locales/fr/landingPage.json
+++ b/public/locales/fr/landingPage.json
@@ -42,6 +42,5 @@
},
"items": "Articles populaires",
"blogs": "Blogs",
- "latestBlogs": "Nos plus récents blogs",
"partners": "Nos partenaires"
}
diff --git a/public/locales/tr/blogs.json b/public/locales/tr/blogs.json
index 5798680..b31d0eb 100644
--- a/public/locales/tr/blogs.json
+++ b/public/locales/tr/blogs.json
@@ -1,3 +1,5 @@
{
- "allBlogs": "Tüm Bloglar"
+ "allBlogs": "Tüm Bloglar",
+ "blogsAndResources": "Bloglar & Kaynaklar",
+ "blogsHeader": "Harika okumalar için bloglarımıza göz atın! Önemli olan hikayelere dalın ve bize pozitif bir etki yaratmada katılın. Birlikte fark yaratalım."
}
diff --git a/public/locales/tr/common.json b/public/locales/tr/common.json
index a9500cf..15f13c8 100644
--- a/public/locales/tr/common.json
+++ b/public/locales/tr/common.json
@@ -27,5 +27,6 @@
"noItemsFound": "Öğe bulunamadı...",
"prevButton": "Önceki",
"nextButton": "Sonraki"
- }
+ },
+ "latestBlogs": "En Son Bloglarımız"
}
diff --git a/public/locales/tr/landingPage.json b/public/locales/tr/landingPage.json
index 0aa64c8..a5bac11 100644
--- a/public/locales/tr/landingPage.json
+++ b/public/locales/tr/landingPage.json
@@ -42,6 +42,5 @@
},
"items": "Popüler Ürünler",
"blogs": "Bloglar",
- "latestBlogs": "En Son Bloglarımız",
"partners": "İş Ortağımız"
}
diff --git a/src/components/LandingPage/BlogsSection/BlogsSection.jsx b/src/components/LandingPage/BlogsSection/BlogsSection.jsx
index ab43045..cf74580 100644
--- a/src/components/LandingPage/BlogsSection/BlogsSection.jsx
+++ b/src/components/LandingPage/BlogsSection/BlogsSection.jsx
@@ -57,7 +57,7 @@ function BlogsSection({ blogs }) {
{blogs.slice(1, 3).map((blog) => (
))}
- {!blogs.length &&
{t("common:buttons:noItemsfound")}
}
+ {!blogs.length &&
{t("common:buttons:noItemsFound")}
}
diff --git a/src/pages/blogs/index.jsx b/src/pages/blogs/index.jsx
index 9738fe5..b8aa078 100644
--- a/src/pages/blogs/index.jsx
+++ b/src/pages/blogs/index.jsx
@@ -21,7 +21,7 @@ function BlogsPage({ blogs }) {
animate={{ y: 0, opacity: 1 }}
transition={{ duration: 0.4, delay: 0.5 }}
>
- Latest Blogs
+ {t("common:latestBlogs")}