TheFlow
|
06c3631ec4
|
feat: add multilingual support for 5 key pages (researcher, leader, implementer, about, faq)
Translation Infrastructure:
- Created 15 new translation files (en/de/fr) for 5 pages
- Enhanced i18n-simple.js to auto-detect page names
- Added page detection logic mapping URLs to translation files
- Supports researcher, leader, implementer, about, faq pages
Translation Files Created:
English (en/):
- researcher.json (research foundations, empirical observations)
- leader.json (governance gap, architectural approach, EU AI Act)
- implementer.json (integration approaches, quick start, deployment)
- about.json (mission, values, origin story, license)
- faq.json (search modal, browse by audience, tips)
German (de/):
- researcher.json (Forschungsgrundlagen, Empirische Beobachtungen)
- leader.json (Governance-Lücke, Architektonischer Ansatz)
- implementer.json (Integrationsansätze, Schnellstart)
- about.json (Mission, Werte, Ursprungsgeschichte)
- faq.json (Häufig gestellte Fragen)
French (fr/):
- researcher.json (Fondements de Recherche, Observations Empiriques)
- leader.json (Lacune de Gouvernance, Approche Architecturale)
- implementer.json (Approches d'Intégration, Démarrage Rapide)
- about.json (Mission, Valeurs, Histoire d'Origine)
- faq.json (Questions Fréquemment Posées)
Technical Changes:
- i18n-simple.js: Added detectPageName() method
- Maps URL paths to translation file names
- Loads page-specific translations automatically
- researcher.html: Added data-i18n attributes to header section
Language Selector:
- Already deployed on all 6 pages (mobile icon-based design)
- Now backed by full translation infrastructure
- Switching languages loads correct page-specific translations
Implementation Status:
✅ Translation files: Complete (15 files, ~350 translation keys)
✅ i18n system: Enhanced with page detection
✅ Proof of concept: Working on researcher.html
⏳ Full implementation: data-i18n attributes needed on remaining pages
Next Steps for Full i18n:
- Add data-i18n attributes to leader.html (~60 elements)
- Add data-i18n attributes to implementer.html (~70 elements)
- Add data-i18n attributes to about.html (~40 elements)
- Add data-i18n attributes to faq.html (~30 elements)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-16 23:11:12 +13:00 |
|
TheFlow
|
44a91e7fcf
|
feat: add case submission portal admin interface and i18n support
Case Submission Portal (Admin Moderation Queue):
- Add statistics endpoint (GET /api/cases/submissions/stats)
- Enhance filtering: status, failure_mode, AI relevance score
- Add sorting options: date, relevance, completeness
- Create admin moderation interface (case-moderation.html)
- Implement CSP-compliant admin UI (no inline event handlers)
- Deploy moderation actions: approve, reject, request-info
- Fix API parameter mapping for different action types
Internationalization (i18n):
- Implement lightweight i18n system (i18n-simple.js, ~5KB)
- Add language selector component with flag emojis
- Create German and French translations for homepage
- Document Te Reo Māori translation requirements
- Add i18n attributes to homepage
- Integrate language selector into navbar
Bug Fixes:
- Fix search button modal display on docs.html (remove conflicting flex class)
Page Enhancements:
- Add dedicated JS modules for researcher, leader, koha pages
- Improve page-specific functionality and interactions
Documentation:
- Add I18N_IMPLEMENTATION_SUMMARY.md (implementation guide)
- Add TE_REO_MAORI_TRANSLATION_REQUIREMENTS.md (cultural sensitivity guide)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-16 14:50:47 +13:00 |
|