Skip to content

Commit

Permalink
Describe relation between region locale and country locale when a cou…
Browse files Browse the repository at this point in the history
…ntry is not found (#37745)

* Update i18n-routing.md

* lint-fix

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
eric-burel and ijjk committed Jun 20, 2022
1 parent 8db1ad9 commit 5035075
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/advanced-features/i18n-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Generally a Locale Identifier is made up of a language, region, and script separ
- `nl-NL` - Dutch as spoken in the Netherlands
- `nl` - Dutch, no specific region

If user locale is `nl-BE` and it is not listed in your configuration, they will be redirected to `nl` if available, or to the default locale otherwise.
If you don't plan to support all regions of a country, it is therefore a good practice to include country locales that will act as fallbacks.

```js
// next.config.js
module.exports = {
Expand Down

0 comments on commit 5035075

Please sign in to comment.