Skip to content

Conversation

@Robot-Inventor
Copy link
Contributor

@Robot-Inventor Robot-Inventor commented Jan 4, 2026

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.

\### 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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant