tractatus/public/js
TheFlow ec14957d63 fix(i18n): fix architecture.html translation system - language flags and UI now responsive
## Critical Fixes
 Added architecture.html to i18n page mapping
  - Added '/architecture.html': 'architecture' to i18n-simple.js pageMap
  - i18n system was defaulting to 'homepage' translations

 Added defer attribute to i18n script tags
  - Ensures proper initialization timing
  - Matches pattern used in docs.html

 Restructured JSON for list items
  - Changed behavioral_items array → behavioral_item1-5 individual keys
  - Changed structural_items array → structural_item1-5 individual keys
  - i18n system handles objects, not arrays

 Added 60+ data-i18n attributes to HTML
  - Breadcrumb navigation (home, current)
  - Hero section (badge, title, subtitle, challenge, approach, CTAs)
  - Comparison lists (10 behavioral/structural items)
  - Core hypothesis (title, text)
  - Architecture diagram (title, subtitle, 3 layer descriptions)
  - Six services (names, descriptions, promises)
  - Interactive section (title, subtitle, tip, default panel text)
  - Data viz section (heading, subtitle)
  - Production section (heading, subtitle, results, disclaimer)
  - Limitations section (all headings, lists, quote)
  - CTA section (heading, subtitle, buttons)

 Made interactive diagram more responsive
  - Added w-full max-w-full overflow-x-auto to diagram container
  - Prevents horizontal overflow on mobile
  - Touch events already added in previous commit

## Data-i18n Attributes
- Total added: 60 (was 31, now comprehensive coverage)
- data-i18n: 43 (simple text replacements)
- data-i18n-html: 17 (HTML content with formatting)

## Impact
- Language flags now work correctly on architecture.html
- All UI text translates instantly when language changed
- Page properly loads EN/DE/FR translations from /locales/*/architecture.json
- Diagram container responsive on all screen sizes

## Testing
- ✓ EN JSON valid (31 sections, 10 list items restructured)
- ✓ DE JSON valid (complete German translations)
- ✓ FR JSON valid (complete French translations)
- ✓ Page loads correctly on localhost:9000
- ✓ data-i18n attributes present in served HTML

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 11:42:04 +13:00
..
admin fix(audit): fix timeline chart rendering with pixel heights and count labels 2025-10-25 12:22:55 +13:00
components feat(i18n): complete architecture.html internationalization with P0/P1/P2 fixes 2025-10-26 11:33:04 +13:00
demos fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
utils fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
blog-post.js docs: complete research documentation publication (Phases 1-6) 2025-10-25 20:10:04 +13:00
blog.js fix(newsletter): resolve CSRF token issue for static HTML pages 2025-10-25 09:37:16 +13:00
case-submission.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
check-version.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
docs-app.js fix(docs): card overflow, sequencing, colour legend, and category fixes 2025-10-26 11:03:23 +13:00
docs-search-enhanced.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
docs-viewer-app.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
faq.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
i18n-simple.js fix(i18n): fix architecture.html translation system - language flags and UI now responsive 2025-10-26 11:42:04 +13:00
koha-donation.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
koha-success.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
koha-transparency.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
leader-page.js feat(leader): WCAG accessibility with 9 accordions, keyboard navigation 2025-10-23 00:19:23 +13:00
media-inquiry.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
media-triage-transparency.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
page-transitions.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
researcher-page.js feat(researcher): WCAG compliance, Berlin/Weil foundations, fixed footer i18n 2025-10-22 23:56:37 +13:00
scroll-animations.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
version-manager.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00