From 0389294b1a800dec483bb656616763899ef1248b Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Tue, 24 Feb 2026 05:30:25 +0100 Subject: [PATCH] fix: language switcher stuck in French on store dashboard Three compounding bugs prevented language switching on the store dashboard: - Cookie missing path="/", scoping it to the API endpoint path only - STORE frontend resolution chain ignored the cookie entirely - Store header used inline x-data with wrong language names instead of shared languageSelector() Also updates architecture doc with correct per-frontend resolution priorities, cookie name, API endpoint path, and file references. Co-Authored-By: Claude Opus 4.6 --- app/templates/store/partials/header.html | 30 ++--------------- app/utils/i18n.py | 11 +++++-- docs/architecture/language-i18n.md | 41 +++++++++++++----------- middleware/language.py | 4 ++- 4 files changed, 35 insertions(+), 51 deletions(-) diff --git a/app/templates/store/partials/header.html b/app/templates/store/partials/header.html index 8cded813..ce849547 100644 --- a/app/templates/store/partials/header.html +++ b/app/templates/store/partials/header.html @@ -37,33 +37,7 @@ -
  • +