Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[next] Add i18n support handling #5298

Merged
merged 13 commits into from Oct 20, 2020
Merged

[next] Add i18n support handling #5298

merged 13 commits into from Oct 20, 2020

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Oct 16, 2020

This adds handling for the new i18n support in Next.js. Currently this relies on fixes in vercel/next.js#17926 for it to work properly and the 00-i18n-support fixture should be updated to use canary after that PR is released.

TODO:

  • locale specific 404
  • enable locale redirects
  • additional tests

x-ref: vercel/next.js#17370

timneutkens
timneutkens previously approved these changes Oct 17, 2020
@leo leo merged commit be82a88 into master Oct 20, 2020
@leo leo deleted the ijjk/next/i18n-support branch October 20, 2020 10:05
@leo
Copy link
Contributor

leo commented Oct 20, 2020

Merging this, as it'll be released on canary first regardless.

kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Oct 20, 2020
This makes sure that we detect the correct default locale for domain specific locales since a domain can have a different default locale residing at the root and we need to check this on the client for prerendered/auto-static pages. This also makes sure we disable the built-in redirect handling when on Vercel since it's handled already. 

Tests for this are tricky since we need to load the browser with a custom domain which requires editing the host file. Existing tests should ensure this doesn't break non-domain specific locale behavior though. This was also tested manually while testing vercel/vercel#5298



x-ref: #17370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants