fix: vitrine/marketing pages use visitor's browser locale, not always English (v0.78.0)

getMarketingLocale() only ever read the marketing_locale cookie, defaulting anonymous first-time visitors to English until they manually used the language switcher — even though the switcher and a full French translation already existed. Now falls back to parsing Accept-Language when no cookie is set; an explicit switcher choice still wins on every later visit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-24 11:49:57 +02:00
parent 4aa47ca61d
commit 355ba944ad
6 changed files with 40 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@epicure/web",
"version": "0.77.0",
"version": "0.78.0",
"private": true,
"scripts": {
"dev": "next dev",