Commit 0acff80
authored
fix(next): persist language cookie across browser sessions (#15081)
### What?
Persist the language selection cookie by setting a max age so it
survives browser restarts.
### Why?
The language cookie was session-only, so closing the browser reset the
language preference.
### How?
Add `maxAge` to the language cookie set in `switchLanguageServerAction`
within `packages/next/src/layouts/Root/index.tsx`.1 parent a00267d commit 0acff80
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
0 commit comments