From dd601857a14d14a9c1c394846bb95c5dd6859af9 Mon Sep 17 00:00:00 2001 From: TheFlow Date: Fri, 17 Oct 2025 08:47:15 +1300 Subject: [PATCH] fix(i18n): resolve language selector display issues with cache-busting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language Selector Issues Resolved: - Add cache-busting version (v0.1.0.1760643941) to i18n-simple.js - Add cache-busting version to language-selector.js on all pages - Previously: Scripts cached without versions, causing stale JS to load - Now: Browser forced to reload latest language selector code Pages Updated with Cache-Busting: - index.html: Added ?v= to both i18n scripts - about.html: Added ?v= to both i18n scripts - researcher.html: Added ?v= to both i18n scripts - leader.html: Added ?v= to both i18n scripts - implementer.html: Added ?v= to both i18n scripts - faq.html: Added ?v= to both i18n scripts - docs.html: Added missing i18n scripts + cache-busting Root Cause Analysis: - navbar.js had cache-busting (?v=0.1.0.1760254958072) - i18n scripts had NO cache-busting - Browsers served cached old versions of language-selector.js - Language selector container created by navbar, but old selector code failed Technical Details: - Desktop language selector: Already correctly shows dropdown only (hidden md:block) - Mobile language selector: Already correctly shows icons only (flex md:hidden) - No code changes needed - cache was the issue - Script loading order: navbar.js → i18n-simple.js → language-selector.js Deployment: - All 7 HTML pages deployed to production - Language selector now appears on all pages including index.html - Cache invalidation forces browser to fetch new JavaScript 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- public/about.html | 4 ++-- public/docs.html | 4 ++++ public/faq.html | 4 ++-- public/implementer.html | 4 ++-- public/index.html | 4 ++-- public/leader.html | 4 ++-- public/researcher.html | 4 ++-- 7 files changed, 16 insertions(+), 12 deletions(-) diff --git a/public/about.html b/public/about.html index 6a57a658..0a18b2fe 100644 --- a/public/about.html +++ b/public/about.html @@ -281,8 +281,8 @@ - - + + diff --git a/public/docs.html b/public/docs.html index a9199a5b..4794a0cb 100644 --- a/public/docs.html +++ b/public/docs.html @@ -815,5 +815,9 @@ + + + + diff --git a/public/faq.html b/public/faq.html index 211646ec..51eef888 100644 --- a/public/faq.html +++ b/public/faq.html @@ -679,8 +679,8 @@ - - + + diff --git a/public/implementer.html b/public/implementer.html index f67a7c14..c63b698c 100644 --- a/public/implementer.html +++ b/public/implementer.html @@ -779,8 +779,8 @@ if (pressure.level === 'CRITICAL') { - - + + diff --git a/public/index.html b/public/index.html index c6737caf..dfc8d434 100644 --- a/public/index.html +++ b/public/index.html @@ -400,8 +400,8 @@ This framework acknowledges Te Tiriti o Waitangi and indigenous leadership in di - - + + diff --git a/public/leader.html b/public/leader.html index 76760797..a94cdd59 100644 --- a/public/leader.html +++ b/public/leader.html @@ -614,8 +614,8 @@ - - + + diff --git a/public/researcher.html b/public/researcher.html index a130568d..cf116a53 100644 --- a/public/researcher.html +++ b/public/researcher.html @@ -547,8 +547,8 @@ - - + +