From 66671606ceea416d5e014cae27632b40b3009240 Mon Sep 17 00:00:00 2001 From: Farouk Date: Thu, 23 Nov 2023 13:31:36 +0100 Subject: [PATCH 1/9] style(blogs page): update UI design of blogs page updated the overall UI design of the blogs page , Updated the BlogsCard to match the new UI and theme of our website , added an svg image , updated the test files , updated the responsiveness on all screens as well as i implemented framer motion on the page for a smoother user experience fixes #107 --- public/images/blogsillustration.svg | 100 ++++++++++++++ .../__snapshots__/BlogCard.test.js.snap | 2 +- src/components/BlogCard/index.jsx | 2 +- .../__test__/__snapshots__/Blogs.test.js.snap | 129 +++++++++--------- src/components/BlogsCard/index.jsx | 76 ++++++----- src/pages/blogs/index.jsx | 64 ++++++++- 6 files changed, 261 insertions(+), 112 deletions(-) create mode 100644 public/images/blogsillustration.svg diff --git a/public/images/blogsillustration.svg b/public/images/blogsillustration.svg new file mode 100644 index 0000000..124a8e7 --- /dev/null +++ b/public/images/blogsillustration.svg @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap b/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap index d129edb..9979d80 100644 --- a/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap +++ b/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap @@ -5,7 +5,7 @@ exports[`renders correctly 1`] = ` className="card rounded-xl bg-base-100 shadow-lg h-full w-full" >
Blog Image -
+
-
-
- Sample Blog Title -
- - Invalid date - -
+ } + width={400} + /> +
-
-

- Sample Blog Title -

- - Invalid date - -
+

+

`; diff --git a/src/components/BlogsCard/index.jsx b/src/components/BlogsCard/index.jsx index ba7e52f..f8ac70a 100644 --- a/src/components/BlogsCard/index.jsx +++ b/src/components/BlogsCard/index.jsx @@ -1,55 +1,59 @@ import Image from "next/image"; import Link from "next/link"; import { useTranslation } from "next-i18next"; +import { IoIosArrowDropright } from "react-icons/io"; import { formatDate } from "@/lib/helpers"; -export default function BlogsCard({ index, blog }) { +export default function BlogsCard({ + title, + index, + imageUrl, + createdAt, + description, + id, +}) { const { i18n, t } = useTranslation(); - const date = formatDate(blog.createdAt); + const date = formatDate(createdAt, "MMM YYYY"); return ( <>
-
-
- {blog.title} -
+
+ Blog Image +
+
+

+ {title} +

+

+ {description} +

+
+ {date} + + {t("common:buttons:readMore")} - - {date} - -
-
-
-

{blog.title}

- - {date} - + +
- -

- {blog.description.slice(0, 210)} - {blog.description.length > 210 ? " ..." : ""} -

- -
- -
-
diff --git a/src/pages/blogs/index.jsx b/src/pages/blogs/index.jsx index 94dc8d7..9738fe5 100644 --- a/src/pages/blogs/index.jsx +++ b/src/pages/blogs/index.jsx @@ -1,3 +1,5 @@ +import { motion } from "framer-motion"; +import Image from "next/image"; import { useTranslation } from "next-i18next"; import { withTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; @@ -5,17 +7,65 @@ import { serverSideTranslations } from "next-i18next/serverSideTranslations"; import { fetchCollection } from "@/lib/fetchCollection"; import BlogsCard from "@/components/BlogsCard"; -import Container from "@/components/container"; function BlogsPage({ blogs }) { const { t } = useTranslation(); + return ( - -

{t("blogs:allBlogs")}

- {blogs.map((blog, index) => ( - - ))} -
+ <> +
+
+ + Latest Blogs + + + Blogs & Resources + + + Check out our blogs for some cool reads! Dive into stories that + matter and join us in making a positive impact. Lets make a + difference together + +
+
+ Header +
+
+
+ {blogs.map((blog, index) => ( + + + + ))} +
+ ); } From 3a9a04be4f736544f8a5bbdf45fc5cbc3cb7b958 Mon Sep 17 00:00:00 2001 From: Farouk Date: Thu, 23 Nov 2023 14:07:15 +0100 Subject: [PATCH 2/9] fix(itemdetailscard): fix item details card height problem, remove the empty p tag in the code i updated the items detals card that had a height issue in the figure , i also deleted the empty p tag that was lurking around in the code fixes #107 --- .../__test__/__snapshots__/ItemDetailsCard.test.js.snap | 3 +-- src/components/ItemDetailsCard/index.jsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/ItemDetailsCard/__test__/__snapshots__/ItemDetailsCard.test.js.snap b/src/components/ItemDetailsCard/__test__/__snapshots__/ItemDetailsCard.test.js.snap index c09392e..5cc8c55 100644 --- a/src/components/ItemDetailsCard/__test__/__snapshots__/ItemDetailsCard.test.js.snap +++ b/src/components/ItemDetailsCard/__test__/__snapshots__/ItemDetailsCard.test.js.snap @@ -464,7 +464,7 @@ exports[`renders correctly 1`] = `
Item Details description

-

-
+

{description}

-

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")} - Blogs & Resources + {t("blogs:blogsAndResources")} - Check out our blogs for some cool reads! Dive into stories that - matter and join us in making a positive impact. Lets make a - difference together + {t("blogs:blogsHeader")}
From d8931b4dbc5c2d500a0321d27980b2c612f52439 Mon Sep 17 00:00:00 2001 From: hadiadjd Date: Thu, 23 Nov 2023 17:54:36 +0100 Subject: [PATCH 4/9] feat(blogs page): translate blogs translate blogs fix #107 --- public/locales/ar/blogs.json | 80 +++++++++++++++++++++++++++++++++++- public/locales/en/blogs.json | 80 +++++++++++++++++++++++++++++++++++- public/locales/fr/blogs.json | 80 +++++++++++++++++++++++++++++++++++- public/locales/tr/blogs.json | 80 +++++++++++++++++++++++++++++++++++- 4 files changed, 316 insertions(+), 4 deletions(-) diff --git a/public/locales/ar/blogs.json b/public/locales/ar/blogs.json index 6898ed6..1422302 100644 --- a/public/locales/ar/blogs.json +++ b/public/locales/ar/blogs.json @@ -1,5 +1,83 @@ { "allBlogs": "جميع المدونات", "blogsAndResources": "مدونات و مصادر", - "blogsHeader": "تفقَّد مدوناتنا لقراءة ممتعة! اغمر نفسك في القصص المهمة وانضم إلينا في صنع تأثير إيجابي. دعونا نصنع الفارق معًا." + "blogsHeader": "تفقَّد مدوناتنا لقراءة ممتعة! اغمر نفسك في القصص المهمة وانضم إلينا في صنع تأثير إيجابي. دعونا نصنع الفارق معًا.", + "eidElFitrBlog": { + "title": "روح العطاء: تبرعات عيد الفطر", + "description": "عيد الفطر، المعروف أيضًا بـ 'عيد فطر الصائم'، هو عطلة هامة تحتفل بها الجماعات الإسلامية في جميع أنحاء العالم. إنه يُعتبر نهاية رمضان، شهر الصوم والصلاة والتأمل الذاتي. بعيدًا عن الولائم الاحتفالية والتجمعات الفرحة، يحمل عيد الفطر أهمية روحية عميقة، وخاصة عندما يتعلق الأمر بفعل العطاء والصدقة.", + "content": [ + { + "id": 1, + "subTitle": "• فرحة عيد الفطر", + "description": "عيد الفطر هو وقت للاحتفال والامتنان، لحظة يجتمع فيها المسلمون مع الأصدقاء والعائلة لكسر صومهم والتعبير عن امتنانهم للنعم التي تلقوها. ومع ذلك، إنه وقت يلعب فيه فعل العطاء دورًا محوريًا. يُشجع المسلمون على أن يكونوا كرماء، وخاصة تجاه المحتاجين." + }, + { + "id": 2, + "subTitle": "• زكاة الفطر: نوع خاص من الصدقة", + "description": "أحد الجوانب الأساسية للعطاء خلال عيد الفطر هو 'زكاة الفطر'. هذا هو نوع إلزامي من الصدقة، يقدمه القادرين على ذلك لمساعدة المحتاجين على الاستمتاع بالاحتفال. تُعطى زكاة الفطر عادةً على شكل طعام، مما يسمح للمحتاجين بالمشاركة في الاحتفالات." + }, + { + "id": 3, + "subTitle": "• أفعال اللطف والسخاء", + "description": "بعيدًا عن زكاة الفطر، يشارك العديد من المسلمين في أعمال مختلفة من اللطف والسخاء خلال عيد الفطر. إنهم يتبرعون للجمعيات الخيرية، ويدعمون المبادرات المحلية، ويمدون يد العون لأولئك الذين يواجهون صعوبات. تعزز هذه الروح الخيرية الشعور بالمجتمع والتضامن بين المسلمين." + }, + { + "id": 4, + "subTitle": "• بركات العطاء", + "description": "فعل العطاء خلال عيد الفطر ليس مجرد الوفاء بالواجب الديني؛ بل يتعلق الأمر بتجسيد القيم الأساسية للرأفة والتعاطف وتضامن المجتمع. إنه يعزز الشعور بالوحدة، مذكّرًا لنا أننا جميعًا مسؤولون عن رفاهية بعضنا البعض." + } + ] + }, + "donationsInGaza": { + "title": "التبرعات في غزة: دعم الأشخاص المحتاجين", + "description": "واجه أهل غزة العديد من التحديات، ويمكن أن يكون دعمك فارقًا كبيرًا في حياتهم. تساعد التبرعات لغزة في توفير المساعدات الأساسية والإغاثة والأمل لأولئك الذين هم في حاجة.", + "content": [ + { + "id": 1, + "subTitle": "• الأزمة الإنسانية في غزة", + "description": "عانت غزة من تحديات مستمرة، بما في ذلك الصراعات السياسية والصعوبات الاقتصادية. غالبًا ما يواجه أهل غزة نقصًا في الاحتياجات الأساسية، وتلعب التبرعات دورًا حيويًا في تلبية احتياجاتهم الفورية وطويلة الأمد." + }, + { + "id": 2, + "subTitle": "• أنواع التبرعات المطلوبة", + "description": "يمكن أن تتخذ التبرعات لغزة أشكالًا مختلفة، بما في ذلك المساهمات المالية والإمدادات الطبية والمساعدات الغذائية والموارد التعليمية. يمكن أن يوفر دعمك الإغاثة للعائلات، ودعم المرافق الصحية، وتوفير فرص التعليم والتمكين." + }, + { + "id": 3, + "subTitle": "• أفعال التضامن والتعاطف", + "description": "ليست التبرعات لغزة فقط عن تقديم المساعدة المادية؛ بل تمثل أيضًا أفعالًا للتضامن والتعاطف. يمكن أن يحدث تبرعك فارقًا كبيرًا في حياة الأفراد والعائلات الذين يسعون للتغلب على الصعوبات." + }, + { + "id": 4, + "subTitle": "• بناء مستقبل أفضل", + "description": "من خلال تقديم دعمك وتبرعاتك لغزة، تُسهم في بناء مستقبل أفضل لأهل هذه المنطقة. سخاءك يمكن أن يساهم في خلق تغيير إيجابي، واستعادة الأمل، وتحسين جودة الحياة لأولئك الذين هم في حاجة." + } + ] + }, + "isolatedAreasDonations": { + "title": "التبرعات في المناطق المعزولة: إحضار الأمل إلى الأشخاص الذين يعانون", + "description": "غالبًا ما تواجه المناطق المعزولة والبعيدة تحديات فريدة، بدءًا من الوصول المحدود إلى الخدمات الأساسية إلى الصعوبات الاقتصادية. يمكن أن تحدث التبرعات إلى المناطق المعزولة فارقًا كبيرًا في حياة أولئك الذين يعانون والذين في حاجة إلى الدعم.", + "content": [ + { + "id": 1, + "subTitle": "• تحديات المناطق المعزولة", + "description": "قد تفتقر المناطق المعزولة إلى الوصول إلى الرعاية الصحية والتعليم والمياه النظيفة وفرص العمل. غالبًا ما يواجه الأشخاص الذين يعيشون في مثل هذه المناطق صعوبات في تلبية احتياجاتهم الأساسية، والتبرعات تمثل خط النجاة للدعم." + }, + { + "id": 2, + "subTitle": "• أنواع التبرعات المطلوبة", + "description": "يمكن أن تأخذ التبرعات إلى المناطق المعزولة أشكالًا مختلفة، بما في ذلك المساهمات المالية والإمدادات الطبية والمساعدات الغذائية وتطوير البنية التحتية. يمكن أن يساعد دعمك في سد الفجوة وتحسين جودة حياة أولئك في المناطق التي تحتاج إلى الدعم." + }, + { + "id": 3, + "subTitle": "• أفعال الرحمة والتواصل", + "description": "تتجاوز التبرعات إلى المناطق المعزولة تقديم المساعدة المادية؛ بل ترمز إلى أفعال الرحمة والتواصل. إن سخاءك يمكن أن يجلب الأمل إلى المجتمعات، ويخلق شعورًا بالتضامن، ويلهم التغيير الإيجابي." + }, + { + "id": 4, + "subTitle": "• تمكين المجتمعات التي تعاني من الإهمال", + "description": "من خلال تقديم الدعم والتبرعات إلى المناطق المعزولة، تمكن المجتمعات التي تعاني من الإهمال من بناء مستقبل أفضل. يمكن أن تساهم مساهماتك في كسر دائرة الفقر، وتحسين الوصول إلى التعليم والرعاية الصحية، وتعزيز الاكتفاء الذاتي." + } + ] + } } diff --git a/public/locales/en/blogs.json b/public/locales/en/blogs.json index 49bbf73..9c06fb7 100644 --- a/public/locales/en/blogs.json +++ b/public/locales/en/blogs.json @@ -1,5 +1,83 @@ { "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" + "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", + "eidElFitrBlog": { + "title": "The Spirit of Giving: Eid al-Fitr Donations", + "description": "Eid al-Fitr, also known as the 'Festival of Breaking the Fast,' is a significant holiday celebrated by Muslims worldwide. It marks the end of Ramadan, a month of fasting, prayer, and self-reflection. Beyond the festive feasts and joyous gatherings, Eid al-Fitr holds a deep spiritual significance, particularly when it comes to the act of giving and charity.", + "content": [ + { + "id": 1, + "subTitle": "• The Joy of Eid al-Fitr", + "description": "Eid al-Fitr is a time of celebration and gratitude, a moment for Muslims to come together with friends and family to break their fast and express their appreciation for the blessings they have received. However, it's also a time when the act of giving plays a pivotal role. Muslims are encouraged to be charitable, particularly towards those in need." + }, + { + "id": 2, + "subTitle": "• Zakat al-Fitr: A Special Form of Charity", + "description": "One of the essential aspects of giving during Eid al-Fitr is the 'Zakat al-Fitr.' This is a mandatory form of charity, given by those who can afford it to help those less fortunate to enjoy the celebration. Zakat al-Fitr is typically given in the form of food, allowing the needy to join in the festivities." + }, + { + "id": 3, + "subTitle": "• Acts of Kindness and Generosity", + "description": "Beyond Zakat al-Fitr, many Muslims also engage in various acts of kindness and generosity during Eid al-Fitr. They donate to charities, support local initiatives, and extend a helping hand to those facing difficulties. This charitable spirit strengthens the sense of community and solidarity among Muslims." + }, + { + "id": 4, + "subTitle": "• The Blessings of Giving", + "description": "The act of giving during Eid al-Fitr isn't just about fulfilling a religious obligation; it's about embodying the core values of compassion, empathy, and community solidarity. It fosters a sense of unity, reminding us that we are all responsible for one another's well-being." + } + ] + }, + "donationsInGaza": { + "title": "Donations in Gaza: Supporting Those in Need", + "description": "The people of Gaza have faced numerous challenges, and your support can make a significant difference in their lives. Donations to Gaza help provide essential aid, relief, and hope to those who are in need.", + "content": [ + { + "id": 1, + "subTitle": "• The Humanitarian Crisis in Gaza", + "description": "Gaza has experienced ongoing challenges, including political conflict and economic hardship. The people of Gaza often face shortages of basic necessities, and donations play a vital role in addressing their immediate and long-term needs." + }, + { + "id": 2, + "subTitle": "• Types of Donations Needed", + "description": "Donations to Gaza can take various forms, including financial contributions, medical supplies, food aid, and educational resources. Your support can provide relief to families, support healthcare facilities, and offer opportunities for education and empowerment." + }, + { + "id": 3, + "subTitle": "• Acts of Solidarity and Compassion", + "description": "Donations to Gaza are not only about providing material assistance; they also represent acts of solidarity and compassion. Your contribution can make a significant difference in the lives of individuals and families who are striving to overcome adversity." + }, + { + "id": 4, + "subTitle": "• Building a Better Future", + "description": "By offering your support and donations to Gaza, you contribute to building a better future for the people of this region. Your generosity can help create positive change, restore hope, and improve the quality of life for those in need." + } + ] + }, + "isolatedAreasDonations": { + "title": "Donations in Isolated Areas: Bringing Hope to the Underserved", + "description": "Isolated and remote areas often face unique challenges, from limited access to essential services to economic hardships. Donations to isolated areas can make a significant difference in the lives of those who are underserved and in need of support.", + "content": [ + { + "id": 1, + "subTitle": "• Challenges of Isolated Areas", + "description": "Isolated areas may lack access to healthcare, education, clean water, and economic opportunities. The people living in such areas often face difficulties in meeting their basic needs, and donations are a lifeline of support." + }, + { + "id": 2, + "subTitle": "• Types of Donations Needed", + "description": "Donations to isolated areas can take various forms, including financial contributions, medical supplies, food aid, and infrastructure development. Your support can help bridge the gap and improve the quality of life for those in underserved regions." + }, + { + "id": 3, + "subTitle": "• Acts of Compassion and Outreach", + "description": "Donations to isolated areas go beyond providing material assistance; they symbolize acts of compassion and outreach. Your generosity can bring hope to communities, create a sense of solidarity, and inspire positive change." + }, + { + "id": 4, + "subTitle": "• Empowering Underserved Communities", + "description": "By offering your support and donations to isolated areas, you empower underserved communities to build a better future. Your contributions can help break the cycle of poverty, improve access to education and healthcare, and promote self-sufficiency." + } + ] + } } diff --git a/public/locales/fr/blogs.json b/public/locales/fr/blogs.json index 95aaffc..5a50008 100644 --- a/public/locales/fr/blogs.json +++ b/public/locales/fr/blogs.json @@ -1,5 +1,83 @@ { "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" + "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", + "eidElFitrBlog": { + "title": "L'Esprit du Don : Dons de l'Eid al-Fitr", + "description": "L'Eid al-Fitr, également connu sous le nom de 'Fête de la rupture du jeûne,' est une fête importante célébrée par les musulmans du monde entier. Elle marque la fin du Ramadan, un mois de jeûne, de prière et de réflexion personnelle. Au-delà des festins et des rassemblements joyeux, l'Eid al-Fitr revêt une signification spirituelle profonde, notamment en ce qui concerne l'acte de donner et la charité.", + "content": [ + { + "id": 1, + "subTitle": "• La Joie de l'Eid al-Fitr", + "description": "L'Eid al-Fitr est un moment de célébration et de gratitude, un moment pour les musulmans de se retrouver avec leurs amis et leur famille pour rompre leur jeûne et exprimer leur reconnaissance pour les bénédictions reçues. Cependant, c'est aussi un moment où l'acte de donner joue un rôle crucial. Les musulmans sont encouragés à être charitables, en particulier envers les personnes dans le besoin." + }, + { + "id": 2, + "subTitle": "• Zakat al-Fitr : Une Forme Spéciale de Charité", + "description": "L'un des aspects essentiels de la donation pendant l'Eid al-Fitr est le 'Zakat al-Fitr.' Il s'agit d'une forme obligatoire de charité, donnée par ceux qui le peuvent pour aider les moins fortunés à profiter de la célébration. Le Zakat al-Fitr est généralement donné sous forme de nourriture, permettant aux nécessiteux de participer aux festivités." + }, + { + "id": 3, + "subTitle": "• Gestes de Gentillesse et de Générosité", + "description": "Au-delà du Zakat al-Fitr, de nombreux musulmans s'engagent également dans divers gestes de gentillesse et de générosité pendant l'Eid al-Fitr. Ils font des dons à des œuvres de charité, soutiennent des initiatives locales et tendent la main à ceux qui traversent des difficultés. Cet esprit de charité renforce le sentiment de communauté et de solidarité parmi les musulmans." + }, + { + "id": 4, + "subTitle": "• Les Bienfaits du Don", + "description": "L'acte de donner pendant l'Eid al-Fitr ne consiste pas seulement à accomplir une obligation religieuse ; il s'agit d'incarner les valeurs fondamentales de compassion, d'empathie et de solidarité communautaire. Il favorise un sentiment d'unité, nous rappelant que nous sommes tous responsables du bien-être les uns des autres." + } + ] + }, + "donationsInGaza": { + "title": "Dons à Gaza : Soutien aux personnes dans le besoin", + "description": "Le peuple de Gaza a fait face à de nombreux défis, et votre soutien peut faire une différence significative dans leurs vies. Les dons à Gaza aident à fournir une aide essentielle, un soulagement et de l'espoir à ceux qui en ont besoin.", + "content": [ + { + "id": 1, + "subTitle": "• La crise humanitaire à Gaza", + "description": "Gaza a connu des défis persistants, notamment des conflits politiques et des difficultés économiques. Les habitants de Gaza font souvent face à des pénuries de biens de première nécessité, et les dons jouent un rôle vital pour répondre à leurs besoins immédiats et à long terme." + }, + { + "id": 2, + "subTitle": "• Types de dons nécessaires", + "description": "Les dons à Gaza peuvent prendre différentes formes, notamment des contributions financières, des fournitures médicales, de l'aide alimentaire et des ressources éducatives. Votre soutien peut fournir un soulagement aux familles, soutenir les établissements de santé et offrir des opportunités d'éducation et d'autonomisation." + }, + { + "id": 3, + "subTitle": "• Gestes de solidarité et de compassion", + "description": "Les dons à Gaza ne concernent pas seulement la fourniture d'une aide matérielle ; ils représentent également des gestes de solidarité et de compassion. Votre contribution peut faire une différence significative dans la vie des individus et des familles qui s'efforcent de surmonter l'adversité." + }, + { + "id": 4, + "subTitle": "• Construire un avenir meilleur", + "description": "En offrant votre soutien et vos dons à Gaza, vous contribuez à construire un avenir meilleur pour les habitants de cette région. Votre générosité peut aider à créer un changement positif, à restaurer l'espoir et à améliorer la qualité de vie de ceux dans le besoin." + } + ] + }, + "isolatedAreasDonations": { + "title": "Dons dans les Zones Isolées : Apporter de l'Espoir aux Défavorisés", + "description": "Les zones isolées et reculées sont souvent confrontées à des défis uniques, allant de l'accès limité aux services essentiels aux difficultés économiques. Les dons aux zones isolées peuvent faire une différence significative dans la vie de ceux qui sont défavorisés et ont besoin de soutien.", + "content": [ + { + "id": 1, + "subTitle": "• Défis des Zones Isolées", + "description": "Les zones isolées peuvent manquer d'accès aux soins de santé, à l'éducation, à l'eau potable et aux opportunités économiques. Les personnes vivant dans de telles zones rencontrent souvent des difficultés à satisfaire leurs besoins de base, et les dons sont une bouée de sauvetage pour les soutenir." + }, + { + "id": 2, + "subTitle": "• Types de Dons Nécessaires", + "description": "Les dons aux zones isolées peuvent prendre diverses formes, notamment des contributions financières, des fournitures médicales, de l'aide alimentaire et le développement d'infrastructures. Votre soutien peut aider à combler le fossé et à améliorer la qualité de vie de ceux qui vivent dans des régions défavorisées." + }, + { + "id": 3, + "subTitle": "• Actes de Compassion et d'Engagement", + "description": "Les dons aux zones isolées vont au-delà de la fourniture d'une assistance matérielle ; ils symbolisent des actes de compassion et d'engagement. Votre générosité peut apporter de l'espoir aux communautés, créer un sentiment de solidarité et inspirer des changements positifs." + }, + { + "id": 4, + "subTitle": "• Autonomisation des Communautés Défavorisées", + "description": "En offrant votre soutien et vos dons aux zones isolées, vous permettez aux communautés défavorisées de construire un avenir meilleur. Vos contributions peuvent aider à briser le cycle de la pauvreté, améliorer l'accès à l'éducation et aux soins de santé, et promouvoir l'autosuffisance." + } + ] + } } diff --git a/public/locales/tr/blogs.json b/public/locales/tr/blogs.json index b31d0eb..98cafaf 100644 --- a/public/locales/tr/blogs.json +++ b/public/locales/tr/blogs.json @@ -1,5 +1,83 @@ { "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." + "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.", + "eidElFitrBlog": { + "title": "Verme Ruhu: Ramazan Bayramı Bağışları", + "description": "Eid al-Fitr, oruç tutmanın, ibadetin ve özeleştirinin yapıldığı bir ay olan Ramazan'ın sonunu işaret eden, dünya çapında kutlanan önemli bir Müslüman bayramıdır. Bayram yemekleri ve sevinçli toplantıların ötesinde, Eid al-Fitr, özellikle verme ve sadaka etme eylemiyle derin manevi bir öneme sahiptir.", + "content": [ + { + "id": 1, + "subTitle": "• Eid al-Fitr'in Sevinci", + "description": "Eid al-Fitr, Müslümanların aile ve arkadaşlarıyla bir araya gelerek orucu açtıkları ve aldıkları nimetler için şükranlarını ifade ettikleri bir kutlama ve minnet zamanıdır. Ancak, verme eylemi de önemli bir rol oynar. Müslümanlar, özellikle ihtiyaç sahiplerine sadaka vermeye teşvik edilir." + }, + { + "id": 2, + "subTitle": "• Zakat al-Fitr: Özel Bir Sadaka Türü", + "description": "Eid al-Fitr'de vermenin temel yönlerinden biri 'Zakat al-Fitr'dir. Bu, kutlamadan yoksun olanları desteklemek için buna gücü yetenler tarafından verilen zorunlu bir sadaka türüdür. Zakat al-Fitr genellikle yiyecek olarak verilir, bu da ihtiyaç sahiplerinin kutlamalara katılmasını sağlar." + }, + { + "id": 3, + "subTitle": "• İyilik ve Cömertlik Eylemleri", + "description": "Zakat al-Fitr'in ötesinde, birçok Müslüman Eid al-Fitr sırasında çeşitli iyilik ve cömertlik eylemlerinde bulunur. Onlar, hayır kurumlarına bağış yapar, yerel girişimleri destekler ve zorluklarla karşılaşanlara yardım eli uzatır. Bu sadaka ruhu, Müslümanlar arasındaki topluluk ve dayanışma duygusunu güçlendirir." + }, + { + "id": 4, + "subTitle": "• Vermenin Bereketi", + "description": "Eid al-Fitr'de verme eylemi sadece dini bir görevi yerine getirmekle kalmaz, aynı zamanda merhamet, empati ve toplum dayanışmasının temel değerlerini içselleştirme anlamına gelir. Bu, hepimizin birbirimizin refahından sorumlu olduğumuzu hatırlatarak birlik duygusu oluşturur." + } + ] + }, + "donationsInGaza": { + "title": "Gazze'deki Bağışlar: İhtiyaç Sahiplerine Destek", + "description": "Gazze halkı birçok zorlukla karşılaştı ve sizin desteğiniz, hayatlarında önemli bir fark yaratabilir. Gazze'ye yapılan bağışlar, ihtiyaç sahiplerine temel yardım, yardım ve umut sağlamaya yardımcı olur.", + "content": [ + { + "id": 1, + "subTitle": "• Gazze'deki İnsani Kriz", + "description": "Gazze, siyasi çatışma ve ekonomik zorluklar da dahil olmak üzere sürekli zorluklar yaşadı. Gazze halkı sık sık temel ihtiyaçlar konusunda sıkıntılar yaşar ve bağışlar, acil ve uzun vadeli ihtiyaçlarını karşılama konusunda önemli bir rol oynar." + }, + { + "id": 2, + "subTitle": "• İhtiyaç Duyulan Bağış Türleri", + "description": "Gazze'ye yapılan bağışlar, finansal katkılar, tıbbi malzemeler, gıda yardımı ve eğitim kaynakları dahil olmak üzere çeşitli şekillerde olabilir. Sizin desteğiniz, ailelere yardım, sağlık tesislerine destek ve eğitim ve güçlendirme fırsatları sağlayabilir." + }, + { + "id": 3, + "subTitle": "• Dayanışma ve Şefkat Eylemleri", + "description": "Gazze'ye yapılan bağışlar, sadece maddi yardım sağlamakla kalmaz, aynı zamanda dayanışma ve şefkat eylemlerini temsil eder. Sizin katkınız, zorlukları aşmaya çalışan bireylerin ve ailelerin hayatlarında önemli bir fark yaratabilir." + }, + { + "id": 4, + "subTitle": "• Daha İyi Bir Gelecek İnşa Etme", + "description": "Gazze'ye desteğinizi ve bağışlarınızı sunarak, bu bölgenin insanları için daha iyi bir gelecek inşa etmeye katkıda bulunursunuz. Cömertliğiniz, olumlu değişim yaratmaya, umutları restore etmeye ve ihtiyaç sahiplerinin yaşam kalitesini artırmaya yardımcı olabilir." + } + ] + }, + "isolatedAreasDonations": { + "title": "İzole Alanlara Bağışlar: Dezavantajlılara Umut Getirme", + "description": "İzole ve uzak bölgeler genellikle sınırlı temel hizmetlere erişimden ekonomik zorluklara kadar benzersiz zorluklarla karşı karşıyadır. İzole alanlara yapılan bağışlar, ihtiyaç içinde olanların hayatlarında önemli bir fark yaratabilir.", + "content": [ + { + "id": 1, + "subTitle": "• İzole Alanların Zorlukları", + "description": "İzole alanlar genellikle sağlık hizmetlerine, eğitime, temiz suya ve ekonomik fırsatlara erişimde sıkıntı yaşayabilirler. Bu alanlarda yaşayan insanlar genellikle temel ihtiyaçlarını karşılamakta zorluklarla karşılaşırlar ve bağışlar bir destek hattıdır." + }, + { + "id": 2, + "subTitle": "• İhtiyaç Duyulan Bağış Türleri", + "description": "İzole alanlara yapılan bağışlar, finansal katkılar, tıbbi malzemeler, gıda yardımı ve altyapı geliştirme gibi çeşitli şekillerde olabilir. Sizin desteğiniz, dezavantajlı bölgelerde yaşayanların yaşam kalitesini artırabilir ve farkı kapatabilir." + }, + { + "id": 3, + "subTitle": "• Merhamet ve İletişim Hareketleri", + "description": "İzole alanlara yapılan bağışlar, sadece malî yardım sağlamaktan öte, merhamet ve iletişim hareketlerini simgeler. Cömertliğiniz topluluklara umut getirebilir, dayanışma duygusu yaratabilir ve olumlu değişimlere ilham verebilir." + }, + { + "id": 4, + "subTitle": "• Dezavantajlı Toplulukları Güçlendirme", + "description": "Destek ve bağışlarınızı izole alanlara sunarak, dezavantajlı toplulukları daha iyi bir gelecek inşa etmelerine güç verirsiniz. Katkılarınız, yoksulluk döngüsünü kırabilir, eğitim ve sağlık hizmetlerine erişimi iyileştirebilir ve öz-yeterliliği teşvik edebilir." + } + ] + } } From 7a06c9667422304ea63f4e9eec883077a38b5cda Mon Sep 17 00:00:00 2001 From: Riadh mouamnia Date: Thu, 23 Nov 2023 19:06:25 +0100 Subject: [PATCH 5/9] feat(blogs): add translation keys to blogs fixes #107 --- public/locales/ar/blogs.json | 36 +++++------ public/locales/en/blogs.json | 64 +++++++++---------- public/locales/fr/blogs.json | 36 +++++------ public/locales/tr/blogs.json | 36 +++++------ .../__test__/__snapshots__/Blogs.test.js.snap | 8 ++- src/components/BlogsCard/index.jsx | 5 +- .../StatisticsSection.test.js.snap | 1 + src/components/container/index.jsx | 4 +- src/pages/blogs/[blogId].jsx | 29 ++++++--- src/pages/blogs/index.jsx | 7 +- 10 files changed, 117 insertions(+), 109 deletions(-) diff --git a/public/locales/ar/blogs.json b/public/locales/ar/blogs.json index 1422302..28af20d 100644 --- a/public/locales/ar/blogs.json +++ b/public/locales/ar/blogs.json @@ -5,28 +5,28 @@ "eidElFitrBlog": { "title": "روح العطاء: تبرعات عيد الفطر", "description": "عيد الفطر، المعروف أيضًا بـ 'عيد فطر الصائم'، هو عطلة هامة تحتفل بها الجماعات الإسلامية في جميع أنحاء العالم. إنه يُعتبر نهاية رمضان، شهر الصوم والصلاة والتأمل الذاتي. بعيدًا عن الولائم الاحتفالية والتجمعات الفرحة، يحمل عيد الفطر أهمية روحية عميقة، وخاصة عندما يتعلق الأمر بفعل العطاء والصدقة.", - "content": [ - { + "content": { + "1": { "id": 1, - "subTitle": "• فرحة عيد الفطر", + "subTitle": "فرحة عيد الفطر", "description": "عيد الفطر هو وقت للاحتفال والامتنان، لحظة يجتمع فيها المسلمون مع الأصدقاء والعائلة لكسر صومهم والتعبير عن امتنانهم للنعم التي تلقوها. ومع ذلك، إنه وقت يلعب فيه فعل العطاء دورًا محوريًا. يُشجع المسلمون على أن يكونوا كرماء، وخاصة تجاه المحتاجين." }, - { + "2": { "id": 2, - "subTitle": "• زكاة الفطر: نوع خاص من الصدقة", + "subTitle": "زكاة الفطر: نوع خاص من الصدقة", "description": "أحد الجوانب الأساسية للعطاء خلال عيد الفطر هو 'زكاة الفطر'. هذا هو نوع إلزامي من الصدقة، يقدمه القادرين على ذلك لمساعدة المحتاجين على الاستمتاع بالاحتفال. تُعطى زكاة الفطر عادةً على شكل طعام، مما يسمح للمحتاجين بالمشاركة في الاحتفالات." }, - { + "3": { "id": 3, - "subTitle": "• أفعال اللطف والسخاء", + "subTitle": "أفعال اللطف والسخاء", "description": "بعيدًا عن زكاة الفطر، يشارك العديد من المسلمين في أعمال مختلفة من اللطف والسخاء خلال عيد الفطر. إنهم يتبرعون للجمعيات الخيرية، ويدعمون المبادرات المحلية، ويمدون يد العون لأولئك الذين يواجهون صعوبات. تعزز هذه الروح الخيرية الشعور بالمجتمع والتضامن بين المسلمين." }, - { + "4": { "id": 4, - "subTitle": "• بركات العطاء", + "subTitle": "بركات العطاء", "description": "فعل العطاء خلال عيد الفطر ليس مجرد الوفاء بالواجب الديني؛ بل يتعلق الأمر بتجسيد القيم الأساسية للرأفة والتعاطف وتضامن المجتمع. إنه يعزز الشعور بالوحدة، مذكّرًا لنا أننا جميعًا مسؤولون عن رفاهية بعضنا البعض." } - ] + } }, "donationsInGaza": { "title": "التبرعات في غزة: دعم الأشخاص المحتاجين", @@ -34,22 +34,22 @@ "content": [ { "id": 1, - "subTitle": "• الأزمة الإنسانية في غزة", + "subTitle": "الأزمة الإنسانية في غزة", "description": "عانت غزة من تحديات مستمرة، بما في ذلك الصراعات السياسية والصعوبات الاقتصادية. غالبًا ما يواجه أهل غزة نقصًا في الاحتياجات الأساسية، وتلعب التبرعات دورًا حيويًا في تلبية احتياجاتهم الفورية وطويلة الأمد." }, { "id": 2, - "subTitle": "• أنواع التبرعات المطلوبة", + "subTitle": "أنواع التبرعات المطلوبة", "description": "يمكن أن تتخذ التبرعات لغزة أشكالًا مختلفة، بما في ذلك المساهمات المالية والإمدادات الطبية والمساعدات الغذائية والموارد التعليمية. يمكن أن يوفر دعمك الإغاثة للعائلات، ودعم المرافق الصحية، وتوفير فرص التعليم والتمكين." }, { "id": 3, - "subTitle": "• أفعال التضامن والتعاطف", + "subTitle": "أفعال التضامن والتعاطف", "description": "ليست التبرعات لغزة فقط عن تقديم المساعدة المادية؛ بل تمثل أيضًا أفعالًا للتضامن والتعاطف. يمكن أن يحدث تبرعك فارقًا كبيرًا في حياة الأفراد والعائلات الذين يسعون للتغلب على الصعوبات." }, { "id": 4, - "subTitle": "• بناء مستقبل أفضل", + "subTitle": "بناء مستقبل أفضل", "description": "من خلال تقديم دعمك وتبرعاتك لغزة، تُسهم في بناء مستقبل أفضل لأهل هذه المنطقة. سخاءك يمكن أن يساهم في خلق تغيير إيجابي، واستعادة الأمل، وتحسين جودة الحياة لأولئك الذين هم في حاجة." } ] @@ -60,22 +60,22 @@ "content": [ { "id": 1, - "subTitle": "• تحديات المناطق المعزولة", + "subTitle": "تحديات المناطق المعزولة", "description": "قد تفتقر المناطق المعزولة إلى الوصول إلى الرعاية الصحية والتعليم والمياه النظيفة وفرص العمل. غالبًا ما يواجه الأشخاص الذين يعيشون في مثل هذه المناطق صعوبات في تلبية احتياجاتهم الأساسية، والتبرعات تمثل خط النجاة للدعم." }, { "id": 2, - "subTitle": "• أنواع التبرعات المطلوبة", + "subTitle": "أنواع التبرعات المطلوبة", "description": "يمكن أن تأخذ التبرعات إلى المناطق المعزولة أشكالًا مختلفة، بما في ذلك المساهمات المالية والإمدادات الطبية والمساعدات الغذائية وتطوير البنية التحتية. يمكن أن يساعد دعمك في سد الفجوة وتحسين جودة حياة أولئك في المناطق التي تحتاج إلى الدعم." }, { "id": 3, - "subTitle": "• أفعال الرحمة والتواصل", + "subTitle": "أفعال الرحمة والتواصل", "description": "تتجاوز التبرعات إلى المناطق المعزولة تقديم المساعدة المادية؛ بل ترمز إلى أفعال الرحمة والتواصل. إن سخاءك يمكن أن يجلب الأمل إلى المجتمعات، ويخلق شعورًا بالتضامن، ويلهم التغيير الإيجابي." }, { "id": 4, - "subTitle": "• تمكين المجتمعات التي تعاني من الإهمال", + "subTitle": "تمكين المجتمعات التي تعاني من الإهمال", "description": "من خلال تقديم الدعم والتبرعات إلى المناطق المعزولة، تمكن المجتمعات التي تعاني من الإهمال من بناء مستقبل أفضل. يمكن أن تساهم مساهماتك في كسر دائرة الفقر، وتحسين الوصول إلى التعليم والرعاية الصحية، وتعزيز الاكتفاء الذاتي." } ] diff --git a/public/locales/en/blogs.json b/public/locales/en/blogs.json index 9c06fb7..b871732 100644 --- a/public/locales/en/blogs.json +++ b/public/locales/en/blogs.json @@ -5,79 +5,75 @@ "eidElFitrBlog": { "title": "The Spirit of Giving: Eid al-Fitr Donations", "description": "Eid al-Fitr, also known as the 'Festival of Breaking the Fast,' is a significant holiday celebrated by Muslims worldwide. It marks the end of Ramadan, a month of fasting, prayer, and self-reflection. Beyond the festive feasts and joyous gatherings, Eid al-Fitr holds a deep spiritual significance, particularly when it comes to the act of giving and charity.", - "content": [ - { - "id": 1, - "subTitle": "• The Joy of Eid al-Fitr", + "content": { + "1": { + "subTitle": "The Joy of Eid al-Fitr", "description": "Eid al-Fitr is a time of celebration and gratitude, a moment for Muslims to come together with friends and family to break their fast and express their appreciation for the blessings they have received. However, it's also a time when the act of giving plays a pivotal role. Muslims are encouraged to be charitable, particularly towards those in need." }, - { - "id": 2, - "subTitle": "• Zakat al-Fitr: A Special Form of Charity", + "2": { + "subTitle": "Zakat al-Fitr: A Special Form of Charity", "description": "One of the essential aspects of giving during Eid al-Fitr is the 'Zakat al-Fitr.' This is a mandatory form of charity, given by those who can afford it to help those less fortunate to enjoy the celebration. Zakat al-Fitr is typically given in the form of food, allowing the needy to join in the festivities." }, - { - "id": 3, - "subTitle": "• Acts of Kindness and Generosity", + "3": { + "subTitle": "Acts of Kindness and Generosity", "description": "Beyond Zakat al-Fitr, many Muslims also engage in various acts of kindness and generosity during Eid al-Fitr. They donate to charities, support local initiatives, and extend a helping hand to those facing difficulties. This charitable spirit strengthens the sense of community and solidarity among Muslims." }, - { - "id": 4, - "subTitle": "• The Blessings of Giving", + "4": { + "subTitle": "The Blessings of Giving", "description": "The act of giving during Eid al-Fitr isn't just about fulfilling a religious obligation; it's about embodying the core values of compassion, empathy, and community solidarity. It fosters a sense of unity, reminding us that we are all responsible for one another's well-being." } - ] + } }, "donationsInGaza": { "title": "Donations in Gaza: Supporting Those in Need", "description": "The people of Gaza have faced numerous challenges, and your support can make a significant difference in their lives. Donations to Gaza help provide essential aid, relief, and hope to those who are in need.", - "content": [ - { + "content": { + "1": { "id": 1, - "subTitle": "• The Humanitarian Crisis in Gaza", + "subTitle": "The Humanitarian Crisis in Gaza", "description": "Gaza has experienced ongoing challenges, including political conflict and economic hardship. The people of Gaza often face shortages of basic necessities, and donations play a vital role in addressing their immediate and long-term needs." }, - { + "2": { "id": 2, - "subTitle": "• Types of Donations Needed", + "subTitle": "Types of Donations Needed", "description": "Donations to Gaza can take various forms, including financial contributions, medical supplies, food aid, and educational resources. Your support can provide relief to families, support healthcare facilities, and offer opportunities for education and empowerment." }, - { + "3": { "id": 3, - "subTitle": "• Acts of Solidarity and Compassion", + "subTitle": "Acts of Solidarity and Compassion", "description": "Donations to Gaza are not only about providing material assistance; they also represent acts of solidarity and compassion. Your contribution can make a significant difference in the lives of individuals and families who are striving to overcome adversity." }, - { + "4": { "id": 4, - "subTitle": "• Building a Better Future", + "subTitle": "Building a Better Future", "description": "By offering your support and donations to Gaza, you contribute to building a better future for the people of this region. Your generosity can help create positive change, restore hope, and improve the quality of life for those in need." } - ] + } }, "isolatedAreasDonations": { "title": "Donations in Isolated Areas: Bringing Hope to the Underserved", "description": "Isolated and remote areas often face unique challenges, from limited access to essential services to economic hardships. Donations to isolated areas can make a significant difference in the lives of those who are underserved and in need of support.", - "content": [ - { + "content": { + "1": { "id": 1, - "subTitle": "• Challenges of Isolated Areas", + "subTitle": "Challenges of Isolated Areas", "description": "Isolated areas may lack access to healthcare, education, clean water, and economic opportunities. The people living in such areas often face difficulties in meeting their basic needs, and donations are a lifeline of support." }, - { + "2": { "id": 2, - "subTitle": "• Types of Donations Needed", + "subTitle": "Types of Donations Needed", "description": "Donations to isolated areas can take various forms, including financial contributions, medical supplies, food aid, and infrastructure development. Your support can help bridge the gap and improve the quality of life for those in underserved regions." }, - { + "3": { "id": 3, - "subTitle": "• Acts of Compassion and Outreach", + "subTitle": "Acts of Compassion and Outreach", "description": "Donations to isolated areas go beyond providing material assistance; they symbolize acts of compassion and outreach. Your generosity can bring hope to communities, create a sense of solidarity, and inspire positive change." }, - { + "4": { "id": 4, - "subTitle": "• Empowering Underserved Communities", + "subTitle": "Empowering Underserved Communities", "description": "By offering your support and donations to isolated areas, you empower underserved communities to build a better future. Your contributions can help break the cycle of poverty, improve access to education and healthcare, and promote self-sufficiency." } - ] + } } } diff --git a/public/locales/fr/blogs.json b/public/locales/fr/blogs.json index 5a50008..6a0ccdb 100644 --- a/public/locales/fr/blogs.json +++ b/public/locales/fr/blogs.json @@ -5,28 +5,28 @@ "eidElFitrBlog": { "title": "L'Esprit du Don : Dons de l'Eid al-Fitr", "description": "L'Eid al-Fitr, également connu sous le nom de 'Fête de la rupture du jeûne,' est une fête importante célébrée par les musulmans du monde entier. Elle marque la fin du Ramadan, un mois de jeûne, de prière et de réflexion personnelle. Au-delà des festins et des rassemblements joyeux, l'Eid al-Fitr revêt une signification spirituelle profonde, notamment en ce qui concerne l'acte de donner et la charité.", - "content": [ - { + "content": { + "1": { "id": 1, - "subTitle": "• La Joie de l'Eid al-Fitr", + "subTitle": "La Joie de l'Eid al-Fitr", "description": "L'Eid al-Fitr est un moment de célébration et de gratitude, un moment pour les musulmans de se retrouver avec leurs amis et leur famille pour rompre leur jeûne et exprimer leur reconnaissance pour les bénédictions reçues. Cependant, c'est aussi un moment où l'acte de donner joue un rôle crucial. Les musulmans sont encouragés à être charitables, en particulier envers les personnes dans le besoin." }, - { + "2": { "id": 2, - "subTitle": "• Zakat al-Fitr : Une Forme Spéciale de Charité", + "subTitle": "Zakat al-Fitr : Une Forme Spéciale de Charité", "description": "L'un des aspects essentiels de la donation pendant l'Eid al-Fitr est le 'Zakat al-Fitr.' Il s'agit d'une forme obligatoire de charité, donnée par ceux qui le peuvent pour aider les moins fortunés à profiter de la célébration. Le Zakat al-Fitr est généralement donné sous forme de nourriture, permettant aux nécessiteux de participer aux festivités." }, - { + "3": { "id": 3, - "subTitle": "• Gestes de Gentillesse et de Générosité", + "subTitle": "Gestes de Gentillesse et de Générosité", "description": "Au-delà du Zakat al-Fitr, de nombreux musulmans s'engagent également dans divers gestes de gentillesse et de générosité pendant l'Eid al-Fitr. Ils font des dons à des œuvres de charité, soutiennent des initiatives locales et tendent la main à ceux qui traversent des difficultés. Cet esprit de charité renforce le sentiment de communauté et de solidarité parmi les musulmans." }, - { + "4": { "id": 4, - "subTitle": "• Les Bienfaits du Don", + "subTitle": "Les Bienfaits du Don", "description": "L'acte de donner pendant l'Eid al-Fitr ne consiste pas seulement à accomplir une obligation religieuse ; il s'agit d'incarner les valeurs fondamentales de compassion, d'empathie et de solidarité communautaire. Il favorise un sentiment d'unité, nous rappelant que nous sommes tous responsables du bien-être les uns des autres." } - ] + } }, "donationsInGaza": { "title": "Dons à Gaza : Soutien aux personnes dans le besoin", @@ -34,22 +34,22 @@ "content": [ { "id": 1, - "subTitle": "• La crise humanitaire à Gaza", + "subTitle": "La crise humanitaire à Gaza", "description": "Gaza a connu des défis persistants, notamment des conflits politiques et des difficultés économiques. Les habitants de Gaza font souvent face à des pénuries de biens de première nécessité, et les dons jouent un rôle vital pour répondre à leurs besoins immédiats et à long terme." }, { "id": 2, - "subTitle": "• Types de dons nécessaires", + "subTitle": "Types de dons nécessaires", "description": "Les dons à Gaza peuvent prendre différentes formes, notamment des contributions financières, des fournitures médicales, de l'aide alimentaire et des ressources éducatives. Votre soutien peut fournir un soulagement aux familles, soutenir les établissements de santé et offrir des opportunités d'éducation et d'autonomisation." }, { "id": 3, - "subTitle": "• Gestes de solidarité et de compassion", + "subTitle": "Gestes de solidarité et de compassion", "description": "Les dons à Gaza ne concernent pas seulement la fourniture d'une aide matérielle ; ils représentent également des gestes de solidarité et de compassion. Votre contribution peut faire une différence significative dans la vie des individus et des familles qui s'efforcent de surmonter l'adversité." }, { "id": 4, - "subTitle": "• Construire un avenir meilleur", + "subTitle": "Construire un avenir meilleur", "description": "En offrant votre soutien et vos dons à Gaza, vous contribuez à construire un avenir meilleur pour les habitants de cette région. Votre générosité peut aider à créer un changement positif, à restaurer l'espoir et à améliorer la qualité de vie de ceux dans le besoin." } ] @@ -60,22 +60,22 @@ "content": [ { "id": 1, - "subTitle": "• Défis des Zones Isolées", + "subTitle": "Défis des Zones Isolées", "description": "Les zones isolées peuvent manquer d'accès aux soins de santé, à l'éducation, à l'eau potable et aux opportunités économiques. Les personnes vivant dans de telles zones rencontrent souvent des difficultés à satisfaire leurs besoins de base, et les dons sont une bouée de sauvetage pour les soutenir." }, { "id": 2, - "subTitle": "• Types de Dons Nécessaires", + "subTitle": "Types de Dons Nécessaires", "description": "Les dons aux zones isolées peuvent prendre diverses formes, notamment des contributions financières, des fournitures médicales, de l'aide alimentaire et le développement d'infrastructures. Votre soutien peut aider à combler le fossé et à améliorer la qualité de vie de ceux qui vivent dans des régions défavorisées." }, { "id": 3, - "subTitle": "• Actes de Compassion et d'Engagement", + "subTitle": "Actes de Compassion et d'Engagement", "description": "Les dons aux zones isolées vont au-delà de la fourniture d'une assistance matérielle ; ils symbolisent des actes de compassion et d'engagement. Votre générosité peut apporter de l'espoir aux communautés, créer un sentiment de solidarité et inspirer des changements positifs." }, { "id": 4, - "subTitle": "• Autonomisation des Communautés Défavorisées", + "subTitle": "Autonomisation des Communautés Défavorisées", "description": "En offrant votre soutien et vos dons aux zones isolées, vous permettez aux communautés défavorisées de construire un avenir meilleur. Vos contributions peuvent aider à briser le cycle de la pauvreté, améliorer l'accès à l'éducation et aux soins de santé, et promouvoir l'autosuffisance." } ] diff --git a/public/locales/tr/blogs.json b/public/locales/tr/blogs.json index 98cafaf..820c4f7 100644 --- a/public/locales/tr/blogs.json +++ b/public/locales/tr/blogs.json @@ -5,28 +5,28 @@ "eidElFitrBlog": { "title": "Verme Ruhu: Ramazan Bayramı Bağışları", "description": "Eid al-Fitr, oruç tutmanın, ibadetin ve özeleştirinin yapıldığı bir ay olan Ramazan'ın sonunu işaret eden, dünya çapında kutlanan önemli bir Müslüman bayramıdır. Bayram yemekleri ve sevinçli toplantıların ötesinde, Eid al-Fitr, özellikle verme ve sadaka etme eylemiyle derin manevi bir öneme sahiptir.", - "content": [ - { + "content": { + "1": { "id": 1, - "subTitle": "• Eid al-Fitr'in Sevinci", + "subTitle": "Eid al-Fitr'in Sevinci", "description": "Eid al-Fitr, Müslümanların aile ve arkadaşlarıyla bir araya gelerek orucu açtıkları ve aldıkları nimetler için şükranlarını ifade ettikleri bir kutlama ve minnet zamanıdır. Ancak, verme eylemi de önemli bir rol oynar. Müslümanlar, özellikle ihtiyaç sahiplerine sadaka vermeye teşvik edilir." }, - { + "2": { "id": 2, - "subTitle": "• Zakat al-Fitr: Özel Bir Sadaka Türü", + "subTitle": "Zakat al-Fitr: Özel Bir Sadaka Türü", "description": "Eid al-Fitr'de vermenin temel yönlerinden biri 'Zakat al-Fitr'dir. Bu, kutlamadan yoksun olanları desteklemek için buna gücü yetenler tarafından verilen zorunlu bir sadaka türüdür. Zakat al-Fitr genellikle yiyecek olarak verilir, bu da ihtiyaç sahiplerinin kutlamalara katılmasını sağlar." }, - { + "3": { "id": 3, - "subTitle": "• İyilik ve Cömertlik Eylemleri", + "subTitle": "İyilik ve Cömertlik Eylemleri", "description": "Zakat al-Fitr'in ötesinde, birçok Müslüman Eid al-Fitr sırasında çeşitli iyilik ve cömertlik eylemlerinde bulunur. Onlar, hayır kurumlarına bağış yapar, yerel girişimleri destekler ve zorluklarla karşılaşanlara yardım eli uzatır. Bu sadaka ruhu, Müslümanlar arasındaki topluluk ve dayanışma duygusunu güçlendirir." }, - { + "4": { "id": 4, - "subTitle": "• Vermenin Bereketi", + "subTitle": "Vermenin Bereketi", "description": "Eid al-Fitr'de verme eylemi sadece dini bir görevi yerine getirmekle kalmaz, aynı zamanda merhamet, empati ve toplum dayanışmasının temel değerlerini içselleştirme anlamına gelir. Bu, hepimizin birbirimizin refahından sorumlu olduğumuzu hatırlatarak birlik duygusu oluşturur." } - ] + } }, "donationsInGaza": { "title": "Gazze'deki Bağışlar: İhtiyaç Sahiplerine Destek", @@ -34,22 +34,22 @@ "content": [ { "id": 1, - "subTitle": "• Gazze'deki İnsani Kriz", + "subTitle": "Gazze'deki İnsani Kriz", "description": "Gazze, siyasi çatışma ve ekonomik zorluklar da dahil olmak üzere sürekli zorluklar yaşadı. Gazze halkı sık sık temel ihtiyaçlar konusunda sıkıntılar yaşar ve bağışlar, acil ve uzun vadeli ihtiyaçlarını karşılama konusunda önemli bir rol oynar." }, { "id": 2, - "subTitle": "• İhtiyaç Duyulan Bağış Türleri", + "subTitle": "İhtiyaç Duyulan Bağış Türleri", "description": "Gazze'ye yapılan bağışlar, finansal katkılar, tıbbi malzemeler, gıda yardımı ve eğitim kaynakları dahil olmak üzere çeşitli şekillerde olabilir. Sizin desteğiniz, ailelere yardım, sağlık tesislerine destek ve eğitim ve güçlendirme fırsatları sağlayabilir." }, { "id": 3, - "subTitle": "• Dayanışma ve Şefkat Eylemleri", + "subTitle": "Dayanışma ve Şefkat Eylemleri", "description": "Gazze'ye yapılan bağışlar, sadece maddi yardım sağlamakla kalmaz, aynı zamanda dayanışma ve şefkat eylemlerini temsil eder. Sizin katkınız, zorlukları aşmaya çalışan bireylerin ve ailelerin hayatlarında önemli bir fark yaratabilir." }, { "id": 4, - "subTitle": "• Daha İyi Bir Gelecek İnşa Etme", + "subTitle": "Daha İyi Bir Gelecek İnşa Etme", "description": "Gazze'ye desteğinizi ve bağışlarınızı sunarak, bu bölgenin insanları için daha iyi bir gelecek inşa etmeye katkıda bulunursunuz. Cömertliğiniz, olumlu değişim yaratmaya, umutları restore etmeye ve ihtiyaç sahiplerinin yaşam kalitesini artırmaya yardımcı olabilir." } ] @@ -60,22 +60,22 @@ "content": [ { "id": 1, - "subTitle": "• İzole Alanların Zorlukları", + "subTitle": "İzole Alanların Zorlukları", "description": "İzole alanlar genellikle sağlık hizmetlerine, eğitime, temiz suya ve ekonomik fırsatlara erişimde sıkıntı yaşayabilirler. Bu alanlarda yaşayan insanlar genellikle temel ihtiyaçlarını karşılamakta zorluklarla karşılaşırlar ve bağışlar bir destek hattıdır." }, { "id": 2, - "subTitle": "• İhtiyaç Duyulan Bağış Türleri", + "subTitle": "İhtiyaç Duyulan Bağış Türleri", "description": "İzole alanlara yapılan bağışlar, finansal katkılar, tıbbi malzemeler, gıda yardımı ve altyapı geliştirme gibi çeşitli şekillerde olabilir. Sizin desteğiniz, dezavantajlı bölgelerde yaşayanların yaşam kalitesini artırabilir ve farkı kapatabilir." }, { "id": 3, - "subTitle": "• Merhamet ve İletişim Hareketleri", + "subTitle": "Merhamet ve İletişim Hareketleri", "description": "İzole alanlara yapılan bağışlar, sadece malî yardım sağlamaktan öte, merhamet ve iletişim hareketlerini simgeler. Cömertliğiniz topluluklara umut getirebilir, dayanışma duygusu yaratabilir ve olumlu değişimlere ilham verebilir." }, { "id": 4, - "subTitle": "• Dezavantajlı Toplulukları Güçlendirme", + "subTitle": "Dezavantajlı Toplulukları Güçlendirme", "description": "Destek ve bağışlarınızı izole alanlara sunarak, dezavantajlı toplulukları daha iyi bir gelecek inşa etmelerine güç verirsiniz. Katkılarınız, yoksulluk döngüsünü kırabilir, eğitim ve sağlık hizmetlerine erişimi iyileştirebilir ve öz-yeterliliği teşvik edebilir." } ] diff --git a/src/components/BlogsCard/__test__/__snapshots__/Blogs.test.js.snap b/src/components/BlogsCard/__test__/__snapshots__/Blogs.test.js.snap index 2c0c382..75eb78d 100644 --- a/src/components/BlogsCard/__test__/__snapshots__/Blogs.test.js.snap +++ b/src/components/BlogsCard/__test__/__snapshots__/Blogs.test.js.snap @@ -31,10 +31,14 @@ exports[`renders correctly 1`] = ` >

+ > + undefined.title +

+ > + undefined.description +

diff --git a/src/components/BlogsCard/index.jsx b/src/components/BlogsCard/index.jsx index f8ac70a..b769b1a 100644 --- a/src/components/BlogsCard/index.jsx +++ b/src/components/BlogsCard/index.jsx @@ -12,6 +12,7 @@ export default function BlogsCard({ createdAt, description, id, + blogKey, }) { const { i18n, t } = useTranslation(); const date = formatDate(createdAt, "MMM YYYY"); @@ -35,13 +36,13 @@ export default function BlogsCard({

- {title} + {t(`blogs:${blogKey}:title`)}

- {description} + {t(`blogs:${blogKey}:description`)}

{date} diff --git a/src/components/LandingPage/StatisticsSection/__test__/__snapshots__/StatisticsSection.test.js.snap b/src/components/LandingPage/StatisticsSection/__test__/__snapshots__/StatisticsSection.test.js.snap index 72193e7..e1b53ee 100644 --- a/src/components/LandingPage/StatisticsSection/__test__/__snapshots__/StatisticsSection.test.js.snap +++ b/src/components/LandingPage/StatisticsSection/__test__/__snapshots__/StatisticsSection.test.js.snap @@ -30,6 +30,7 @@ exports[`renders correctly 1`] = `
+
{children}
); diff --git a/src/pages/blogs/[blogId].jsx b/src/pages/blogs/[blogId].jsx index 4610715..2b26751 100644 --- a/src/pages/blogs/[blogId].jsx +++ b/src/pages/blogs/[blogId].jsx @@ -1,4 +1,5 @@ import Image from "next/image"; +import { withTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; import { IoCalendarOutline } from "react-icons/io5"; @@ -10,17 +11,20 @@ import { formatDate } from "@/lib/helpers"; import Container from "@/components/container"; import PageCover from "@/components/PageCover"; -function BlogDetails({ blog, user }) { +function BlogDetails({ blog, user, t, locale }) { const date = formatDate(blog?.createdAt); return ( <> - + {/* Author */}
@@ -44,18 +48,22 @@ function BlogDetails({ blog, user }) {
{/* blog header */}
-

{blog.title}

+

+ {t(`blogs:${blog.blogKey}:title`)} +

- {blog.description} + {t(`blogs:${blog.blogKey}:description`)}

{/* blog info */}
{blog.content?.map((section) => (
-

• {section.subTitle}

+

+ • {t(`blogs:${blog.blogKey}:content:${section.id}:subTitle`)} +

- {section.description} + {t(`blogs:${blog.blogKey}:content:${section.id}:description`)}

))} @@ -65,7 +73,7 @@ function BlogDetails({ blog, user }) { ); } -export default BlogDetails; +export default withTranslation(["blogs"])(BlogDetails); export async function getStaticPaths({ locales }) { const blogs = await fetchCollection("blogs"); @@ -89,9 +97,10 @@ export async function getStaticProps({ params, locale }) { const user = await fetchUserInfo(blog.uid); return { props: { - ...(await serverSideTranslations(locale, ["common"])), + ...(await serverSideTranslations(locale, ["common", "blogs"])), blog, user, + locale, }, revalidate: 10, }; diff --git a/src/pages/blogs/index.jsx b/src/pages/blogs/index.jsx index b8aa078..9bfd808 100644 --- a/src/pages/blogs/index.jsx +++ b/src/pages/blogs/index.jsx @@ -1,6 +1,5 @@ import { motion } from "framer-motion"; import Image from "next/image"; -import { useTranslation } from "next-i18next"; import { withTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; @@ -8,9 +7,7 @@ import { fetchCollection } from "@/lib/fetchCollection"; import BlogsCard from "@/components/BlogsCard"; -function BlogsPage({ blogs }) { - const { t } = useTranslation(); - +function BlogsPage({ blogs, t }) { return ( <>
@@ -67,7 +64,7 @@ function BlogsPage({ blogs }) { ); } -export default withTranslation("blogs")(BlogsPage); +export default withTranslation(["blogs"])(BlogsPage); export async function getStaticProps({ locale }) { const blogs = await fetchCollection("blogs"); From 94ff76ad558aa6827f68dba16c9298d227e1b925 Mon Sep 17 00:00:00 2001 From: Rahem Date: Fri, 24 Nov 2023 02:08:49 +0100 Subject: [PATCH 6/9] feat(blogs page): add translated blogs content add translated blogs content #107 --- public/locales/ar/blogs.json | 180 +++++++++++++++-- public/locales/en/blogs.json | 156 +++++++++++++++ public/locales/fr/blogs.json | 180 +++++++++++++++-- public/locales/tr/blogs.json | 182 ++++++++++++++++-- .../LandingPage/BlogsSection/BlogsSection.jsx | 2 +- 5 files changed, 662 insertions(+), 38 deletions(-) diff --git a/public/locales/ar/blogs.json b/public/locales/ar/blogs.json index 28af20d..a0b61dd 100644 --- a/public/locales/ar/blogs.json +++ b/public/locales/ar/blogs.json @@ -31,53 +31,209 @@ "donationsInGaza": { "title": "التبرعات في غزة: دعم الأشخاص المحتاجين", "description": "واجه أهل غزة العديد من التحديات، ويمكن أن يكون دعمك فارقًا كبيرًا في حياتهم. تساعد التبرعات لغزة في توفير المساعدات الأساسية والإغاثة والأمل لأولئك الذين هم في حاجة.", - "content": [ - { + "content": { + "1": { "id": 1, "subTitle": "الأزمة الإنسانية في غزة", "description": "عانت غزة من تحديات مستمرة، بما في ذلك الصراعات السياسية والصعوبات الاقتصادية. غالبًا ما يواجه أهل غزة نقصًا في الاحتياجات الأساسية، وتلعب التبرعات دورًا حيويًا في تلبية احتياجاتهم الفورية وطويلة الأمد." }, - { + "2": { "id": 2, "subTitle": "أنواع التبرعات المطلوبة", "description": "يمكن أن تتخذ التبرعات لغزة أشكالًا مختلفة، بما في ذلك المساهمات المالية والإمدادات الطبية والمساعدات الغذائية والموارد التعليمية. يمكن أن يوفر دعمك الإغاثة للعائلات، ودعم المرافق الصحية، وتوفير فرص التعليم والتمكين." }, - { + "3": { "id": 3, "subTitle": "أفعال التضامن والتعاطف", "description": "ليست التبرعات لغزة فقط عن تقديم المساعدة المادية؛ بل تمثل أيضًا أفعالًا للتضامن والتعاطف. يمكن أن يحدث تبرعك فارقًا كبيرًا في حياة الأفراد والعائلات الذين يسعون للتغلب على الصعوبات." }, - { + "4": { "id": 4, "subTitle": "بناء مستقبل أفضل", "description": "من خلال تقديم دعمك وتبرعاتك لغزة، تُسهم في بناء مستقبل أفضل لأهل هذه المنطقة. سخاءك يمكن أن يساهم في خلق تغيير إيجابي، واستعادة الأمل، وتحسين جودة الحياة لأولئك الذين هم في حاجة." } - ] + } }, "isolatedAreasDonations": { "title": "التبرعات في المناطق المعزولة: إحضار الأمل إلى الأشخاص الذين يعانون", "description": "غالبًا ما تواجه المناطق المعزولة والبعيدة تحديات فريدة، بدءًا من الوصول المحدود إلى الخدمات الأساسية إلى الصعوبات الاقتصادية. يمكن أن تحدث التبرعات إلى المناطق المعزولة فارقًا كبيرًا في حياة أولئك الذين يعانون والذين في حاجة إلى الدعم.", - "content": [ - { + "content": { + "1": { "id": 1, "subTitle": "تحديات المناطق المعزولة", "description": "قد تفتقر المناطق المعزولة إلى الوصول إلى الرعاية الصحية والتعليم والمياه النظيفة وفرص العمل. غالبًا ما يواجه الأشخاص الذين يعيشون في مثل هذه المناطق صعوبات في تلبية احتياجاتهم الأساسية، والتبرعات تمثل خط النجاة للدعم." }, - { + "2": { "id": 2, "subTitle": "أنواع التبرعات المطلوبة", "description": "يمكن أن تأخذ التبرعات إلى المناطق المعزولة أشكالًا مختلفة، بما في ذلك المساهمات المالية والإمدادات الطبية والمساعدات الغذائية وتطوير البنية التحتية. يمكن أن يساعد دعمك في سد الفجوة وتحسين جودة حياة أولئك في المناطق التي تحتاج إلى الدعم." }, - { + "3": { "id": 3, "subTitle": "أفعال الرحمة والتواصل", "description": "تتجاوز التبرعات إلى المناطق المعزولة تقديم المساعدة المادية؛ بل ترمز إلى أفعال الرحمة والتواصل. إن سخاءك يمكن أن يجلب الأمل إلى المجتمعات، ويخلق شعورًا بالتضامن، ويلهم التغيير الإيجابي." }, - { + "4": { "id": 4, "subTitle": "تمكين المجتمعات التي تعاني من الإهمال", "description": "من خلال تقديم الدعم والتبرعات إلى المناطق المعزولة، تمكن المجتمعات التي تعاني من الإهمال من بناء مستقبل أفضل. يمكن أن تساهم مساهماتك في كسر دائرة الفقر، وتحسين الوصول إلى التعليم والرعاية الصحية، وتعزيز الاكتفاء الذاتي." } - ] + } + }, + "donationsinEidalAdha": { + "title": "تبرعات في عيد الأضحى: عيد الأضحى وفن العطاء", + "description": "عيد الأضحى، المعروف أيضًا باسم 'عيد الأضحى'، هو واحد من أهم العيدين الإسلاميين الذي يحتفل به المسلمون في جميع أنحاء العالم. يحتفل بذكرى استعداد النبي إبراهيم (إبراهام) للتضحية بابنه تعبيرًا عن الطاعة لله. وراء الطقوس الرمزية والولائم، يبرز عيد الأضحى قيم التضحية والعطاء.", + "content": { + "1": { + "id": 1, + "subTitle": " أهمية عيد الأضحى", + "description": "عيد الأضحى هو وقت للتأمل والتفاني واللاانانية. يجتمع المسلمون للصلاة ومشاركة الوجبات وقضاء وقت مع أحبائهم. ومع ذلك، يكمن محور هذا العيد في فعل التضحية، الذي يرمز إلى الطاعة والخضوع لله." + }, + "2": { + "id": 2, + "subTitle": " التضحية", + "description": "أحد أبرز العادات خلال عيد الأضحى هو التضحية بحيوان مثل الخروف أو الماعز أو البقرة أو الجمل. يتم تنفيذ هذا الفعل لمتابعة مثال النبي إبراهيم ومشاركة اللحم مع الفقراء. إنه إيمان بالتفاني وتذكير بأهمية إعطاء المجتمع." + }, + "3": { + "id": 3, + "subTitle": " توزيع اللحوم على المحتاجين", + "description": "غالبًا ما يتم تقسيم اللحوم إلى ثلاثة أجزاء: يُعطى ثلثها للفقراء، وثلثها للأقارب والأصدقاء، ويُحتفظ بثلثها لأسرة الشخص الذي قام بالتضحية. تضمن هذه الممارسة أن يتمتع الأقل حظًا بالاحتفال ويتمتع بوجبة تغذية لذيذة." + }, + "4": { + "id": 4, + "subTitle": " روح العطاء", + "description": "عيد الأضحى يتجاوز مجرد فعل التضحية، بل يعزز روح العطاء والسخاء. يُشجع المسلمون على التبرعات ومساعدة المحتاجين ودعم مختلف القضايا الإنسانية. إنه وقت لتمد يد المساعدة لأولئك الذين يعانون ويحتاجون." + } + } + }, + "donationsinRamadan": { + "title": "تبرعات في رمضان: شهرالعطاء والرحمة", + "description": "رمضان هو شهر الصيام والصلاة والتأمل للمسلمين في جميع أنحاء العالم. إنه أيضًا وقت للكرم المتزايد وإعطاء العائد إلى المجتمع.", + "content": { + "1": { + "id": 1, + "subTitle": " أهمية العطاء في رمضان", + "description": "تفتقر المناطق النائية إلى الوصول إلى الرعاية الصحية والتعليم والمياه النقية والفرص الاقتصادية. غالبًا ما تواجه الأشخاص الذين يعيشون في مثل هذه المناطق صعوبات في تلبية احتياجاتهم الأساسية، والتبرعات تكون عونًا لدعمهم." + }, + "2": { + "id": 2, + "subTitle": " أعمال الخير والتعاطف", + "description": "الصيام خلال شهر رمضان يعزز التعاطف مع الأقل حظًا. إنه يوفر تجربة مباشرة للجوع والعطش، مما يزرع إحساسًا عميقًا بالرحمة. تصبح التبرعات وسيلة للتخفيف من معاناة أولئك الذين في حاجة، مظهرًا للتضامن مع المجتمع العالمي." + }, + "3": { + "id": 3, + "subTitle": " تضاعف الأجور من خلال العطاء", + "description": "يعتقد أن رمضان هو شهر من البركات والأجور المضاعفة. إنه وقت يقال فيه أن الأجور للأعمال الصالحة، بما في ذلك التبرعات، تتضاعف بشكل كبير. تعتبر هذه الاعتقادات حافزًا قويًا للأفراد ليكونوا أكثر سخاء وعطاءًا، علمًا بأن مساهماتهم ستسفر عن فوائد روحية أكبر." + }, + "4": { + "id": 4, + "subTitle": " تعزيز روابط المجتمع", + "description": "تخلق التبرعات في رمضان إحساسًا بالوحدة والتلاحم داخل المجتمع الإسلامي. إنها تشجع الأفراد على النظر إلى ما هو أبعد من احتياجاتهم الشخصية وتقديم يد المساعدة لأولئك الذين قد يواجهون صعوبات. تعزز الروح الجماعية و روابط الأخوة." + } + } + }, + "donationstoFoodBanks": { + "title": "تبرعات لبنك الطعام: محاربة الجوع", + "description": "الجوع قضية يواجهها العديد من الأفراد والعائلات. تبرعات لبنك الطعام هي مصدر حيوي للتغذية والدعم، تعمل على التخفيف من الجوع وتحسين حياة الأشخاص الذين هم في الحاجة.", + "content": { + "1": { + "id": 1, + "subTitle": " واقع الجوع", + "description": "الجوع يؤثر على ملايين الأشخاص غالبًا بسبب الصعوبات الاقتصادية وعدم الأمان الغذائي. تهدف تبرعات لمصارف الطعام إلى معالجة احتياجات الجوع الفورية وضمان أن يكون للأفراد وصول إلى وجبات غذائية غنية." + }, + "2": { + "id": 2, + "subTitle": " دعم المجتمعات والصحة", + "description": "التبرع لبنك الطعام يتجاوز توفير الطعام؛ إنه يدعم المجتمعات ويعزز الصحة. تلعب هذه التبرعات دورًا حيويًا في معالجة الجوع وتحسين الرفاهية العامة للأفراد." + }, + "3": { + "id": 3, + "subTitle": " تحقيق فارق في مكافحة الجوع", + "description": "من خلال المساهمة في بنك الطعام، أنت تحقق فعليا فارقا في مكافحة الجوع. دعمك يساعد في التأكد من أن لا أحد يذهب إلى الفراش جائعًا وأن الأفراد والعائلات يتلقون التغذية التي يحتاجونها." + }, + "4": { + "id": 4, + "subTitle": " توفير الطعام الغني بالعناصر الغذائية والمساعدة", + "description": "تتضمن تبرعات لمصارف الطعام مجموعة متنوعة من المواد الغذائية، من المواد الغير قابلة للفساد إلى المنتجات الطازجة. تساعد هذه التبرعات في التأكد من أن للأفراد والعائلات وصول إلى وجبات غذائية غنية ومواد غذائية أساسية." + } + } + }, + "donationofSchoolTools": { + "title": "تبرع بأدوات مدرسية لأطفال اليتامة: تمكين العقول الصغيرة", + "description": "التعليم هو بوابة إلى مستقبل أفضل، وتبرع بأدوات مدرسية لأطفال اليتامة يلعب دوراً حيوياً في تمكين هذه العقول الصغيرة بالموارد التي يحتاجونها للوصول إلى تعليم ذو جودة. تساهم تبرعاتك في توفير أدوات المعرفة وفتح أبواب لغدٍ أفضل.", + "content": { + "1": { + "id": 1, + "subTitle": " القوة التحولية للتعليم", + "description": "التعليم هو قوة قوية يمكن أن تغير حياة الأفراد، وتوفير المعرفة والمهارات والفرص. تبرعات بأدوات مدرسية تمكن أطفال اليتم من كسر الحواجز وتحقيق إمكاناتهم الكاملة." + }, + "2": { + "id": 2, + "subTitle": " تمكين الشباب اليتم", + "description": "تبرعات بأدوات مدرسية تمكن الشباب اليتم من تحقيق أحلامهم وبناء مستقبل أفضل. هذه الأدوات تفتح أبواباً لآفاق جديدة وتمكن هؤلاء الأطفال من التغلب على التحديات من خلال التعليم." + }, + "3": { + "id": 3, + "subTitle": " توفير اللوازم المدرسية الأساسية", + "description": "تبرعات بأدوات مدرسية تضمن أن أطفال اليتم لديهم وصول إلى اللوازم التعليمية الأساسية. تقدم هذه التبرعات الكتب والقرطاسية ومواد التعلم لمساعدة هذه العقول الصغيرة في رحلتها التعليمية." + }, + "4": { + "id": 4, + "subTitle": " صنع فارق في التعلم والحياة", + "description": "من خلال التبرع بأدوات مدرسية لأطفال اليتم، أنت تصنع فارقاً في تعلمهم وفي حياة أولئك الذين يطمحون للتعلم. دعمك يضمن أن المعرفة متاحة حتى في الصعوبات، وأن الأحلام يمكن تحقيقها من خلال التعليم." + } + } + }, + "donationsofMedicalEquipment": { + "title": "تبرعات بالمعدات الطبية واللوازم: إنقاذ الأرواح", + "description": "الوصول إلى الرعاية الصحية ذات جودة هو حق أساسي للإنسان. تبرعات بالمعدات الطبية واللوازم تعتبر خط الحياة للمرافق والمنظمات الصحية، مضمونة أن يمكنها تقديم رعاية حيوية وإنقاذ الأرواح.", + "content": { + "1": { + "id": 1, + "subTitle": " الدور الحيوي للرعاية الصحية", + "description": "الوصول إلى الرعاية الصحية أمر حيوي للحفاظ على الصحة والعافية. تبرعات بالمعدات الطبية واللوازم تدعم العمل الأساسي للمحترفين في مجال الرعاية الصحية وتضمن أن المجتمعات لديها وصولًا إلى علاجات ورعاية تساهم في إنقاذ الأرواح." + }, + "2": { + "id": 2, + "subTitle": " توفير لوازم طبية حيوية", + "description": "تتضمن تبرعات بالمعدات الطبية واللوازم عناصر مثل أجهزة التنفس الاصطناعي، والأدوات الجراحية، ومعدات الحماية الشخصية (PPE)، والأدوية، وغيرها. هذه اللوازم ضرورية للتشخيص والعلاج ورعاية المرضى." + }, + "3": { + "id": 3, + "subTitle": " دعم المساواة في الرعاية الصحية", + "description": "تعزز تبرعات بالمعدات الطبية المساواة في الرعاية الصحية من خلال ضمان أن جميع الأفراد، بغض النظر عن وضعهم الاقتصادي أو موقعهم، لديهم وصول إلى الموارد الطبية التي يحتاجون إليها. إنها تساعد في تقليل الفوارق في مجال الرعاية الصحية وتحسين نتائج الصحة." + }, + "4": { + "id": 4, + "subTitle": " إنقاذ الأرواح وتحسين الصحة", + "description": "من خلال التبرع بالمعدات الطبية واللوازم، أنت تلعب دورًا حيويًا في إنقاذ الأرواح وتحسين صحة الأفراد والمجتمعات. دعمك يوفر الأمل والشفاء وفرصة لمستقبل أكثر صحة." + } + } + }, + "donationsforEarthquakeRelief": { + "title": "تبرعات لإغاثة الزلازل: إعادة بناء الحياة بعد الكارثة", + "description": "يمكن أن تكون الزلازل لها تأثيرات تدميرية على المجتمعات، مما يترك الكثيرين بدون منازل وفي حاجة إلى مساعدة عاجلة. تبرعات لإغاثة الزلازل هي حبل نجاة للمتأثرين، مساعدة في إعادة بناء الحياة والمجتمعات بعد حدوث الكارثة.", + "content": { + "1": { + "id": 1, + "subTitle": " تدمير الزلازل", + "description": "الزلازل هي كوارث طبيعية يمكن أن تؤدي إلى دمار واسع النطاق، مما يؤدي إلى انهيار المنازل وترك العائلات في حالة من الضيق. بعد الزلزال، يتطلب الأمر تقديم المساعدة والدعم العاجل." + }, + "2": { + "id": 2, + "subTitle": " الإغاثة الطارئة وإعادة البناء", + "description": "تشمل تبرعات لإغاثة الزلازل المأوى الطارئ والمساعدة الطبية والمساعدة في إعادة بناء المنازل والبنية التحتية. هذه المساهمات ضرورية لعمليات الاستعادة وإعادة الإعمار." + }, + "3": { + "id": 3, + "subTitle": " التضامن العالمي في أوقات الأزمات", + "description": "يمتد الدعم لإغاثة الزلازل على مستوى عالمي، حيث تتحد المجتمعات والمنظمات لتقديم المساعدة لأولئك الذين في حاجة. تلعب تبرعاتك دورًا هامًا في إظهار التضامن العالمي والرفق." + }, + "4": { + "id": 4, + "subTitle": " تحقيق تأثير إيجابي في عملية الاستعادة", + "description": "من خلال التبرع لجهود إغاثة الزلازل، تحقق تأثيرًا إيجابيًا في عملية استعادة المجتمعات وحياة الأفراد المتأثرين. دعمك يقدم الأمل والشفاء وفرصة لمستقبل أكثر إشراقًا بعد الكارثة." + } + } } } diff --git a/public/locales/en/blogs.json b/public/locales/en/blogs.json index b871732..392ac0b 100644 --- a/public/locales/en/blogs.json +++ b/public/locales/en/blogs.json @@ -75,5 +75,161 @@ "description": "By offering your support and donations to isolated areas, you empower underserved communities to build a better future. Your contributions can help break the cycle of poverty, improve access to education and healthcare, and promote self-sufficiency." } } + }, + "donationsinEidalAdha": { + "title": "Donations of Eid al-Adha: Festival of Sacrifice and Aid", + "description": "Eid al-Adha, also known as the 'Festival of Sacrifice and Aid,' is one of the most significant Islamic celebrations observed by Muslims worldwide. This festival commemorates the willingness of the Prophet Ibrahim to sacrifice his son in obedience to God. Beyond symbolic rituals and feasts, Eid al-Adha emphasizes the values of sacrifice and benevolence.", + "content": { + "1": { + "id": 1, + "subTitle": "Meaning of Eid al-Adha", + "description": "Eid al-Adha is a time for reflection, worship, and devotion. Muslims gather to pray, share meals, and spend time with loved ones. However, the central theme of this festival is the act of sacrifice, symbolizing obedience to God." + }, + "2": { + "id": 2, + "subTitle": "Distribution to the Needy", + "description": "Traditionally, the meat is divided into three parts: one-third is allocated to the needy, one-third to extended family and friends, and one-third is retained for the family's sustenance. This practice allows the less fortunate to participate in the celebration and enjoy a nourishing meal." + }, + "3": { + "id": 3, + "subTitle": "Act of Sacrifice", + "description": "One of the most significant rituals of Eid al-Adha is the sacrifice of a sheep, goat, cow, or camel. This act of sacrifice aims to follow the example of the Prophet Ibrahim and share the meat with those in need. It is a gesture reminding of the importance of sacrifice and contribution to the community." + }, + "4": { + "id": 4, + "subTitle": "Spirit of Benevolence", + "description": "Eid al-Adha promotes not only the act of sacrifice but also the spirit of benevolence and generosity. Muslims are encouraged to make donations, help the needy, and support various humanitarian causes. It is a time to lend a helping hand to those struggling and in need of assistance." + } + } + }, + "donationsinRamadan": { + "title": "Donations in Ramadan: Time for Giving and Compassion", + "description": "Ramadan is a month of fasting, prayer, and reflection for Muslims worldwide. It is also a time of increased generosity and giving back to the community.", + "content": { + "1": { + "id": 1, + "subTitle": "The Significance of Giving in Ramadan", + "description": "Isolated areas with limited access to healthcare, education, clean water, and economic opportunities may struggle to meet their basic needs. Donations in such areas become a lifeline, providing support to those in need." + }, + "2": { + "id": 2, + "subTitle": "Acts of Charity and Empathy", + "description": "Fasting during Ramadan fosters empathy towards the less fortunate. It allows for a firsthand experience of hunger and thirst, instilling a profound sense of compassion. Donations become a way to alleviate the suffering of those in need, demonstrating solidarity with the global community." + }, + "3": { + "id": 3, + "subTitle": "Multiplying Rewards through Donations", + "description": "Ramadan is believed to be a month of multiplied blessings and rewards. It is said to be a time when the benefits of good deeds, including donations, are greatly multiplied. This belief serves as a powerful motivator, encouraging individuals to be more generous and charitable, knowing that their contributions will yield greater spiritual benefits." + }, + "4": { + "id": 4, + "subTitle": "Strengthening Community Bonds", + "description": "Donations made during Ramadan create a sense of unity and solidarity within the Muslim community. It encourages individuals to look beyond their own needs and extend a helping hand to those facing challenges. This sense of community fosters stronger bonds of brotherhood and sisterhood." + } + } + }, + "donationstoFoodBanks": { + "title": "Donations to Food Banks: Combating Hunger", + "description": "Hunger is an urgent problem faced by many individuals and families. Donations to food banks serve as a vital resource for nutrition and support, aiming to alleviate hunger and improve the lives of those in need.", + "content": { + "1": { + "id": 1, + "subTitle": "Reality of Hunger", + "description": "Hunger often affects millions of people due to economic hardships and food insecurity. Donations to food banks aim to address the urgent needs of hunger and facilitate access to nutritious meals." + }, + "2": { + "id": 2, + "subTitle": "Supporting Communities and Health", + "description": "Donating to food banks goes beyond providing food; it also supports communities and encourages better health. These donations play a crucial role in the fight against hunger and contribute to improving the overall well-being of individuals." + }, + "3": { + "id": 3, + "subTitle": "Making an Impact in the Fight Against Hunger", + "description": "By contributing to food banks, you actively make an impact in the fight against hunger. Your support ensures that no one suffers from hunger, and it helps individuals and families obtain the necessary nutrition." + }, + "4": { + "id": 4, + "subTitle": "Providing Nutritious Food and Assistance", + "description": "Donations to food banks include a variety of foods, from non-perishable items to fresh produce. These donations help individuals and families access nutritious meals and essential food items." + } + } + }, + "donationofSchoolTools": { + "title": "Donation of School Supplies for Orphaned Children: Strengthening Young Minds", + "description": "Education is a gateway to a brighter future, and donations of school supplies for orphaned children play a crucial role in empowering these young minds with the necessary resources to access quality education. Your contributions provide tools of knowledge and open doors to a better tomorrow.", + "content": { + "1": { + "id": 1, + "subTitle": "The Transformative Power of Education", + "description": "Education is a powerful force that can change lives by providing knowledge, skills, and opportunities. Donations of school supplies help orphaned children overcome obstacles and develop their potential." + }, + "2": { + "id": 2, + "subTitle": "Empowering Young Orphans", + "description": "Donations of school supplies give young orphans the power to pursue their dreams and build a better future. These tools enable these children to overcome challenges through education and open new possibilities." + }, + "3": { + "id": 3, + "subTitle": "Providing Basic School Supplies", + "description": "Donations of school supplies ensure orphaned children's access to basic educational materials. These contributions provide these young minds with books, stationery supplies, and learning materials throughout their educational journey." + }, + "4": { + "id": 4, + "subTitle": "Contributing to Learning and Life", + "description": "By making a donation of school supplies for orphaned children, you add value to their learning and life. Your support ensures that knowledge is accessible even in the face of challenges and that dreams can become a reality through education." + } + } + }, + "donationsofMedicalEquipment": { + "title": "Donations of Medical Equipment: Saving Lives", + "description": "Access to quality healthcare is a fundamental right. Donations of medical equipment play a crucial role as a lifeline for healthcare facilities, ensuring critical care and saving lives.", + "content": { + "1": { + "id": 1, + "subTitle": "Vital Role of Healthcare Services", + "description": "Access to healthcare services is crucial for maintaining health and well-being. Donations of medical equipment support the essential work of healthcare professionals and ensure communities' access to vital treatments and life-saving care." + }, + "2": { + "id": 2, + "subTitle": "Supply of Critical Medical Equipment", + "description": "Donations of medical equipment include items such as ventilators, surgical instruments, personal protective equipment (PPE), medications, and much more. These materials are essential for the diagnosis, treatment, and care of patients." + }, + "3": { + "id": 3, + "subTitle": "Supporting Health Equity", + "description": "Donations of medical equipment promote health equity by ensuring access to necessary medical resources, regardless of economic or geographic status. This contributes to reducing health inequalities and improving health outcomes." + }, + "4": { + "id": 4, + "subTitle": "Saving Lives and Improving Health", + "description": "By making donations of medical equipment, you play a crucial role in saving lives and improving the health of individuals and communities. Your support offers a chance for hope, healing, and a healthier future." + } + } + }, + "donationsforEarthquakeRelief": { + "title": "Donations for Earthquake Relief: Rebuilding Lives", + "description": "Earthquakes can have devastating effects on communities, leaving many people homeless and in need of emergency assistance. Donations for earthquake relief serve as a lifeline for those affected, helping to rebuild lives and communities after a disaster.", + "content": { + "1": { + "id": 1, + "subTitle": "Destructiveness of Earthquakes", + "description": "Earthquakes are natural disasters that can destroy homes and put families in difficult situations. After an earthquake, emergency aid and support are necessary." + }, + "2": { + "id": 2, + "subTitle": "Emergency Relief and Reconstruction", + "description": "Donations for earthquake relief include emergency shelters, medical aid, and assistance for rebuilding homes and infrastructure. These contributions are crucial for the healing and rebuilding process." + }, + "3": { + "id": 3, + "subTitle": "Global Solidarity in Times of Crisis", + "description": "Support after earthquakes extends globally, bringing together communities and organizations to assist those in need. Your donations play a significant role in showing global solidarity and compassion." + }, + "4": { + "id": 4, + "subTitle": "Creating a Positive Impact in Healing", + "description": "By making donations for earthquake relief, you contribute to the healing of communities and have a positive impact on the lives of those affected. Your support provides a glimmer of hope, healing, and an opportunity for a brighter future after the catastrophe." + } + } } } diff --git a/public/locales/fr/blogs.json b/public/locales/fr/blogs.json index 6a0ccdb..8e2524e 100644 --- a/public/locales/fr/blogs.json +++ b/public/locales/fr/blogs.json @@ -31,53 +31,209 @@ "donationsInGaza": { "title": "Dons à Gaza : Soutien aux personnes dans le besoin", "description": "Le peuple de Gaza a fait face à de nombreux défis, et votre soutien peut faire une différence significative dans leurs vies. Les dons à Gaza aident à fournir une aide essentielle, un soulagement et de l'espoir à ceux qui en ont besoin.", - "content": [ - { + "content": { + "1": { "id": 1, "subTitle": "La crise humanitaire à Gaza", "description": "Gaza a connu des défis persistants, notamment des conflits politiques et des difficultés économiques. Les habitants de Gaza font souvent face à des pénuries de biens de première nécessité, et les dons jouent un rôle vital pour répondre à leurs besoins immédiats et à long terme." }, - { + "2": { "id": 2, "subTitle": "Types de dons nécessaires", "description": "Les dons à Gaza peuvent prendre différentes formes, notamment des contributions financières, des fournitures médicales, de l'aide alimentaire et des ressources éducatives. Votre soutien peut fournir un soulagement aux familles, soutenir les établissements de santé et offrir des opportunités d'éducation et d'autonomisation." }, - { + "3": { "id": 3, "subTitle": "Gestes de solidarité et de compassion", "description": "Les dons à Gaza ne concernent pas seulement la fourniture d'une aide matérielle ; ils représentent également des gestes de solidarité et de compassion. Votre contribution peut faire une différence significative dans la vie des individus et des familles qui s'efforcent de surmonter l'adversité." }, - { + "4": { "id": 4, "subTitle": "Construire un avenir meilleur", "description": "En offrant votre soutien et vos dons à Gaza, vous contribuez à construire un avenir meilleur pour les habitants de cette région. Votre générosité peut aider à créer un changement positif, à restaurer l'espoir et à améliorer la qualité de vie de ceux dans le besoin." } - ] + } }, "isolatedAreasDonations": { "title": "Dons dans les Zones Isolées : Apporter de l'Espoir aux Défavorisés", "description": "Les zones isolées et reculées sont souvent confrontées à des défis uniques, allant de l'accès limité aux services essentiels aux difficultés économiques. Les dons aux zones isolées peuvent faire une différence significative dans la vie de ceux qui sont défavorisés et ont besoin de soutien.", - "content": [ - { + "content": { + "1": { "id": 1, "subTitle": "Défis des Zones Isolées", "description": "Les zones isolées peuvent manquer d'accès aux soins de santé, à l'éducation, à l'eau potable et aux opportunités économiques. Les personnes vivant dans de telles zones rencontrent souvent des difficultés à satisfaire leurs besoins de base, et les dons sont une bouée de sauvetage pour les soutenir." }, - { + "2": { "id": 2, "subTitle": "Types de Dons Nécessaires", "description": "Les dons aux zones isolées peuvent prendre diverses formes, notamment des contributions financières, des fournitures médicales, de l'aide alimentaire et le développement d'infrastructures. Votre soutien peut aider à combler le fossé et à améliorer la qualité de vie de ceux qui vivent dans des régions défavorisées." }, - { + "3": { "id": 3, "subTitle": "Actes de Compassion et d'Engagement", "description": "Les dons aux zones isolées vont au-delà de la fourniture d'une assistance matérielle ; ils symbolisent des actes de compassion et d'engagement. Votre générosité peut apporter de l'espoir aux communautés, créer un sentiment de solidarité et inspirer des changements positifs." }, - { + "4": { "id": 4, "subTitle": "Autonomisation des Communautés Défavorisées", "description": "En offrant votre soutien et vos dons aux zones isolées, vous permettez aux communautés défavorisées de construire un avenir meilleur. Vos contributions peuvent aider à briser le cycle de la pauvreté, améliorer l'accès à l'éducation et aux soins de santé, et promouvoir l'autosuffisance." } - ] + } + }, + "donationsinEidalAdha": { + "title": "Dons de l'Aïd al-Adha : Festival du Sacrifice et de l'Aide", + "description": "L'Aïd al-Adha, également connu sous le nom de 'Festival du Sacrifice et de l'Aide', est l'une des fêtes islamiques les plus importantes célébrées par les musulmans du monde entier. Cette fête commémore la disposition du prophète Ibrahim à sacrifier son fils en obéissance à Dieu. Au-delà des rituels symboliques et des festins, l'Aïd al-Adha met en avant les valeurs de sacrifice et de bienfaisance.", + "content": { + "1": { + "id": 1, + "subTitle": "Signification de l'Aïd al-Adha", + "description": "L'Aïd al-Adha est un moment de réflexion, de culte et de dévouement. Les musulmans se réunissent pour prier, partager des repas et passer du temps avec leurs proches. Cependant, le thème central de cette fête est l'acte de sacrifice, symbolisant l'obéissance à Dieu." + }, + "2": { + "id": 2, + "subTitle": "Distribution aux Nécessiteux", + "description": "La viande est traditionnellement divisée en trois parties : un tiers est destiné aux nécessiteux, un tiers à la famille élargie et aux amis, et un tiers est conservé pour la subsistance de la famille. Cette pratique permet aux moins fortunés de participer à la célébration et de savourer un repas nourrissant." + }, + "3": { + "id": 3, + "subTitle": "Acte de Sacrifice", + "description": "L'un des rituels les plus marquants de l'Aïd al-Adha est le sacrifice d'un mouton, d'une chèvre, d'une vache ou d'un chameau. Cet acte de sacrifice vise à suivre l'exemple du prophète Ibrahim et à partager la viande avec ceux dans le besoin. C'est un geste rappelant l'importance du sacrifice et de la contribution à la communauté." + }, + "4": { + "id": 4, + "subTitle": "Esprit de Bienfaisance", + "description": "L'Aïd al-Adha promeut non seulement l'acte de sacrifice, mais aussi l'esprit de bienfaisance et de générosité. Les musulmans sont encouragés à faire des dons, à aider les nécessiteux et à soutenir diverses causes humanitaires. C'est le moment d'offrir une main secourable à ceux qui luttent et ont besoin d'aide." + } + } + }, + "donationsinRamadan": { + "title": "Dons pendant le Ramadan : Temps de Don et de Compassion", + "description": "Le Ramadan est le mois du jeûne, de la prière et de la réflexion pour les musulmans du monde entier. C'est également un moment de générosité croissante et de don à la communauté.", + "content": { + "1": { + "id": 1, + "subTitle": "Importance du Don pendant le Ramadan", + "description": "Les zones isolées peuvent avoir un accès limité aux services de santé, à l'éducation, à l'eau potable et aux opportunités économiques. Les personnes vivant dans de telles zones ont souvent du mal à répondre à leurs besoins fondamentaux, et les dons deviennent une bouée de sauvetage pour les soutenir." + }, + "2": { + "id": 2, + "subTitle": "Actions de Bienfaisance et d'Empathie", + "description": "Le jeûne pendant le Ramadan développe l'empathie envers ceux qui sont moins chanceux. Cela permet une expérience directe de la faim et de la soif, inculquant un profond sentiment de compassion. Les dons deviennent un moyen d'atténuer la souffrance des nécessiteux et de montrer une solidarité avec la communauté mondiale." + }, + "3": { + "id": 3, + "subTitle": "Multiplier les Récompenses avec les Dons", + "description": "On croit que le Ramadan est le mois de la multiplication des bénédictions et des récompenses. On dit que c'est une période où les bonnes actions, y compris les dons, sont récompensées de manière multipliée. Cette croyance sert de puissant motivateur encourageant les individus à être plus généreux et bienveillants, car ils savent que leurs contributions apporteront des avantages spirituels plus importants." + }, + "4": { + "id": 4, + "subTitle": "Renforcer les Liens Communautaires", + "description": "Les dons faits pendant le Ramadan créent un sentiment d'unité au sein de la communauté musulmane. Cela encourage les individus à regarder au-delà de leurs propres besoins et à tendre la main à ceux qui font face à des difficultés. Cet esprit communautaire renforce les liens de fraternité et de sororité." + } + } + }, + "donationstoFoodBanks": { + "title": "Dons aux banques alimentaires : Lutte contre la faim", + "description": "La faim est un problème urgent auquel de nombreux individus et familles sont confrontés. Les dons aux banques alimentaires constituent une ressource vitale pour la nutrition et le soutien, visant à soulager la faim et à améliorer la vie des personnes dans le besoin.", + "content": { + "1": { + "id": 1, + "subTitle": "Réalité de la faim", + "description": "La faim affecte souvent des millions de personnes en raison de difficultés économiques et d'insécurité alimentaire. Les dons aux banques alimentaires visent à répondre aux besoins urgents de la faim et à faciliter l'accès à des repas nutritifs." + }, + "2": { + "id": 2, + "subTitle": "Soutien aux communautés et à la santé", + "description": "Faire un don aux banques alimentaires ne se limite pas à fournir de la nourriture, cela soutient également les communautés et encourage une meilleure santé. Ces dons jouent un rôle crucial dans la lutte contre la faim et contribuent à améliorer le bien-être général des individus." + }, + "3": { + "id": 3, + "subTitle": "Créer un impact dans la lutte contre la faim", + "description": "En contribuant aux banques alimentaires, vous créez un impact actif dans la lutte contre la faim. Votre soutien assure que personne ne souffre de la faim, et il aide les individus et les familles à obtenir la nutrition nécessaire." + }, + "4": { + "id": 4, + "subTitle": "Fournir des aliments nutritifs et de l'aide", + "description": "Les dons aux banques alimentaires comprennent une variété d'aliments, des produits non périssables aux produits frais. Ces dons aident les individus et les familles à accéder à des repas nutritifs et à des produits alimentaires de base." + } + } + }, + "donationofSchoolTools": { + "title": "Don de fournitures scolaires pour les enfants orphelins : Renforcer les jeunes esprits", + "description": "L'éducation est une porte vers un avenir plus lumineux, et les dons de fournitures scolaires pour les enfants orphelins jouent un rôle crucial en renforçant ces jeunes esprits avec les ressources nécessaires pour accéder à une éducation de qualité. Vos contributions fournissent des outils de connaissance et ouvrent les portes à un lendemain meilleur.", + "content": { + "1": { + "id": 1, + "subTitle": "La puissance transformative de l'éducation", + "description": "L'éducation est une force puissante qui peut changer des vies, en fournissant des connaissances, des compétences et des opportunités. Les dons de fournitures scolaires aident les enfants orphelins à surmonter les obstacles et à développer leur potentiel." + }, + "2": { + "id": 2, + "subTitle": "Renforcer les jeunes orphelins", + "description": "Les dons de fournitures scolaires donnent aux jeunes orphelins le pouvoir de poursuivre leurs rêves et de construire un avenir meilleur. Ces outils permettent à ces enfants de surmonter les difficultés par l'éducation et ouvrent de nouvelles perspectives." + }, + "3": { + "id": 3, + "subTitle": "Fournir des fournitures scolaires de base", + "description": "Les dons de fournitures scolaires assurent l'accès des enfants orphelins aux fournitures éducatives de base. Ces contributions fournissent à ces jeunes esprits des livres, des fournitures de papeterie et des matériaux d'apprentissage lors de leur parcours éducatif." + }, + "4": { + "id": 4, + "subTitle": "Contribuer à l'apprentissage et à la vie", + "description": "En faisant un don de fournitures scolaires pour les enfants orphelins, vous ajoutez de la valeur à leur apprentissage et à leur vie. Votre soutien garantit que la connaissance est accessible même face aux difficultés, et que les rêves peuvent devenir réalité grâce à l'éducation." + } + } + }, + "donationsofMedicalEquipment": { + "title": "Dons d'équipements médicaux : Sauver des vies", + "description": "L'accès à des services de santé de qualité est un droit fondamental. Les dons d'équipements médicaux jouent un rôle essentiel en tant que bouée de sauvetage pour les établissements de santé, assurant des soins critiques et garantissant le sauvetage de vies.", + "content": { + "1": { + "id": 1, + "subTitle": "Rôle vital des services de santé", + "description": "L'accès aux services de santé est cruciale pour maintenir la santé et le bien-être. Les dons d'équipements médicaux soutiennent le travail essentiel des professionnels de la santé et assurent l'accès des communautés à des traitements vitaux et aux soins de survie." + }, + "2": { + "id": 2, + "subTitle": "Fourniture d'équipements médicaux critiques", + "description": "Les dons d'équipements médicaux comprennent des éléments tels que des ventilateurs, des instruments chirurgicaux, des équipements de protection individuelle (EPI), des médicaments, et bien plus encore. Ces matériels sont essentiels pour le diagnostic, le traitement et les soins aux patients." + }, + "3": { + "id": 3, + "subTitle": "Soutien à l'équité en santé", + "description": "Les dons d'équipements médicaux favorisent l'équité en santé en assurant l'accès à des ressources médicales nécessaires, indépendamment de la situation économique ou géographique. Cela contribue à réduire les inégalités en santé et à améliorer les résultats de santé." + }, + "4": { + "id": 4, + "subTitle": "Sauver des vies et améliorer la santé", + "description": "En faisant des dons d'équipements médicaux, vous jouez un rôle crucial dans le sauvetage de vies et l'amélioration de la santé des individus et des communautés. Votre soutien offre une chance d'espoir, de guérison et un avenir plus sain." + } + } + }, + "donationsforEarthquakeRelief": { + "title": "Dons pour le Secours après les Tremblements de Terre : Reconstruire des Vies", + "description": "Les tremblements de terre peuvent avoir des effets dévastateurs sur les communautés, laissant de nombreuses personnes sans abri et ayant besoin d'une aide d'urgence. Les dons pour le secours après les tremblements de terre sont une bouée de sauvetage pour les personnes touchées, aidant à reconstruire des vies et des communautés après une catastrophe.", + "content": { + "1": { + "id": 1, + "subTitle": "Destructivité des Tremblements de Terre", + "description": "Les tremblements de terre sont des catastrophes naturelles qui peuvent détruire des maisons et mettre des familles dans des situations difficiles. Après un tremblement de terre, une aide d'urgence et un soutien sont nécessaires." + }, + "2": { + "id": 2, + "subTitle": "Secours d'Urgence et Reconstruction", + "description": "Les dons pour le secours après les tremblements de terre comprennent des abris d'urgence, une aide médicale et une assistance pour la reconstruction de maisons et d'infrastructures. Ces contributions sont cruciales pour le processus de guérison et de reconstruction." + }, + "3": { + "id": 3, + "subTitle": "Solidarité Mondiale en Période de Crise", + "description": "Le soutien apporté après les tremblements de terre s'étend à l'échelle mondiale, réunissant des communautés et des organisations pour aider ceux dans le besoin. Vos dons jouent un rôle important en montrant une solidarité mondiale et de la compassion." + }, + "4": { + "id": 4, + "subTitle": "Créer un Impact Positif dans la Guérison", + "description": "En faisant des dons pour le secours après les tremblements de terre, vous contribuez à la guérison des communautés et à avoir un impact positif sur la vie des personnes touchées. Votre soutien offre une lueur d'espoir, de guérison et une opportunité pour un avenir plus lumineux après la catastrophe." + } + } } } diff --git a/public/locales/tr/blogs.json b/public/locales/tr/blogs.json index 820c4f7..7ffc4c3 100644 --- a/public/locales/tr/blogs.json +++ b/public/locales/tr/blogs.json @@ -31,53 +31,209 @@ "donationsInGaza": { "title": "Gazze'deki Bağışlar: İhtiyaç Sahiplerine Destek", "description": "Gazze halkı birçok zorlukla karşılaştı ve sizin desteğiniz, hayatlarında önemli bir fark yaratabilir. Gazze'ye yapılan bağışlar, ihtiyaç sahiplerine temel yardım, yardım ve umut sağlamaya yardımcı olur.", - "content": [ - { + "content": { + "1": { "id": 1, "subTitle": "Gazze'deki İnsani Kriz", "description": "Gazze, siyasi çatışma ve ekonomik zorluklar da dahil olmak üzere sürekli zorluklar yaşadı. Gazze halkı sık sık temel ihtiyaçlar konusunda sıkıntılar yaşar ve bağışlar, acil ve uzun vadeli ihtiyaçlarını karşılama konusunda önemli bir rol oynar." }, - { + "2": { "id": 2, "subTitle": "İhtiyaç Duyulan Bağış Türleri", - "description": "Gazze'ye yapılan bağışlar, finansal katkılar, tıbbi malzemeler, gıda yardımı ve eğitim kaynakları dahil olmak üzere çeşitli şekillerde olabilir. Sizin desteğiniz, ailelere yardım, sağlık tesislerine destek ve eğitim ve güçlendirme fırsatları sağlayabilir." + "description": "Eid al-Fitr'de vermenin temel yönlerinden biri 'Zakat al-Fitr'dir. Bu, kutlamadan yoksun olanları desteklemek için buna gücü yetenler tarafından verilen zorunlu bir sadaka türüdür. Zakat al-Fitr genellikle yiyecek olarak verilir, bu da ihtiyaç sahiplerinin kutlamalara katılmasını sağlar." }, - { + "3": { "id": 3, "subTitle": "Dayanışma ve Şefkat Eylemleri", "description": "Gazze'ye yapılan bağışlar, sadece maddi yardım sağlamakla kalmaz, aynı zamanda dayanışma ve şefkat eylemlerini temsil eder. Sizin katkınız, zorlukları aşmaya çalışan bireylerin ve ailelerin hayatlarında önemli bir fark yaratabilir." }, - { + "4": { "id": 4, "subTitle": "Daha İyi Bir Gelecek İnşa Etme", "description": "Gazze'ye desteğinizi ve bağışlarınızı sunarak, bu bölgenin insanları için daha iyi bir gelecek inşa etmeye katkıda bulunursunuz. Cömertliğiniz, olumlu değişim yaratmaya, umutları restore etmeye ve ihtiyaç sahiplerinin yaşam kalitesini artırmaya yardımcı olabilir." } - ] + } }, "isolatedAreasDonations": { "title": "İzole Alanlara Bağışlar: Dezavantajlılara Umut Getirme", "description": "İzole ve uzak bölgeler genellikle sınırlı temel hizmetlere erişimden ekonomik zorluklara kadar benzersiz zorluklarla karşı karşıyadır. İzole alanlara yapılan bağışlar, ihtiyaç içinde olanların hayatlarında önemli bir fark yaratabilir.", - "content": [ - { + "content": { + "1": { "id": 1, "subTitle": "İzole Alanların Zorlukları", "description": "İzole alanlar genellikle sağlık hizmetlerine, eğitime, temiz suya ve ekonomik fırsatlara erişimde sıkıntı yaşayabilirler. Bu alanlarda yaşayan insanlar genellikle temel ihtiyaçlarını karşılamakta zorluklarla karşılaşırlar ve bağışlar bir destek hattıdır." }, - { + "2": { "id": 2, "subTitle": "İhtiyaç Duyulan Bağış Türleri", "description": "İzole alanlara yapılan bağışlar, finansal katkılar, tıbbi malzemeler, gıda yardımı ve altyapı geliştirme gibi çeşitli şekillerde olabilir. Sizin desteğiniz, dezavantajlı bölgelerde yaşayanların yaşam kalitesini artırabilir ve farkı kapatabilir." }, - { + "3": { "id": 3, "subTitle": "Merhamet ve İletişim Hareketleri", "description": "İzole alanlara yapılan bağışlar, sadece malî yardım sağlamaktan öte, merhamet ve iletişim hareketlerini simgeler. Cömertliğiniz topluluklara umut getirebilir, dayanışma duygusu yaratabilir ve olumlu değişimlere ilham verebilir." }, - { + "4": { "id": 4, "subTitle": "Dezavantajlı Toplulukları Güçlendirme", "description": "Destek ve bağışlarınızı izole alanlara sunarak, dezavantajlı toplulukları daha iyi bir gelecek inşa etmelerine güç verirsiniz. Katkılarınız, yoksulluk döngüsünü kırabilir, eğitim ve sağlık hizmetlerine erişimi iyileştirebilir ve öz-yeterliliği teşvik edebilir." } - ] + } + }, + "donationsinEidalAdha": { + "title": "Kurban Bayramı Bağışları: Kurban ve Yardım Festivali", + "description": "Kurban Bayramı, 'Kurban ve Yardım Festivali' olarak da bilinen, dünya genelindeki Müslümanlar tarafından kutlanan en önemli İslami bayramlardan biridir. Bu bayram, Hz. İbrahim'in oğlunu Tanrı'ya itaat etme eylemi olarak kurban etmeye istekli olmasını anmaktadır. Sembolik ritüeller ve ziyafetlerin ötesinde, Kurban Bayramı fedakarlık ve yardımseverlik değerlerini vurgular.", + "content": { + "1": { + "id": 1, + "subTitle": "Kurban Bayramının Anlamı", + "description": "Kurban Bayramı, düşünce, ibadet ve özveri zamanıdır. Müslümanlar ibadet etmek, öğle yemekleri paylaşmak ve sevdikleriyle vakit geçirmek için bir araya gelirler. Ancak, bu bayramın merkezi teması Tanrı'ya itaat ve boyun eğmeyi simgeleyen kurban etme eylemidir." + }, + "2": { + "id": 2, + "subTitle": "İhtiyaç Sahiplerine Dağıtım", + "description": "Et geleneksel olarak üçe bölünür: üçte biri ihtiyaç sahiplerine, üçte biri akraba ve arkadaşlara, ve üçte biri ailenin korunması içindir. Bu uygulama, daha az şanslı olanların da kutlamaya katılmasını ve besleyici bir öğünün tadını çıkarmasını sağlar." + }, + "3": { + "id": 3, + "subTitle": "Kurban Etme Eylemi", + "description": "Kurban Bayramı sırasında en dikkat çeken geleneklerden biri, bir koyun, keçi, inek veya devenin kurban edilmesidir. Bu kurban etme eylemi, Hz. İbrahim'in örneğini takip etmek ve eti ihtiyaç sahipleriyle paylaşmak amacıyla gerçekleştirilir. Bu, özveri ve topluluğa geri vermenin önemini hatırlatan bir jesttir." + }, + "4": { + "id": 4, + "subTitle": "Yardımseverlik Ruhu", + "description": "Kurban Bayramı, sadece kurban etme eylemi değil; aynı zamanda yardımseverlik ve cömertlik ruhunu teşvik eder. Müslümanlar, bağış yapmaya, ihtiyaç sahiplerine yardım etmeye ve çeşitli insani nedenleri desteklemeye teşvik edilir. Bu, mücadele eden ve yardıma ihtiyaç duyanlara yardım elini uzatma zamanıdır." + } + } + }, + "donationsinRamadan": { + "title": "Ramazan'da Bağışlar: Verme ve Şefkat Zamanı", + "description": "Ramazan, dünya genelindeki Müslümanlar için oruç, dua ve düşünce ayıdır. Aynı zamanda artan cömertlik ve topluluğa geri verme zamanıdır.", + "content": { + "1": { + "id": 1, + "subTitle": "Ramazan'da Vermenin Önemi", + "description": "İzole bölgeler, sağlık hizmetlerine, eğitime, temiz suya ve ekonomik fırsatlara sınırlı erişime sahip olabilir. Bu tür bölgelerde yaşayan insanlar genellikle temel ihtiyaçlarını karşılamakta zorlanırlar ve bağışlar, onlara destek olmak için bir can simidi haline gelir." + }, + "2": { + "id": 2, + "subTitle": "Hayır ve Empati Eylemleri", + "description": "Ramazan'da oruç tutmak, daha az şanslı olanlara karşı empati geliştirir. Bu, açlık ve susuzluğun birinci elden deneyimlenmesini sağlar ve derin bir şefkat duygusu aşılar. Bağışlar, ihtiyaç sahiplerinin acılarını hafifletmenin bir yolu haline gelir, küresel toplulukla dayanışmayı gösterir." + }, + "3": { + "id": 3, + "subTitle": "Bağışlarla Ödüllerin Çoğaltılması", + "description": "Ramazan'ın, çoğaltılmış bereket ve ödüllerin ayı olduğuna inanılır. Bu, iyi işlerin, bağışlar dahil, ödüllerinin çok kat arttığı bir zaman olduğu söylenir. Bu inanç, bireyleri daha cömert ve hayırsever olmaya teşvik eden güçlü bir motivatör olarak hizmet eder, çünkü katkılarının daha büyük manevi faydalar sağlayacağını bilirler." + }, + "4": { + "id": 4, + "subTitle": "Topluluk Bağlarını Güçlendirmek", + "description": "Ramazan'da yapılan bağışlar, Müslüman topluluğu içinde birlik ve beraberlik duygusu yaratır. Bu, bireyleri kendi ihtiyaçlarından öteye bakmaya ve zorluklarla karşılaşanlara yardım elini uzatmaya teşvik eder. Bu topluluk ruhu, kardeşlik ve kızkardeşlik bağlarını güçlendirir." + } + } + }, + "donationstoFoodBanks": { + "title": "Yiyecek Bankalarına Bağışlar: Açlıkla Mücadele", + "description": "Açlık, birçok birey ve ailenin karşılaştığı acil bir sorundur. Yiyecek bankalarına yapılan bağışlar, beslenme ve destek için hayati bir kaynak olup, açlığı hafifletmeyi ve ihtiyaç içinde olanların yaşamını iyileştirmeyi amaçlar.", + "content": { + "1": { + "id": 1, + "subTitle": "Açlığın Gerçekliği", + "description": "Açlık, genellikle ekonomik zorluklar ve gıda güvensizliği nedeniyle milyonlarca insanı etkiler. Yiyecek bankalarına yapılan bağışlar, acil açlık ihtiyaçlarını ele almaya ve bireylerin besleyici yemlere erişimini sağlamaya yöneliktir." + }, + "2": { + "id": 2, + "subTitle": "Toplumları ve Sağlığı Destekleme", + "description": "Yiyecek bankalarına bağış yapmak, sadece yiyecek sağlamaktan öte, toplumları destekler ve daha iyi bir sağlığı teşvik eder. Bu bağışlar, açlıkla mücadelede kritik bir rol oynar ve bireylerin genel refahını iyileştirmeye yardımcı olur." + }, + "3": { + "id": 3, + "subTitle": "Açlıkla Mücadelede Fark Yaratma", + "description": "Yiyecek bankalarına katkıda bulunarak, açlıkla mücadelede aktif bir fark yaratıyorsunuz. Desteğiniz, kimse aç yatmaz ve bireyler ile aileler gerekli beslenmeyi alırken yardımcı olur." + }, + "4": { + "id": 4, + "subTitle": "Besleyici Yiyecek ve Yardım Sağlama", + "description": "Yiyecek bankalarına yapılan bağışlar, dayanıklı olmayan ürünlerden taze ürünlere kadar çeşitli yiyecekleri içerir. Bu bağışlar, bireylerin ve ailelerin besleyici yemlere ve temel gıda maddelerine erişimini sağlamaya yardımcı olur." + } + } + }, + "donationofSchoolTools": { + "title": "Yetim Çocuklar İçin Okul Araçları Bağışı: Genç Zihinleri Güçlendirmek", + "description": "Eğitim, daha aydınlık bir geleceğe giden bir kapıdır ve yetim çocuklar için okul araçları bağışları, bu genç zihinleri kaliteli eğitime erişim için gerekli kaynaklarla güçlendirmede kritik bir rol oynar. Katkılarınız, bilgi araçlarını sağlar ve yarının daha iyi olmasına kapıları aralar.", + "content": { + "1": { + "id": 1, + "subTitle": "Eğitimin Dönüştürücü Gücü", + "description": "Eğitim, hayatları değiştirebilen güçlü bir kuvvet olup, bilgi, beceri ve fırsatlar sağlar. Okul araçları bağışları, yetim çocukları engelleri aşmaya ve potansiyellerine ulaşmaya güçlendirir." + }, + "2": { + "id": 2, + "subTitle": "Yetim Gençleri Güçlendirmek", + "description": "Okul araçları bağışları, yetim gençlerin hayallerini takip etmelerine ve daha iyi bir gelecek inşa etmelerine güç verir. Bu araçlar, bu çocukların eğitim yoluyla zorlukları aşmalarına olanak tanır ve yeni ufuklara kapıları açar." + }, + "3": { + "id": 3, + "subTitle": "Temel Okul Malzemeleri Sağlama", + "description": "Okul araçları bağışları, yetim çocukların temel eğitim malzemelerine erişimini sağlar. Bu katkılar, bu genç zihinlere eğitim yolculuklarında kitaplar, kırtasiye malzemeleri ve öğrenme materyalleri sağlar." + }, + "4": { + "id": 4, + "subTitle": "Öğrenme ve Hayatlarına Fark Katma", + "description": "Yetim çocuklar için okul araçları bağışında bulunarak, öğrenmelerine ve öğrenmek isteyenlerin hayatlarına fark katıyorsunuz. Desteğiniz, zorluklarla karşılaşıldığında bile bilginin erişilebilir olduğunu ve eğitim aracılığıyla hayallerin gerçekleşebileceğini sağlar." + } + } + }, + "donationsofMedicalEquipment": { + "title": "Tıbbi Ekipman ve Malzeme Bağışları: Hayat Kurtarmak", + "description": "Kaliteli sağlık hizmetlerine erişim, temel bir insan hakkıdır. Tıbbi ekipman ve malzeme bağışları, sağlık tesisleri ve kuruluşları için bir can simidi olarak görev yapar, kritik bakım sağlama ve hayat kurtarma konusunda güvence sağlar.", + "content": { + "1": { + "id": 1, + "subTitle": "Sağlık Hizmetlerinin Hayati Rolü", + "description": "Sağlık hizmetlerine erişim, sağlığı ve refahı sürdürmek için hayati önem taşır. Tıbbi ekipman ve malzeme bağışları, sağlık profesyonellerinin esas işini destekler ve toplumların yaşam kurtaran tedavi ve bakıma erişimini sağlar." + }, + "2": { + "id": 2, + "subTitle": "Kritik Tıbbi Malzeme Sağlama", + "description": "Tıbbi ekipman ve malzeme bağışları, ventilatörler, cerrahi aletler, kişisel koruyucu ekipmanlar (PPE), ilaçlar ve daha fazlası gibi öğeleri içerir. Bu malzemeler teşhis, tedavi ve hasta bakımı için esastır." + }, + "3": { + "id": 3, + "subTitle": "Sağlık Eşitliğini Destekleme", + "description": "Tıbbi ekipman bağışları, ekonomik durumları veya konumları ne olursa olsun tüm bireylerin ihtiyaç duydukları tıbbi kaynaklara erişimini sağlayarak sağlık eşitliğini teşvik eder. Bu, sağlık eşitsizliklerini azaltmaya ve sağlık sonuçlarını iyileştirmeye yardımcı olur." + }, + "4": { + "id": 4, + "subTitle": "Hayat Kurtarmak ve Sağlığı İyileştirmek", + "description": "Tıbbi ekipman ve malzeme bağışında bulunarak, bireylerin ve toplulukların hayatlarını kurtarmak ve sağlıklarını iyileştirmekte kritik bir rol oynarsınız. Desteğiniz umut, şifa ve daha sağlıklı bir gelecek için bir şans sunar." + } + } + }, + "donationsforEarthquakeRelief": { + "title": "Depremler Sonrası Canları Kurtarmak İçin Bağışlar: Yaşamları Yeniden İnşa Etmek", + "description": "Depremler topluluklar üzerinde yıkıcı etkilere sahip olabilir, birçok kişiyi evsiz bırakarak acil yardıma ihtiyaç duyarlar. Depremler sonrası yardım için yapılan bağışlar, etkilenenler için bir can simidi olup, felaket sonrası yaşamları ve toplulukları yeniden inşa etmeye yardımcı olur.", + "content": { + "1": { + "id": 1, + "subTitle": "Depremlerin Yıkıcılığı", + "description": "Depremler, evleri yerle bir eden ve aileleri sıkıntıya sokan yaygın yıkıma neden olabilen doğal afetlerdir. Bir depremin ardından, acil yardım ve destek gereklidir." + }, + "2": { + "id": 2, + "subTitle": "Acil Yardım ve Yeniden İnşa", + "description": "Depremler sonrası yardım için yapılan bağışlar, acil barınak, tıbbi yardım ve evlerin ve altyapının yeniden inşası için yardım içerir. Bu katkılar, iyileşme ve yeniden inşa süreci için hayati öneme sahiptir." + }, + "3": { + "id": 3, + "subTitle": "Kriz Zamanlarında Küresel Dayanışma", + "description": "Depremler sonrası yardım için yapılan destek, ihtiyacı olanlara yardım etmek için bir araya gelen topluluklar ve organizasyonlar tarafından küresel olarak genişler. Bağışlarınız, küresel dayanışmayı ve şefkati göstermede önemli bir rol oynar." + }, + "4": { + "id": 4, + "subTitle": "İyileşmede Pozitif Etki Yaratma", + "description": "Deprem yardımı çabalarına bağış yaparak, toplulukların iyileşmesinde ve etkilenen bireylerin yaşamlarında pozitif bir etki yaratırsınız. Desteğiniz umut, şifa ve felaket sonrası daha aydınlık bir gelecek için bir fırsat sunar." + } + } } } diff --git a/src/components/LandingPage/BlogsSection/BlogsSection.jsx b/src/components/LandingPage/BlogsSection/BlogsSection.jsx index cf74580..7eb139c 100644 --- a/src/components/LandingPage/BlogsSection/BlogsSection.jsx +++ b/src/components/LandingPage/BlogsSection/BlogsSection.jsx @@ -21,7 +21,7 @@ function BlogsSection({ blogs }) { viewport={{ once: true }} >

- {t("landingPage:latestBlogs")} + {t("common:latestBlogs")}

Date: Fri, 24 Nov 2023 11:29:31 +0100 Subject: [PATCH 7/9] fix(locales): fix naming convention #107 --- public/locales/ar/blogs.json | 12 ++++++------ public/locales/en/blogs.json | 12 ++++++------ public/locales/fr/blogs.json | 12 ++++++------ public/locales/tr/blogs.json | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/public/locales/ar/blogs.json b/public/locales/ar/blogs.json index a0b61dd..907ddfe 100644 --- a/public/locales/ar/blogs.json +++ b/public/locales/ar/blogs.json @@ -80,7 +80,7 @@ } } }, - "donationsinEidalAdha": { + "donationsInEidalAdha": { "title": "تبرعات في عيد الأضحى: عيد الأضحى وفن العطاء", "description": "عيد الأضحى، المعروف أيضًا باسم 'عيد الأضحى'، هو واحد من أهم العيدين الإسلاميين الذي يحتفل به المسلمون في جميع أنحاء العالم. يحتفل بذكرى استعداد النبي إبراهيم (إبراهام) للتضحية بابنه تعبيرًا عن الطاعة لله. وراء الطقوس الرمزية والولائم، يبرز عيد الأضحى قيم التضحية والعطاء.", "content": { @@ -106,7 +106,7 @@ } } }, - "donationsinRamadan": { + "donationInRamadan": { "title": "تبرعات في رمضان: شهرالعطاء والرحمة", "description": "رمضان هو شهر الصيام والصلاة والتأمل للمسلمين في جميع أنحاء العالم. إنه أيضًا وقت للكرم المتزايد وإعطاء العائد إلى المجتمع.", "content": { @@ -132,7 +132,7 @@ } } }, - "donationstoFoodBanks": { + "donationsToFoodBanks": { "title": "تبرعات لبنك الطعام: محاربة الجوع", "description": "الجوع قضية يواجهها العديد من الأفراد والعائلات. تبرعات لبنك الطعام هي مصدر حيوي للتغذية والدعم، تعمل على التخفيف من الجوع وتحسين حياة الأشخاص الذين هم في الحاجة.", "content": { @@ -158,7 +158,7 @@ } } }, - "donationofSchoolTools": { + "donationsOfSchoolTools": { "title": "تبرع بأدوات مدرسية لأطفال اليتامة: تمكين العقول الصغيرة", "description": "التعليم هو بوابة إلى مستقبل أفضل، وتبرع بأدوات مدرسية لأطفال اليتامة يلعب دوراً حيوياً في تمكين هذه العقول الصغيرة بالموارد التي يحتاجونها للوصول إلى تعليم ذو جودة. تساهم تبرعاتك في توفير أدوات المعرفة وفتح أبواب لغدٍ أفضل.", "content": { @@ -184,7 +184,7 @@ } } }, - "donationsofMedicalEquipment": { + "donationsOfMedicalEquipments": { "title": "تبرعات بالمعدات الطبية واللوازم: إنقاذ الأرواح", "description": "الوصول إلى الرعاية الصحية ذات جودة هو حق أساسي للإنسان. تبرعات بالمعدات الطبية واللوازم تعتبر خط الحياة للمرافق والمنظمات الصحية، مضمونة أن يمكنها تقديم رعاية حيوية وإنقاذ الأرواح.", "content": { @@ -210,7 +210,7 @@ } } }, - "donationsforEarthquakeRelief": { + "donationsForEarthQuakeRelief": { "title": "تبرعات لإغاثة الزلازل: إعادة بناء الحياة بعد الكارثة", "description": "يمكن أن تكون الزلازل لها تأثيرات تدميرية على المجتمعات، مما يترك الكثيرين بدون منازل وفي حاجة إلى مساعدة عاجلة. تبرعات لإغاثة الزلازل هي حبل نجاة للمتأثرين، مساعدة في إعادة بناء الحياة والمجتمعات بعد حدوث الكارثة.", "content": { diff --git a/public/locales/en/blogs.json b/public/locales/en/blogs.json index 392ac0b..2dd4026 100644 --- a/public/locales/en/blogs.json +++ b/public/locales/en/blogs.json @@ -76,7 +76,7 @@ } } }, - "donationsinEidalAdha": { + "donationsInEidalAdha": { "title": "Donations of Eid al-Adha: Festival of Sacrifice and Aid", "description": "Eid al-Adha, also known as the 'Festival of Sacrifice and Aid,' is one of the most significant Islamic celebrations observed by Muslims worldwide. This festival commemorates the willingness of the Prophet Ibrahim to sacrifice his son in obedience to God. Beyond symbolic rituals and feasts, Eid al-Adha emphasizes the values of sacrifice and benevolence.", "content": { @@ -102,7 +102,7 @@ } } }, - "donationsinRamadan": { + "donationInRamadan": { "title": "Donations in Ramadan: Time for Giving and Compassion", "description": "Ramadan is a month of fasting, prayer, and reflection for Muslims worldwide. It is also a time of increased generosity and giving back to the community.", "content": { @@ -128,7 +128,7 @@ } } }, - "donationstoFoodBanks": { + "donationsToFoodBanks": { "title": "Donations to Food Banks: Combating Hunger", "description": "Hunger is an urgent problem faced by many individuals and families. Donations to food banks serve as a vital resource for nutrition and support, aiming to alleviate hunger and improve the lives of those in need.", "content": { @@ -154,7 +154,7 @@ } } }, - "donationofSchoolTools": { + "donationsOfSchoolTools": { "title": "Donation of School Supplies for Orphaned Children: Strengthening Young Minds", "description": "Education is a gateway to a brighter future, and donations of school supplies for orphaned children play a crucial role in empowering these young minds with the necessary resources to access quality education. Your contributions provide tools of knowledge and open doors to a better tomorrow.", "content": { @@ -180,7 +180,7 @@ } } }, - "donationsofMedicalEquipment": { + "donationsOfMedicalEquipments": { "title": "Donations of Medical Equipment: Saving Lives", "description": "Access to quality healthcare is a fundamental right. Donations of medical equipment play a crucial role as a lifeline for healthcare facilities, ensuring critical care and saving lives.", "content": { @@ -206,7 +206,7 @@ } } }, - "donationsforEarthquakeRelief": { + "donationsForEarthQuakeRelief": { "title": "Donations for Earthquake Relief: Rebuilding Lives", "description": "Earthquakes can have devastating effects on communities, leaving many people homeless and in need of emergency assistance. Donations for earthquake relief serve as a lifeline for those affected, helping to rebuild lives and communities after a disaster.", "content": { diff --git a/public/locales/fr/blogs.json b/public/locales/fr/blogs.json index 8e2524e..a09bc6b 100644 --- a/public/locales/fr/blogs.json +++ b/public/locales/fr/blogs.json @@ -80,7 +80,7 @@ } } }, - "donationsinEidalAdha": { + "donationsInEidalAdha": { "title": "Dons de l'Aïd al-Adha : Festival du Sacrifice et de l'Aide", "description": "L'Aïd al-Adha, également connu sous le nom de 'Festival du Sacrifice et de l'Aide', est l'une des fêtes islamiques les plus importantes célébrées par les musulmans du monde entier. Cette fête commémore la disposition du prophète Ibrahim à sacrifier son fils en obéissance à Dieu. Au-delà des rituels symboliques et des festins, l'Aïd al-Adha met en avant les valeurs de sacrifice et de bienfaisance.", "content": { @@ -106,7 +106,7 @@ } } }, - "donationsinRamadan": { + "donationInRamadan": { "title": "Dons pendant le Ramadan : Temps de Don et de Compassion", "description": "Le Ramadan est le mois du jeûne, de la prière et de la réflexion pour les musulmans du monde entier. C'est également un moment de générosité croissante et de don à la communauté.", "content": { @@ -132,7 +132,7 @@ } } }, - "donationstoFoodBanks": { + "donationsToFoodBanks": { "title": "Dons aux banques alimentaires : Lutte contre la faim", "description": "La faim est un problème urgent auquel de nombreux individus et familles sont confrontés. Les dons aux banques alimentaires constituent une ressource vitale pour la nutrition et le soutien, visant à soulager la faim et à améliorer la vie des personnes dans le besoin.", "content": { @@ -158,7 +158,7 @@ } } }, - "donationofSchoolTools": { + "donationsOfSchoolTools": { "title": "Don de fournitures scolaires pour les enfants orphelins : Renforcer les jeunes esprits", "description": "L'éducation est une porte vers un avenir plus lumineux, et les dons de fournitures scolaires pour les enfants orphelins jouent un rôle crucial en renforçant ces jeunes esprits avec les ressources nécessaires pour accéder à une éducation de qualité. Vos contributions fournissent des outils de connaissance et ouvrent les portes à un lendemain meilleur.", "content": { @@ -184,7 +184,7 @@ } } }, - "donationsofMedicalEquipment": { + "donationsOfMedicalEquipments": { "title": "Dons d'équipements médicaux : Sauver des vies", "description": "L'accès à des services de santé de qualité est un droit fondamental. Les dons d'équipements médicaux jouent un rôle essentiel en tant que bouée de sauvetage pour les établissements de santé, assurant des soins critiques et garantissant le sauvetage de vies.", "content": { @@ -210,7 +210,7 @@ } } }, - "donationsforEarthquakeRelief": { + "donationsForEarthQuakeRelief": { "title": "Dons pour le Secours après les Tremblements de Terre : Reconstruire des Vies", "description": "Les tremblements de terre peuvent avoir des effets dévastateurs sur les communautés, laissant de nombreuses personnes sans abri et ayant besoin d'une aide d'urgence. Les dons pour le secours après les tremblements de terre sont une bouée de sauvetage pour les personnes touchées, aidant à reconstruire des vies et des communautés après une catastrophe.", "content": { diff --git a/public/locales/tr/blogs.json b/public/locales/tr/blogs.json index 7ffc4c3..d2e4388 100644 --- a/public/locales/tr/blogs.json +++ b/public/locales/tr/blogs.json @@ -80,7 +80,7 @@ } } }, - "donationsinEidalAdha": { + "donationsInEidalAdha": { "title": "Kurban Bayramı Bağışları: Kurban ve Yardım Festivali", "description": "Kurban Bayramı, 'Kurban ve Yardım Festivali' olarak da bilinen, dünya genelindeki Müslümanlar tarafından kutlanan en önemli İslami bayramlardan biridir. Bu bayram, Hz. İbrahim'in oğlunu Tanrı'ya itaat etme eylemi olarak kurban etmeye istekli olmasını anmaktadır. Sembolik ritüeller ve ziyafetlerin ötesinde, Kurban Bayramı fedakarlık ve yardımseverlik değerlerini vurgular.", "content": { @@ -106,7 +106,7 @@ } } }, - "donationsinRamadan": { + "donationInRamadan": { "title": "Ramazan'da Bağışlar: Verme ve Şefkat Zamanı", "description": "Ramazan, dünya genelindeki Müslümanlar için oruç, dua ve düşünce ayıdır. Aynı zamanda artan cömertlik ve topluluğa geri verme zamanıdır.", "content": { @@ -132,7 +132,7 @@ } } }, - "donationstoFoodBanks": { + "donationsToFoodBanks": { "title": "Yiyecek Bankalarına Bağışlar: Açlıkla Mücadele", "description": "Açlık, birçok birey ve ailenin karşılaştığı acil bir sorundur. Yiyecek bankalarına yapılan bağışlar, beslenme ve destek için hayati bir kaynak olup, açlığı hafifletmeyi ve ihtiyaç içinde olanların yaşamını iyileştirmeyi amaçlar.", "content": { @@ -158,7 +158,7 @@ } } }, - "donationofSchoolTools": { + "donationsOfSchoolTools": { "title": "Yetim Çocuklar İçin Okul Araçları Bağışı: Genç Zihinleri Güçlendirmek", "description": "Eğitim, daha aydınlık bir geleceğe giden bir kapıdır ve yetim çocuklar için okul araçları bağışları, bu genç zihinleri kaliteli eğitime erişim için gerekli kaynaklarla güçlendirmede kritik bir rol oynar. Katkılarınız, bilgi araçlarını sağlar ve yarının daha iyi olmasına kapıları aralar.", "content": { @@ -184,7 +184,7 @@ } } }, - "donationsofMedicalEquipment": { + "donationsOfMedicalEquipments": { "title": "Tıbbi Ekipman ve Malzeme Bağışları: Hayat Kurtarmak", "description": "Kaliteli sağlık hizmetlerine erişim, temel bir insan hakkıdır. Tıbbi ekipman ve malzeme bağışları, sağlık tesisleri ve kuruluşları için bir can simidi olarak görev yapar, kritik bakım sağlama ve hayat kurtarma konusunda güvence sağlar.", "content": { @@ -210,7 +210,7 @@ } } }, - "donationsforEarthquakeRelief": { + "donationsForEarthQuakeRelief": { "title": "Depremler Sonrası Canları Kurtarmak İçin Bağışlar: Yaşamları Yeniden İnşa Etmek", "description": "Depremler topluluklar üzerinde yıkıcı etkilere sahip olabilir, birçok kişiyi evsiz bırakarak acil yardıma ihtiyaç duyarlar. Depremler sonrası yardım için yapılan bağışlar, etkilenenler için bir can simidi olup, felaket sonrası yaşamları ve toplulukları yeniden inşa etmeye yardımcı olur.", "content": { From 28d7b8cc865830df3bdb06a8a2d38499569fb6bb Mon Sep 17 00:00:00 2001 From: hadiadjd Date: Fri, 24 Nov 2023 15:43:01 +0100 Subject: [PATCH 8/9] feat(blogs page): update translation update translation in blogs page and add time stamp fix #107 --- public/locales/ar/blogs.json | 18 ++++++++++++++++++ public/locales/en/blogs.json | 18 ++++++++++++++++++ public/locales/fr/blogs.json | 18 ++++++++++++++++++ public/locales/tr/blogs.json | 18 ++++++++++++++++++ src/components/BlogCard/HorizontalCard.jsx | 7 +++---- .../__snapshots__/BlogCard.test.js.snap | 3 +-- src/components/BlogCard/index.jsx | 7 ++----- .../__test__/__snapshots__/Blogs.test.js.snap | 3 ++- src/components/BlogsCard/index.jsx | 6 +----- .../__snapshots__/BlogsSection.test.js.snap | 2 +- src/pages/blogs/[blogId].jsx | 6 ++---- 11 files changed, 84 insertions(+), 22 deletions(-) diff --git a/public/locales/ar/blogs.json b/public/locales/ar/blogs.json index 907ddfe..86440b6 100644 --- a/public/locales/ar/blogs.json +++ b/public/locales/ar/blogs.json @@ -5,6 +5,8 @@ "eidElFitrBlog": { "title": "روح العطاء: تبرعات عيد الفطر", "description": "عيد الفطر، المعروف أيضًا بـ 'عيد فطر الصائم'، هو عطلة هامة تحتفل بها الجماعات الإسلامية في جميع أنحاء العالم. إنه يُعتبر نهاية رمضان، شهر الصوم والصلاة والتأمل الذاتي. بعيدًا عن الولائم الاحتفالية والتجمعات الفرحة، يحمل عيد الفطر أهمية روحية عميقة، وخاصة عندما يتعلق الأمر بفعل العطاء والصدقة.", + "fullDate": "14 سبتمبر 2023", + "shortDate": "سبتمبر 2023", "content": { "1": { "id": 1, @@ -31,6 +33,8 @@ "donationsInGaza": { "title": "التبرعات في غزة: دعم الأشخاص المحتاجين", "description": "واجه أهل غزة العديد من التحديات، ويمكن أن يكون دعمك فارقًا كبيرًا في حياتهم. تساعد التبرعات لغزة في توفير المساعدات الأساسية والإغاثة والأمل لأولئك الذين هم في حاجة.", + "fullDate": "19 أكتوبر 2023", + "shortDate": "أكتوبر 2023", "content": { "1": { "id": 1, @@ -57,6 +61,8 @@ "isolatedAreasDonations": { "title": "التبرعات في المناطق المعزولة: إحضار الأمل إلى الأشخاص الذين يعانون", "description": "غالبًا ما تواجه المناطق المعزولة والبعيدة تحديات فريدة، بدءًا من الوصول المحدود إلى الخدمات الأساسية إلى الصعوبات الاقتصادية. يمكن أن تحدث التبرعات إلى المناطق المعزولة فارقًا كبيرًا في حياة أولئك الذين يعانون والذين في حاجة إلى الدعم.", + "fullDate": "05 نوفمبر 2023", + "shortDate": "نوفمبر 2023", "content": { "1": { "id": 1, @@ -83,6 +89,8 @@ "donationsInEidalAdha": { "title": "تبرعات في عيد الأضحى: عيد الأضحى وفن العطاء", "description": "عيد الأضحى، المعروف أيضًا باسم 'عيد الأضحى'، هو واحد من أهم العيدين الإسلاميين الذي يحتفل به المسلمون في جميع أنحاء العالم. يحتفل بذكرى استعداد النبي إبراهيم (إبراهام) للتضحية بابنه تعبيرًا عن الطاعة لله. وراء الطقوس الرمزية والولائم، يبرز عيد الأضحى قيم التضحية والعطاء.", + "fullDate": "17 نوفمبر 2023", + "shortDate": "نوفمبر 2023", "content": { "1": { "id": 1, @@ -109,6 +117,8 @@ "donationInRamadan": { "title": "تبرعات في رمضان: شهرالعطاء والرحمة", "description": "رمضان هو شهر الصيام والصلاة والتأمل للمسلمين في جميع أنحاء العالم. إنه أيضًا وقت للكرم المتزايد وإعطاء العائد إلى المجتمع.", + "fullDate": "23 نوفمبر 2023", + "shortDate": "نوفمبر 2023", "content": { "1": { "id": 1, @@ -135,6 +145,8 @@ "donationsToFoodBanks": { "title": "تبرعات لبنك الطعام: محاربة الجوع", "description": "الجوع قضية يواجهها العديد من الأفراد والعائلات. تبرعات لبنك الطعام هي مصدر حيوي للتغذية والدعم، تعمل على التخفيف من الجوع وتحسين حياة الأشخاص الذين هم في الحاجة.", + "fullDate": "24 نوفمبر 2023", + "shortDate": "نوفمبر 2023", "content": { "1": { "id": 1, @@ -161,6 +173,8 @@ "donationsOfSchoolTools": { "title": "تبرع بأدوات مدرسية لأطفال اليتامة: تمكين العقول الصغيرة", "description": "التعليم هو بوابة إلى مستقبل أفضل، وتبرع بأدوات مدرسية لأطفال اليتامة يلعب دوراً حيوياً في تمكين هذه العقول الصغيرة بالموارد التي يحتاجونها للوصول إلى تعليم ذو جودة. تساهم تبرعاتك في توفير أدوات المعرفة وفتح أبواب لغدٍ أفضل.", + "fullDate": "24 نوفمبر 2023", + "shortDate": "نوفمبر 2023", "content": { "1": { "id": 1, @@ -187,6 +201,8 @@ "donationsOfMedicalEquipments": { "title": "تبرعات بالمعدات الطبية واللوازم: إنقاذ الأرواح", "description": "الوصول إلى الرعاية الصحية ذات جودة هو حق أساسي للإنسان. تبرعات بالمعدات الطبية واللوازم تعتبر خط الحياة للمرافق والمنظمات الصحية، مضمونة أن يمكنها تقديم رعاية حيوية وإنقاذ الأرواح.", + "fullDate": "27 نوفمبر 2023", + "shortDate": "نوفمبر 2023", "content": { "1": { "id": 1, @@ -213,6 +229,8 @@ "donationsForEarthQuakeRelief": { "title": "تبرعات لإغاثة الزلازل: إعادة بناء الحياة بعد الكارثة", "description": "يمكن أن تكون الزلازل لها تأثيرات تدميرية على المجتمعات، مما يترك الكثيرين بدون منازل وفي حاجة إلى مساعدة عاجلة. تبرعات لإغاثة الزلازل هي حبل نجاة للمتأثرين، مساعدة في إعادة بناء الحياة والمجتمعات بعد حدوث الكارثة.", + "fullDate": "24 نوفمبر 2023", + "shortDate": "نوفمبر 2023", "content": { "1": { "id": 1, diff --git a/public/locales/en/blogs.json b/public/locales/en/blogs.json index 2dd4026..38cd1ea 100644 --- a/public/locales/en/blogs.json +++ b/public/locales/en/blogs.json @@ -5,6 +5,8 @@ "eidElFitrBlog": { "title": "The Spirit of Giving: Eid al-Fitr Donations", "description": "Eid al-Fitr, also known as the 'Festival of Breaking the Fast,' is a significant holiday celebrated by Muslims worldwide. It marks the end of Ramadan, a month of fasting, prayer, and self-reflection. Beyond the festive feasts and joyous gatherings, Eid al-Fitr holds a deep spiritual significance, particularly when it comes to the act of giving and charity.", + "fullDate": "September 14, 2023", + "shortDate": "Sep 2023", "content": { "1": { "subTitle": "The Joy of Eid al-Fitr", @@ -27,6 +29,8 @@ "donationsInGaza": { "title": "Donations in Gaza: Supporting Those in Need", "description": "The people of Gaza have faced numerous challenges, and your support can make a significant difference in their lives. Donations to Gaza help provide essential aid, relief, and hope to those who are in need.", + "fullDate": "October 19, 2023", + "shortDate": "Oct 2023", "content": { "1": { "id": 1, @@ -53,6 +57,8 @@ "isolatedAreasDonations": { "title": "Donations in Isolated Areas: Bringing Hope to the Underserved", "description": "Isolated and remote areas often face unique challenges, from limited access to essential services to economic hardships. Donations to isolated areas can make a significant difference in the lives of those who are underserved and in need of support.", + "fullDate": "November 5, 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -79,6 +85,8 @@ "donationsInEidalAdha": { "title": "Donations of Eid al-Adha: Festival of Sacrifice and Aid", "description": "Eid al-Adha, also known as the 'Festival of Sacrifice and Aid,' is one of the most significant Islamic celebrations observed by Muslims worldwide. This festival commemorates the willingness of the Prophet Ibrahim to sacrifice his son in obedience to God. Beyond symbolic rituals and feasts, Eid al-Adha emphasizes the values of sacrifice and benevolence.", + "fullDate": "November 17, 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -105,6 +113,8 @@ "donationInRamadan": { "title": "Donations in Ramadan: Time for Giving and Compassion", "description": "Ramadan is a month of fasting, prayer, and reflection for Muslims worldwide. It is also a time of increased generosity and giving back to the community.", + "fullDate": "November 23, 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -131,6 +141,8 @@ "donationsToFoodBanks": { "title": "Donations to Food Banks: Combating Hunger", "description": "Hunger is an urgent problem faced by many individuals and families. Donations to food banks serve as a vital resource for nutrition and support, aiming to alleviate hunger and improve the lives of those in need.", + "fullDate": "November 24, 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -157,6 +169,8 @@ "donationsOfSchoolTools": { "title": "Donation of School Supplies for Orphaned Children: Strengthening Young Minds", "description": "Education is a gateway to a brighter future, and donations of school supplies for orphaned children play a crucial role in empowering these young minds with the necessary resources to access quality education. Your contributions provide tools of knowledge and open doors to a better tomorrow.", + "fullDate": "November 24, 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -183,6 +197,8 @@ "donationsOfMedicalEquipments": { "title": "Donations of Medical Equipment: Saving Lives", "description": "Access to quality healthcare is a fundamental right. Donations of medical equipment play a crucial role as a lifeline for healthcare facilities, ensuring critical care and saving lives.", + "fullDate": "November 27, 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -209,6 +225,8 @@ "donationsForEarthQuakeRelief": { "title": "Donations for Earthquake Relief: Rebuilding Lives", "description": "Earthquakes can have devastating effects on communities, leaving many people homeless and in need of emergency assistance. Donations for earthquake relief serve as a lifeline for those affected, helping to rebuild lives and communities after a disaster.", + "fullDate": "November 24, 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, diff --git a/public/locales/fr/blogs.json b/public/locales/fr/blogs.json index a09bc6b..6741d73 100644 --- a/public/locales/fr/blogs.json +++ b/public/locales/fr/blogs.json @@ -5,6 +5,8 @@ "eidElFitrBlog": { "title": "L'Esprit du Don : Dons de l'Eid al-Fitr", "description": "L'Eid al-Fitr, également connu sous le nom de 'Fête de la rupture du jeûne,' est une fête importante célébrée par les musulmans du monde entier. Elle marque la fin du Ramadan, un mois de jeûne, de prière et de réflexion personnelle. Au-delà des festins et des rassemblements joyeux, l'Eid al-Fitr revêt une signification spirituelle profonde, notamment en ce qui concerne l'acte de donner et la charité.", + "fullDate": "14 Septembre 2023", + "shortDate": "Sep 2023", "content": { "1": { "id": 1, @@ -31,6 +33,8 @@ "donationsInGaza": { "title": "Dons à Gaza : Soutien aux personnes dans le besoin", "description": "Le peuple de Gaza a fait face à de nombreux défis, et votre soutien peut faire une différence significative dans leurs vies. Les dons à Gaza aident à fournir une aide essentielle, un soulagement et de l'espoir à ceux qui en ont besoin.", + "fullDate": "19 Octobre 2023", + "shortDate": "Oct 2023", "content": { "1": { "id": 1, @@ -57,6 +61,8 @@ "isolatedAreasDonations": { "title": "Dons dans les Zones Isolées : Apporter de l'Espoir aux Défavorisés", "description": "Les zones isolées et reculées sont souvent confrontées à des défis uniques, allant de l'accès limité aux services essentiels aux difficultés économiques. Les dons aux zones isolées peuvent faire une différence significative dans la vie de ceux qui sont défavorisés et ont besoin de soutien.", + "fullDate": "05 Novembre 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -83,6 +89,8 @@ "donationsInEidalAdha": { "title": "Dons de l'Aïd al-Adha : Festival du Sacrifice et de l'Aide", "description": "L'Aïd al-Adha, également connu sous le nom de 'Festival du Sacrifice et de l'Aide', est l'une des fêtes islamiques les plus importantes célébrées par les musulmans du monde entier. Cette fête commémore la disposition du prophète Ibrahim à sacrifier son fils en obéissance à Dieu. Au-delà des rituels symboliques et des festins, l'Aïd al-Adha met en avant les valeurs de sacrifice et de bienfaisance.", + "fullDate": "17 Novembre 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -109,6 +117,8 @@ "donationInRamadan": { "title": "Dons pendant le Ramadan : Temps de Don et de Compassion", "description": "Le Ramadan est le mois du jeûne, de la prière et de la réflexion pour les musulmans du monde entier. C'est également un moment de générosité croissante et de don à la communauté.", + "fullDate": "23 Novembre 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -135,6 +145,8 @@ "donationsToFoodBanks": { "title": "Dons aux banques alimentaires : Lutte contre la faim", "description": "La faim est un problème urgent auquel de nombreux individus et familles sont confrontés. Les dons aux banques alimentaires constituent une ressource vitale pour la nutrition et le soutien, visant à soulager la faim et à améliorer la vie des personnes dans le besoin.", + "fullDate": "24 Novembre 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -161,6 +173,8 @@ "donationsOfSchoolTools": { "title": "Don de fournitures scolaires pour les enfants orphelins : Renforcer les jeunes esprits", "description": "L'éducation est une porte vers un avenir plus lumineux, et les dons de fournitures scolaires pour les enfants orphelins jouent un rôle crucial en renforçant ces jeunes esprits avec les ressources nécessaires pour accéder à une éducation de qualité. Vos contributions fournissent des outils de connaissance et ouvrent les portes à un lendemain meilleur.", + "fullDate": "24 Novembre 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -187,6 +201,8 @@ "donationsOfMedicalEquipments": { "title": "Dons d'équipements médicaux : Sauver des vies", "description": "L'accès à des services de santé de qualité est un droit fondamental. Les dons d'équipements médicaux jouent un rôle essentiel en tant que bouée de sauvetage pour les établissements de santé, assurant des soins critiques et garantissant le sauvetage de vies.", + "fullDate": "27 Novembre 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, @@ -213,6 +229,8 @@ "donationsForEarthQuakeRelief": { "title": "Dons pour le Secours après les Tremblements de Terre : Reconstruire des Vies", "description": "Les tremblements de terre peuvent avoir des effets dévastateurs sur les communautés, laissant de nombreuses personnes sans abri et ayant besoin d'une aide d'urgence. Les dons pour le secours après les tremblements de terre sont une bouée de sauvetage pour les personnes touchées, aidant à reconstruire des vies et des communautés après une catastrophe.", + "fullDate": "24 Novembre 2023", + "shortDate": "Nov 2023", "content": { "1": { "id": 1, diff --git a/public/locales/tr/blogs.json b/public/locales/tr/blogs.json index d2e4388..7af188d 100644 --- a/public/locales/tr/blogs.json +++ b/public/locales/tr/blogs.json @@ -5,6 +5,8 @@ "eidElFitrBlog": { "title": "Verme Ruhu: Ramazan Bayramı Bağışları", "description": "Eid al-Fitr, oruç tutmanın, ibadetin ve özeleştirinin yapıldığı bir ay olan Ramazan'ın sonunu işaret eden, dünya çapında kutlanan önemli bir Müslüman bayramıdır. Bayram yemekleri ve sevinçli toplantıların ötesinde, Eid al-Fitr, özellikle verme ve sadaka etme eylemiyle derin manevi bir öneme sahiptir.", + "fullDate": "14 Eylül 2023", + "shortDate": "Eyl 2023", "content": { "1": { "id": 1, @@ -31,6 +33,8 @@ "donationsInGaza": { "title": "Gazze'deki Bağışlar: İhtiyaç Sahiplerine Destek", "description": "Gazze halkı birçok zorlukla karşılaştı ve sizin desteğiniz, hayatlarında önemli bir fark yaratabilir. Gazze'ye yapılan bağışlar, ihtiyaç sahiplerine temel yardım, yardım ve umut sağlamaya yardımcı olur.", + "fullDate": "19 Ekim 2023", + "shortDate": "Eki 2023", "content": { "1": { "id": 1, @@ -57,6 +61,8 @@ "isolatedAreasDonations": { "title": "İzole Alanlara Bağışlar: Dezavantajlılara Umut Getirme", "description": "İzole ve uzak bölgeler genellikle sınırlı temel hizmetlere erişimden ekonomik zorluklara kadar benzersiz zorluklarla karşı karşıyadır. İzole alanlara yapılan bağışlar, ihtiyaç içinde olanların hayatlarında önemli bir fark yaratabilir.", + "fullDate": "05 Kasım 2023", + "shortDate": "Kas 2023", "content": { "1": { "id": 1, @@ -83,6 +89,8 @@ "donationsInEidalAdha": { "title": "Kurban Bayramı Bağışları: Kurban ve Yardım Festivali", "description": "Kurban Bayramı, 'Kurban ve Yardım Festivali' olarak da bilinen, dünya genelindeki Müslümanlar tarafından kutlanan en önemli İslami bayramlardan biridir. Bu bayram, Hz. İbrahim'in oğlunu Tanrı'ya itaat etme eylemi olarak kurban etmeye istekli olmasını anmaktadır. Sembolik ritüeller ve ziyafetlerin ötesinde, Kurban Bayramı fedakarlık ve yardımseverlik değerlerini vurgular.", + "fullDate": "17 Kasım 2023", + "shortDate": "Kas 2023", "content": { "1": { "id": 1, @@ -109,6 +117,8 @@ "donationInRamadan": { "title": "Ramazan'da Bağışlar: Verme ve Şefkat Zamanı", "description": "Ramazan, dünya genelindeki Müslümanlar için oruç, dua ve düşünce ayıdır. Aynı zamanda artan cömertlik ve topluluğa geri verme zamanıdır.", + "fullDate": "23 Kasım 2023", + "shortDate": "Kas 2023", "content": { "1": { "id": 1, @@ -135,6 +145,8 @@ "donationsToFoodBanks": { "title": "Yiyecek Bankalarına Bağışlar: Açlıkla Mücadele", "description": "Açlık, birçok birey ve ailenin karşılaştığı acil bir sorundur. Yiyecek bankalarına yapılan bağışlar, beslenme ve destek için hayati bir kaynak olup, açlığı hafifletmeyi ve ihtiyaç içinde olanların yaşamını iyileştirmeyi amaçlar.", + "fullDate": "24 Kasım 2023", + "shortDate": "Kas 2023", "content": { "1": { "id": 1, @@ -161,6 +173,8 @@ "donationsOfSchoolTools": { "title": "Yetim Çocuklar İçin Okul Araçları Bağışı: Genç Zihinleri Güçlendirmek", "description": "Eğitim, daha aydınlık bir geleceğe giden bir kapıdır ve yetim çocuklar için okul araçları bağışları, bu genç zihinleri kaliteli eğitime erişim için gerekli kaynaklarla güçlendirmede kritik bir rol oynar. Katkılarınız, bilgi araçlarını sağlar ve yarının daha iyi olmasına kapıları aralar.", + "fullDate": "24 Kasım 2023", + "shortDate": "Kas 2023", "content": { "1": { "id": 1, @@ -187,6 +201,8 @@ "donationsOfMedicalEquipments": { "title": "Tıbbi Ekipman ve Malzeme Bağışları: Hayat Kurtarmak", "description": "Kaliteli sağlık hizmetlerine erişim, temel bir insan hakkıdır. Tıbbi ekipman ve malzeme bağışları, sağlık tesisleri ve kuruluşları için bir can simidi olarak görev yapar, kritik bakım sağlama ve hayat kurtarma konusunda güvence sağlar.", + "fullDate": "27 Kasım 2023", + "shortDate": "Kas 2023", "content": { "1": { "id": 1, @@ -213,6 +229,8 @@ "donationsForEarthQuakeRelief": { "title": "Depremler Sonrası Canları Kurtarmak İçin Bağışlar: Yaşamları Yeniden İnşa Etmek", "description": "Depremler topluluklar üzerinde yıkıcı etkilere sahip olabilir, birçok kişiyi evsiz bırakarak acil yardıma ihtiyaç duyarlar. Depremler sonrası yardım için yapılan bağışlar, etkilenenler için bir can simidi olup, felaket sonrası yaşamları ve toplulukları yeniden inşa etmeye yardımcı olur.", + "fullDate": "24 Kasım 2023", + "shortDate": "Kas 2023", "content": { "1": { "id": 1, diff --git a/src/components/BlogCard/HorizontalCard.jsx b/src/components/BlogCard/HorizontalCard.jsx index c4212ba..5a41e51 100644 --- a/src/components/BlogCard/HorizontalCard.jsx +++ b/src/components/BlogCard/HorizontalCard.jsx @@ -3,11 +3,10 @@ import Link from "next/link"; import { useTranslation } from "next-i18next"; import { IoIosArrowDropright } from "react-icons/io"; -import { formatDate, truncateString } from "@/lib/helpers"; +import { truncateString } from "@/lib/helpers"; -function HorizontalCard({ title, description, imageUrl, createdAt, id }) { +function HorizontalCard({ title, description, imageUrl, id, blogKey }) { const { t } = useTranslation(); - const date = formatDate(createdAt, "MMM YYYY"); const truncatedDescription = truncateString(description, 200); return (
@@ -32,7 +31,7 @@ function HorizontalCard({ title, description, imageUrl, createdAt, id }) { {truncatedDescription}

- {date} + {t(`blogs:${blogKey}:shortDate`)} - 2023-10-28 - + undefined.shortDate
@@ -25,7 +22,7 @@ function BlogCard({ id, title, imageUrl, createdAt }) { {title}
- {date} + {t(`blogs:${blogKey}:shortDate`)} - Invalid date + + undefined.shortDate
{/* blog header */} From a4f2f514d6ac7d57e7ae75e9b0f86583352b9b77 Mon Sep 17 00:00:00 2001 From: Riadh mouamnia Date: Fri, 24 Nov 2023 16:11:49 +0100 Subject: [PATCH 9/9] fix(blog cards): fix translation --- src/components/BlogCard/HorizontalCard.jsx | 25 +++++++++++++------ .../__snapshots__/BlogCard.test.js.snap | 3 ++- src/components/BlogCard/index.jsx | 20 ++++++++++----- .../__snapshots__/BlogsSection.test.js.snap | 6 ++--- src/pages/index.jsx | 1 + 5 files changed, 38 insertions(+), 17 deletions(-) diff --git a/src/components/BlogCard/HorizontalCard.jsx b/src/components/BlogCard/HorizontalCard.jsx index 5a41e51..d0a2393 100644 --- a/src/components/BlogCard/HorizontalCard.jsx +++ b/src/components/BlogCard/HorizontalCard.jsx @@ -1,13 +1,16 @@ import Image from "next/image"; import Link from "next/link"; import { useTranslation } from "next-i18next"; -import { IoIosArrowDropright } from "react-icons/io"; +import { IoIosArrowDropleft, IoIosArrowDropright } from "react-icons/io"; import { truncateString } from "@/lib/helpers"; -function HorizontalCard({ title, description, imageUrl, id, blogKey }) { - const { t } = useTranslation(); - const truncatedDescription = truncateString(description, 200); +function HorizontalCard({ description, imageUrl, id, blogKey }) { + const { i18n, t } = useTranslation(); + const truncatedDescription = truncateString( + t(`blogs:${blogKey}:description`), + 200 + ); return (
@@ -21,8 +24,11 @@ function HorizontalCard({ title, description, imageUrl, id, blogKey }) { />
-

- {title} +

+ {t(`blogs:${blogKey}:title`)}

{t("common:buttons:readMore")} - + {i18n.language !== "ar" ? ( + + ) : null} + {i18n.language === "ar" ? ( + + ) : null}

diff --git a/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap b/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap index 8cb16ed..d366c01 100644 --- a/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap +++ b/src/components/BlogCard/__test__/__snapshots__/BlogCard.test.js.snap @@ -31,8 +31,9 @@ exports[`renders correctly 1`] = ` >

- title + undefined.title

@@ -18,8 +18,11 @@ function BlogCard({ id, title, imageUrl, blogKey }) { />
-

- {title} +

+ {t(`blogs:${blogKey}:title`)}

{t(`blogs:${blogKey}:shortDate`)} @@ -28,7 +31,12 @@ function BlogCard({ id, title, imageUrl, blogKey }) { className='text-secondary hover:text-secondary font-bold flex items-center gap-2' > {t("common:buttons:readMore")} - + {i18n.language !== "ar" ? ( + + ) : null} + {i18n.language === "ar" ? ( + + ) : null}
diff --git a/src/components/LandingPage/BlogsSection/__test__/__snapshots__/BlogsSection.test.js.snap b/src/components/LandingPage/BlogsSection/__test__/__snapshots__/BlogsSection.test.js.snap index 3873084..c1e17b4 100644 --- a/src/components/LandingPage/BlogsSection/__test__/__snapshots__/BlogsSection.test.js.snap +++ b/src/components/LandingPage/BlogsSection/__test__/__snapshots__/BlogsSection.test.js.snap @@ -92,15 +92,15 @@ exports[`renders correctly 1`] = ` >

- Hello + undefined.title

- Hello + undefined.description