skip to Main Content

Reactjs – Next js 14 – How to use i18n

I am starting a project from scratch with next js 14, using /app as the directory and not using src and I have a problem when trying to use i18n according to the vercel guide Following this guide https://next-intl-docs.vercel.app/docs/getting-started/pages-router I…

VIEW QUESTION

Javascript – Sending an object with Next.js and it is showing up as undefined on the page I am sending it to

I am sending an object called footprintsData from my question screen to a result screen as shown below: const footprintsData = { carFootprint: roundedCarFootprint, electricityFootprint: roundedElectricityFootprint, gasFootprint: roundedGasFootprint, commuteFootprint: roundedCommuteFootprint, airTravelFootprint: roundedAirTravelFootprint, totalFootprint: parseFloat(totalFootprint.toFixed(2)), }; router.push({ pathname: "/results", query: {…

VIEW QUESTION
Back To Top
Search