From 18c4855729115041230c130678e214985d4f08cf Mon Sep 17 00:00:00 2001 From: Eric Burel Date: Thu, 16 Jun 2022 09:51:51 +0200 Subject: [PATCH 1/2] Update i18n-routing.md --- docs/advanced-features/i18n-routing.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/advanced-features/i18n-routing.md b/docs/advanced-features/i18n-routing.md index 032c152381368..6fce48bc51f1d 100644 --- a/docs/advanced-features/i18n-routing.md +++ b/docs/advanced-features/i18n-routing.md @@ -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 = { From fe441583f184e4aa912bb429f51cb94258eef14d Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 20 Jun 2022 10:23:39 -0500 Subject: [PATCH 2/2] lint-fix --- docs/advanced-features/i18n-routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced-features/i18n-routing.md b/docs/advanced-features/i18n-routing.md index 6fce48bc51f1d..03ffd73999fcd 100644 --- a/docs/advanced-features/i18n-routing.md +++ b/docs/advanced-features/i18n-routing.md @@ -27,7 +27,7 @@ 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 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