SUMMARY: Fixed critical bug where footer displayed translation keys (e.g., "footer.about_heading") instead of actual text on all pages except homepage. ROOT CAUSE: i18n-simple.js only loaded page-specific JSON files (e.g., privacy.json). Footer translations were in homepage.json, so other pages couldn't access them. SOLUTION: 1. Created common.json for Shared Translations: - Created locales/en/common.json (footer translations) - Created locales/de/common.json (footer translations) - Created locales/fr/common.json (footer translations) 2. Updated i18n-simple.js to Load Both: - Always loads common.json (footer, shared UI elements) - Loads page-specific JSON (privacy.json, about.json, etc.) - Merges both (page-specific takes precedence) IMPACT: ✓ Footer now displays correctly in all 3 languages on ALL pages ✓ Privacy page: Footer translates properly (en/de/fr) ✓ All pages: Footer translations work regardless of page-specific JSON ✓ Scalable: Easy to add more shared translations to common.json TESTING: - Verified locally on privacy.html (footer displays "Tractatus Framework") - All 3 languages load correctly from common.json - Page-specific translations still work (privacy content translates) 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
1.3 KiB
JSON
31 lines
1.3 KiB
JSON
{
|
|
"footer": {
|
|
"about_heading": "Tractatus Framework",
|
|
"about_text": "Contraintes architecturales pour la sécurité de l'IA qui préservent l'autonomie humaine par des garanties structurelles, et non aspirationnelles.",
|
|
"documentation_heading": "Documentation",
|
|
"documentation_links": {
|
|
"framework_docs": "Documentation du Framework",
|
|
"about": "À propos",
|
|
"core_values": "Valeurs fondamentales",
|
|
"interactive_demo": "Démo interactive"
|
|
},
|
|
"support_heading": "Support",
|
|
"support_links": {
|
|
"koha": "Support (Koha)",
|
|
"transparency": "Transparence",
|
|
"media_inquiries": "Demandes des médias",
|
|
"submit_case": "Soumettre une étude de cas"
|
|
},
|
|
"legal_heading": "Légal",
|
|
"legal_links": {
|
|
"privacy": "Politique de confidentialité",
|
|
"contact": "Nous contacter",
|
|
"github": "GitHub"
|
|
},
|
|
"te_tiriti_label": "Te Tiriti o Waitangi :",
|
|
"te_tiriti_text": "Nous reconnaissons Te Tiriti o Waitangi et notre engagement envers le partenariat, la protection et la participation. Ce projet respecte la souveraineté des données māori (rangatiratanga) et la tutelle collective (kaitiakitanga).",
|
|
"copyright": "John G Stroh. Sous licence",
|
|
"license": "Apache 2.0",
|
|
"location": "Fabriqué en Aotearoa Nouvelle-Zélande 🇳🇿"
|
|
}
|
|
}
|