From 3498a02097f37863647d91e914452b217e9520e2 Mon Sep 17 00:00:00 2001 From: selvi Date: Mon, 18 Aug 2025 23:34:19 +0530 Subject: [PATCH] inner banenr created --- components/pagetitle/PageTitle.js | 4 +++- pages/about/index.js | 6 ++++-- pages/about/our-mission.js | 6 ++++-- pages/about/racial-justice.js | 6 ++++-- pages/blog/index.js | 6 ++++-- pages/contact/index.js | 6 ++++-- pages/our-approach/index.js | 8 +++++--- public/locales/en/innerBanner.json | 32 ++++++++++++++++++++++++++++++ public/locales/es/innerBanner.json | 32 ++++++++++++++++++++++++++++++ 9 files changed, 92 insertions(+), 14 deletions(-) create mode 100644 public/locales/en/innerBanner.json create mode 100644 public/locales/es/innerBanner.json diff --git a/components/pagetitle/PageTitle.js b/components/pagetitle/PageTitle.js index 1569cfc..85a1dd3 100644 --- a/components/pagetitle/PageTitle.js +++ b/components/pagetitle/PageTitle.js @@ -1,7 +1,9 @@ import React from 'react' import Link from 'next/link' +import { useTranslation } from 'next-i18next'; const PageTitle = (props) => { + const { t } = useTranslation('innerBanner'); return (
{

{props.pageTitle}

    -
  1. Home
  2. +
  3. {t('home.pageTitle')}
  4. {props.pagesub}
diff --git a/pages/about/index.js b/pages/about/index.js index b9285ee..6d94002 100644 --- a/pages/about/index.js +++ b/pages/about/index.js @@ -21,12 +21,14 @@ import TestimonialSection from '../../components/aboutPage/TestimonialSection'; import TestimonialSection2 from '../../components/aboutPage/TestimonialSection2'; import bg from '/public/images/about/about-banner.webp' import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; +import { useTranslation } from 'next-i18next'; const AboutPage = () => { + const { t } = useTranslation('innerBanner'); return ( - + {/* */} @@ -48,7 +50,7 @@ export default AboutPage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'ourStory', 'aboutService', 'aboutMission', 'aboutRacial', 'aboutDonor', 'footer'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'ourStory', 'aboutService', 'aboutMission', 'aboutRacial', 'aboutDonor', 'footer', 'innerBanner'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/pages/about/our-mission.js b/pages/about/our-mission.js index 49d6d77..6453a7c 100644 --- a/pages/about/our-mission.js +++ b/pages/about/our-mission.js @@ -5,14 +5,16 @@ import Scrollbar from '../../components/scrollbar/scrollbar' import Footer from '../../components/footer/Footer'; import OurMission from '../../components/our-mission'; import mission from '/public/images/about/our-mission-banner.png'; +import { useTranslation } from 'next-i18next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; const AboutPage = () => { + const { t } = useTranslation('innerBanner'); return ( - +