Nextjs, React, Localization, Routing, Web Development.
console.log(lang); const dict = await getDictionary(lang); return <div>Home in {lang}: {dict.home}</div>; } Note that in the component we are: importing the getDictionary function making the function async so we can use the await keyword once we get the correct dictionary, we save it in dict and