PxlSyl / pablo-pikassiet-next-starter-i18n

Pablo Pikassiet I18n is a free starter template built with Nextjs, TailwindCSS & TypeScript, providing everything you need to jumpstart your artist Next project and save valuable time.
https://pablo-pikassiet-next-starter-i18n.vercel.app
MIT License
10 stars 2 forks source link

Difficulty changing "About" for different lanaguages #6

Closed JTG947 closed 2 months ago

JTG947 commented 2 months ago

Hi PxlSyl, I have facing problems with code in file /app/[locale]/about/page.tsx

const About = ({ params: { locale } }: PageProps) => { const pagetitle = locale === fallbackLng ? 'About' : 'À propos' const data: RegularPage = getListPage(about/${locale}/_index.md) const { frontmatter, content } = data const { title, image } = frontmatter

In the above code I am finding difficulties to change the About Heading for more than two languages. I am building website for more than 10 lanaguages. Please help me as to how can I map the different "About" from about.json?