From 325aaa509b8713d96b6aeebd3235b7949f2eed37 Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sun, 26 Oct 2025 10:09:42 +1300 Subject: [PATCH] fix(docs): resolve language persistence and duplicate selector issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed three P0 bugs preventing language selection from persisting: 1. **Removed duplicate language selector** (docs.html:499-508) - Page had both navbar flags AND dropdown selector - Caused UX confusion (two selectors, no sync) - Now uses navbar flags only (consistent with site) 2. **Fixed localStorage key mismatch** (docs-app.js:207) - i18n-simple.js used 'tractatus-lang' - docs-app.js used 'tractatus_language' (underscore) - Unified to 'tractatus-lang' for persistence 3. **Removed dead code** (docs-app.js:836-871) - initLanguageSelector() expected removed dropdown - Caused potential JS errors - Navbar language-selector.js now handles all switching **Result:** - ✅ Single language selector (navbar flags) - ✅ Language persists across page reloads - ✅ No JavaScript errors - ✅ Ready for Caixin Global launch (Oct 29) **Version:** 0.1.2 → 0.1.3 (service worker cache bust) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- public/docs.html | 30 ++++++++++-------------------- public/js/docs-app.js | 39 +-------------------------------------- public/version.json | 14 +++++++------- 3 files changed, 18 insertions(+), 65 deletions(-) diff --git a/public/docs.html b/public/docs.html index a69e14b7..fa3894de 100644 --- a/public/docs.html +++ b/public/docs.html @@ -24,9 +24,9 @@ - - - + + +