Skip to content

Commit

Permalink
Make the generic not-found page locale aware
Browse files Browse the repository at this point in the history
Refs #1817
  • Loading branch information
thewilkybarkid committed Nov 29, 2024
1 parent 72d78cd commit b3ae2a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ const appMiddleware: RM.ReaderMiddleware<RouterEnv & LegacyEnv, StatusOpen, Resp
pipe(
RM.of({}),
RM.apS('user', maybeGetUser),
RM.apS(
'locale',
RM.asks((env: RouterEnv) => env.locale),
),
RM.apSW('response', RM.of(pageNotFound)),
RM.ichainW(handleResponse),
),
Expand Down

0 comments on commit b3ae2a7

Please sign in to comment.