Skip to content

Commit

Permalink
Add __nextLocale to query params
Browse files Browse the repository at this point in the history
  • Loading branch information
vonschau committed Nov 24, 2020
1 parent 02f0822 commit bd6ce94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class Routes {
if (route) {
req.locale = route.locale
req.nextRoute = route
query.__nextLocale = route.locale

if (customHandler) {
customHandler({ req, res, route, query })
Expand Down

0 comments on commit bd6ce94

Please sign in to comment.