From e20c995ff860e6e8c51e7d1e8f59d43df57752e9 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Mon, 18 Aug 2025 23:31:31 +0530 Subject: [PATCH 1/2] standalone added to next config file --- next-i18next.config.js | 2 +- next.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index 3ffc8de..f6b4cef 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -7,7 +7,7 @@ module.exports = { }, ns: ['common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog', 'footer', 'ourMission', 'racialJustice', 'services', 'ourStory', 'aboutService', 'aboutMission', 'aboutRacial', 'aboutDonor', 'ourApproach', 'contact'], defaultNS: 'common', - // localePath: './public/locales', + localePath: './public/locales', }; // aakash - 'ourMission', 'racialJustice', 'services' diff --git a/next.config.js b/next.config.js index 3ac652c..0008610 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,7 @@ const nextConfig = { unoptimized: true // ✅ disables server-side image optimization }, i18n, + output: 'standalone', }; module.exports = nextConfig; From 3498a02097f37863647d91e914452b217e9520e2 Mon Sep 17 00:00:00 2001 From: selvi Date: Mon, 18 Aug 2025 23:34:19 +0530 Subject: [PATCH 2/2] 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 ( - +