tractatus/public
TheFlow 0982cc247d feat(i18n): add language selector UI to docs page
Added interactive language switcher dropdown to make translations accessible:

UI Changes:
- Added language selector dropdown to docs.html header
- Flag emojis + language names (🇬🇧 English, 🇩🇪 Deutsch, 🇫🇷 Français)
- Positioned next to search button in page header

Functionality:
- Detect language from URL param, localStorage, or default to English
- Save language choice to localStorage for persistence
- Auto-reload document when language changes
- Update URL with ?lang= parameter
- Preserves selected document when switching languages

Implementation:
- Enhanced detectLanguage() to check URL > localStorage > i18n > default
- Added initLanguageSelector() IIFE to wire up dropdown
- Dropdown reflects current language on page load

User Experience:
- One-click language switching
- Language persists across page reloads
- Seamless document reload in new language
- URL updates to reflect language choice

🌐 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 02:02:48 +13:00
..
.well-known fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
about fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
admin fix(audit): fix timeline chart rendering with pixel heights and count labels 2025-10-25 12:22:55 +13:00
css fix(css): correct justify-center syntax error in loading overlay 2025-10-24 12:41:53 +13:00
demos fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
docs fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
downloads fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
fonts fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
images docs: complete research documentation publication (Phases 1-6) 2025-10-25 20:10:04 +13:00
js feat(i18n): add language selector UI to docs page 2025-10-26 02:02:48 +13:00
koha feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00
locales fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
about.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
api-reference.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
architecture.html fix(cache): update architecture.html cache version for interactive diagram 2025-10-24 18:28:42 +13:00
blog-post.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
blog.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
case-submission.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
check-version.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
docs-viewer.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
docs.html feat(i18n): add language selector UI to docs page 2025-10-26 02:02:48 +13:00
faq.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
favicon-new.svg fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
favicon.ico fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
favicon.svg fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
implementer.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
implementer.html.backup fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
index.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
koha.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
leader.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
manifest.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
media-inquiry.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
media-triage-transparency.html fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
privacy.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
researcher.html chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00
service-worker.js chore: bump cache version to 0.1.5 for recategorization deployment 2025-10-26 00:52:17 +13:00
test-pressure-chart.html fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
version.json chore: bump cache version for deployment 2025-10-25 21:41:24 +13:00