Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6fbe5b43
Unverified
Commit
6fbe5b43
authored
Nov 05, 2020
by
JJ Kasper
Committed by
GitHub
Nov 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add note about domain locales (#18845)
parent
907888c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
i18n-routing.md
docs/advanced-features/i18n-routing.md
+5
-1
No files found.
docs/advanced-features/i18n-routing.md
View file @
6fbe5b43
...
@@ -91,7 +91,7 @@ By using domain routing you can configure locales to be served from different do
...
@@ -91,7 +91,7 @@ By using domain routing you can configure locales to be served from different do
// next.config.js
// next.config.js
module
.
exports
=
{
module
.
exports
=
{
i18n
:
{
i18n
:
{
locales
:
[
'en-US'
,
'fr'
,
'nl-NL'
],
locales
:
[
'en-US'
,
'fr'
,
'nl-NL'
,
'nl-BE'
],
defaultLocale
:
'en-US'
,
defaultLocale
:
'en-US'
,
domains
:
[
domains
:
[
...
@@ -106,6 +106,9 @@ module.exports = {
...
@@ -106,6 +106,9 @@ module.exports = {
{
{
domain
:
'example.nl'
,
domain
:
'example.nl'
,
defaultLocale
:
'nl-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:
...
@@ -117,6 +120,7 @@ For example if you have `pages/blog.js` the following urls will be available:
-
`example.com/blog`
-
`example.com/blog`
-
`example.fr/blog`
-
`example.fr/blog`
-
`example.nl/blog`
-
`example.nl/blog`
-
`example.nl/nl-BE/blog`
## Automatic Locale Detection
## Automatic Locale Detection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment