diff --git a/public/locales/en/addItem.json b/public/locales/en/addItem.json index 9e16adc..973caf8 100644 --- a/public/locales/en/addItem.json +++ b/public/locales/en/addItem.json @@ -11,7 +11,7 @@ "descriptionPlaceHolder": "Add a description", "imageLabel": "Image", "imageRequired": "You need to provide an image", - "locationLabel": "Province", + "locationLabel": "Wilaya", "locationRequired": "Location is required", "listingType": "Listing type", "itemTagRequired": "Item type is required", diff --git a/src/components/BlogCard/HorizontalCard.jsx b/src/components/BlogCard/HorizontalCard.jsx index d0a2393..72c7f0f 100644 --- a/src/components/BlogCard/HorizontalCard.jsx +++ b/src/components/BlogCard/HorizontalCard.jsx @@ -43,13 +43,11 @@ function HorizontalCard({ description, imageUrl, id, blogKey }) { className='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/BlogCard/index.jsx b/src/components/BlogCard/index.jsx index 322f035..b2e0881 100644 --- a/src/components/BlogCard/index.jsx +++ b/src/components/BlogCard/index.jsx @@ -33,10 +33,9 @@ function BlogCard({ id, imageUrl, blogKey }) { {t("common:buttons:readMore")} {i18n.language !== "ar" ? ( - ) : null} - {i18n.language === "ar" ? ( + ) : ( - ) : null} + )} diff --git a/src/components/BlogsCard/index.jsx b/src/components/BlogsCard/index.jsx index ebd697c..a0a6751 100644 --- a/src/components/BlogsCard/index.jsx +++ b/src/components/BlogsCard/index.jsx @@ -1,7 +1,7 @@ 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"; export default function BlogsCard({ title, @@ -47,8 +47,11 @@ export default function BlogsCard({ className='text-secondary font-bold flex items-center gap-2' > {t("common:buttons:readMore")} - - + {i18n.language !== "ar" ? ( + + ) : ( + + )} diff --git a/src/components/Footer/__test__/__snapshots__/Footer.test.js.snap b/src/components/Footer/__test__/__snapshots__/Footer.test.js.snap index 45adf41..4f34425 100644 --- a/src/components/Footer/__test__/__snapshots__/Footer.test.js.snap +++ b/src/components/Footer/__test__/__snapshots__/Footer.test.js.snap @@ -25,6 +25,7 @@ exports[`renders correctly 1`] = `
      { @@ -29,7 +29,10 @@ function Footer() {
    -
    +
    • {t("common:buttons:about")}
    • @@ -63,7 +66,10 @@ function Footer() {
-
+
  • {t("common:footer:address")}
  • {t("common:footer:street")}
  • diff --git a/src/components/LandingPage/BlogsSection/index.jsx b/src/components/LandingPage/BlogsSection/index.jsx index 7eb139c..5723c65 100644 --- a/src/components/LandingPage/BlogsSection/index.jsx +++ b/src/components/LandingPage/BlogsSection/index.jsx @@ -30,10 +30,9 @@ function BlogsSection({ blogs }) { {t("common:buttons:readMore")} {i18n.language !== "ar" ? ( - ) : null} - {i18n.language === "ar" ? ( + ) : ( - ) : null} + )} {/* Cards Section */} diff --git a/src/components/Newsletter/NewsletterForm.jsx b/src/components/Newsletter/NewsletterForm.jsx index b2d76aa..f2443fe 100644 --- a/src/components/Newsletter/NewsletterForm.jsx +++ b/src/components/Newsletter/NewsletterForm.jsx @@ -39,7 +39,7 @@ function NewsletterForm({ onValidated }) {

    {t("newsletter:newsletterTitle")}

    -

    +

    {t("newsletter:newsletterDescription")}
    {t("newsletter:newsletterJoin")} diff --git a/src/components/Newsletter/__test__/__snapshots__/Newsletter.test.js.snap b/src/components/Newsletter/__test__/__snapshots__/Newsletter.test.js.snap index 7b4789c..0482273 100644 --- a/src/components/Newsletter/__test__/__snapshots__/Newsletter.test.js.snap +++ b/src/components/Newsletter/__test__/__snapshots__/Newsletter.test.js.snap @@ -16,7 +16,7 @@ Array [ newsletterTitle

    newsletterDescription
    diff --git a/src/components/Newsletter/__test__/__snapshots__/NewsletterForm.test.js.snap b/src/components/Newsletter/__test__/__snapshots__/NewsletterForm.test.js.snap index 7b4789c..0482273 100644 --- a/src/components/Newsletter/__test__/__snapshots__/NewsletterForm.test.js.snap +++ b/src/components/Newsletter/__test__/__snapshots__/NewsletterForm.test.js.snap @@ -16,7 +16,7 @@ Array [ newsletterTitle

    newsletterDescription
    diff --git a/src/context/AuthProvider.jsx b/src/context/AuthProvider.jsx index 84483c6..d6031df 100644 --- a/src/context/AuthProvider.jsx +++ b/src/context/AuthProvider.jsx @@ -76,7 +76,7 @@ export function AuthContextProvider({ children }) { date: serverTimestamp(), }); setUser(user.user); - toast.success(`Hi ${userInfo.name}, Thank you for joing in us! 😍`, { + toast.success(`Hi ${userInfo.name}, Thank you for joining us! 😍`, { position: toast.POSITION.TOP_CENTER, autoClose: 1500, }); @@ -144,7 +144,7 @@ export function AuthContextProvider({ children }) { }); setUser(user); toast.success( - `Hi ${user.user.displayName}, Thank you for joing in us! 😍`, + `Hi ${user.user.displayName}, Thank you for joining us! 😍`, { position: toast.POSITION.TOP_CENTER, autoClose: 1500, @@ -208,7 +208,7 @@ export function AuthContextProvider({ children }) { }); setUser(user); toast.success( - `Hi ${user.user.displayName}, Thank you for joing in us! 😍`, + `Hi ${user.user.displayName}, Thank you for joining us! 😍`, { position: toast.POSITION.TOP_CENTER, autoClose: 1500, @@ -273,7 +273,7 @@ export function AuthContextProvider({ children }) { }); setUser(user); toast.success( - `Hi ${user.user.displayName}, Thank you for joing in us! 😍`, + `Hi ${user.user.displayName}, Thank you for joining us! 😍`, { position: toast.POSITION.TOP_CENTER, autoClose: 1500,