Closed markkaylor closed 3 years ago
Hey @remidej can you take a look?
default = en, cookie = fr
, then /
will redirect to /fr
pageProps
are null on first load in _app. Not sure why since they are not null when loggingl in getInitialProps
Hey @markkaylor, sorry for checking this so late. The new locale switch dropdown is beautiful ✨
I can't seem to get the warning you're talking about. Here's what happens on my end:
/en
routes work well, they behave like before, just with the added prefix/fr
, which is a 404, but it has a proper french navbarNo worries @remidej kudos to @rgesulfo for the dropdown, I dig it too.
Ok yeah for me it has a 404 but then redirects to the proper fr homepage, maybe we can take a look together tomorrow.
@remidej @alexandrebodin - Updated to use a string as a slug and the same slug for both locales. Thanks for your help :)
If you have time to take a look that would be awesome. Here's Gatsby as well: https://github.com/strapi/strapi-starter-gatsby-corporate/pull/14
But let's wait for the template repo to be updated first before we merge this
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/strapijs/strapi-starter-next-corporate/D6StCMWVUF3EjWsnVZdRrgYP4yWa
✅ Preview: https://strapi-starter-next-corporate-git-feat-i18n-strapijs.vercel.app