Nextjs, React, Localization, Routing, Web Development.
TypeScript counterpart: type Props = { params: { [lang: string]: string }; }; export default function Home({ params: { lang } }: Props) { console.log(lang); return <div>Home - Language: {lang}</div>; } Note that the console.log will output in your terminal because, by default, the components inside