Unverified Commit 6fbe5b43 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add note about domain locales (#18845)

parent 907888c7
......@@ -91,7 +91,7 @@ By using domain routing you can configure locales to be served from different do
// next.config.js
module.exports = {
i18n: {
locales: ['en-US', 'fr', 'nl-NL'],
locales: ['en-US', 'fr', 'nl-NL', 'nl-BE'],
defaultLocale: 'en-US',
domains: [
......@@ -106,6 +106,9 @@ module.exports = {
{
domain: 'example.nl',
defaultLocale: 'nl-NL',
// specify other locales that should be redirected
// to this domain
locales: ['nl-BE'],
},
],
},
......@@ -117,6 +120,7 @@ For example if you have `pages/blog.js` the following urls will be available:
- `example.com/blog`
- `example.fr/blog`
- `example.nl/blog`
- `example.nl/nl-BE/blog`
## Automatic Locale Detection
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment