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>
62 lines
2.7 KiB
JSON
62 lines
2.7 KiB
JSON
{
|
|
"page": {
|
|
"title": "Frequently Asked Questions | Tractatus AI Safety Framework",
|
|
"description": "Common questions about Tractatus framework: implementation, performance, relationship to Claude Code, and governance architecture."
|
|
},
|
|
"header": {
|
|
"title": "Frequently Asked Questions",
|
|
"subtitle": "Common questions about Tractatus framework implementation, performance, and architecture",
|
|
"search_btn": "Search FAQ"
|
|
},
|
|
"browse_by_audience": {
|
|
"heading": "Browse by Audience",
|
|
"researcher_title": "Researchers",
|
|
"researcher_desc": "Theory, validation, academic research",
|
|
"implementer_title": "Implementers",
|
|
"implementer_desc": "Implementation, integration, deployment",
|
|
"leader_title": "Leaders",
|
|
"leader_desc": "Strategic business, organizational leadership",
|
|
"note": "Click any category to see filtered questions in advanced search"
|
|
},
|
|
"featured_questions": {
|
|
"heading": "Featured Questions",
|
|
"view_all_btn": "View All Questions & Search"
|
|
},
|
|
"search_modal": {
|
|
"title": "Search FAQ",
|
|
"search_placeholder": "Search FAQ...",
|
|
"filter_audience_label": "Filter by Audience",
|
|
"all_audiences": "All Audiences",
|
|
"researcher": "Researcher",
|
|
"implementer": "Implementer",
|
|
"leader": "Leader",
|
|
"clear_filters_btn": "Clear Filters",
|
|
"no_results_title": "No questions found",
|
|
"no_results_desc": "Try adjusting your search or filter"
|
|
},
|
|
"search_tips": {
|
|
"title": "Search Tips",
|
|
"basic_search_title": "Basic Search",
|
|
"basic_search_desc": "Type keywords in the search box to find relevant questions. The search looks through both questions and answers.",
|
|
"basic_search_example": "Example: \"deployment\" or \"performance overhead\"",
|
|
"audience_filter_title": "Audience Filter",
|
|
"audience_filter_desc": "Filter questions by intended audience:",
|
|
"researcher_filter_desc": "Academic questions about theory and validation",
|
|
"implementer_filter_desc": "Technical implementation and integration questions",
|
|
"leader_filter_desc": "Strategic business and organizational questions",
|
|
"tips_title": "Search Tips",
|
|
"tip_1": "Use specific terms for better results",
|
|
"tip_2": "Filter by audience to narrow results",
|
|
"tip_3": "Questions are searchable by keywords",
|
|
"tip_4": "Click any question to expand the full answer",
|
|
"keyboard_shortcuts_title": "Keyboard Shortcuts",
|
|
"close_search": "Close search"
|
|
},
|
|
"still_have_questions": {
|
|
"title": "Still Have Questions?",
|
|
"description": "Can't find what you're looking for? We're here to help.",
|
|
"submit_case_study_btn": "Submit a Case Study",
|
|
"github_discussions_btn": "GitHub Discussions",
|
|
"media_inquiry_btn": "Media Inquiry"
|
|
}
|
|
}
|