Resolve "The banner displays an empty message if the language is switched before the banner is marked “read”"
requested to merge 456-the-banner-displays-an-empty-message-if-the-language-is-switched-before-the-banner-is-marked into main
Related to #456 (closed)
This was an issue on nextjs end, the context locale in getServerSideProps was always the default locale when using router.push. https://github.com/vercel/next.js/issues/54217#issuecomment-1764135891
Moving the middleware.ts file in pages folder seems to fix the issue with no need to downgrade in our case.
Edited by Simon Mulquin