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/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; 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 ( - +