-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: When using domain-based routing, use
defaultLocale
of a domain…
… instead of the top-level one in case no other locale matches better on the domain (#1000) Fixes #998 Note that the `defaultLocale` of a domain is used if no other locale matches better. However, if a domain supports multiple locales, the best-matching one will be selected based on the `accept-language` header. If you want to always use the `defaultLocale` in case no prefix is provided, then you can turn off `localeDetection`.
- Loading branch information
Showing
4 changed files
with
109 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,7 @@ | |
}, | ||
{ | ||
"path": "dist/production/middleware.js", | ||
"limit": "5.95 KB" | ||
"limit": "6 KB" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters