docs(tasks): add footer language persistence task for next session

SUMMARY:
Added new task for implementing language-persistent footer component
and translating privacy.html into English, German, and French.

CHANGES:

1. Added Task 7: Footer Language Persistence & Privacy Page Translations
   - Status: Not started (scheduled for next session)
   - Effort: Medium (2-3 hours)

2. Requirements documented:
   - Footer component with language detection and localStorage persistence
   - Privacy page translations (en/de/fr)
   - Navbar language persistence integration
   - Language selector icons in footer and navbar

3. Files to create/modify identified:
   - public/js/components/footer.js (enhance)
   - public/locales/[de,fr,en]/privacy.json (new)
   - public/privacy.html (add i18n)
   - public/js/components/navbar.js (add persistence)

BENEFITS:
- Better UX for international users
- Legal compliance (privacy in native languages)
- Consistent language experience across site
- Improved accessibility

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
TheFlow 2025-10-19 14:10:20 +13:00
parent 0d3c579c1f
commit 7864717a92
2 changed files with 55 additions and 2 deletions

View file

@ -3730,6 +3730,13 @@
"file": "/home/theflow/projects/tractatus/public/koha/transparency.html",
"result": "passed",
"reason": null
},
{
"hook": "validate-file-edit",
"timestamp": "2025-10-19T01:09:59.866Z",
"file": "/home/theflow/projects/tractatus/SCHEDULED_TASKS.md",
"result": "passed",
"reason": null
}
],
"blocks": [
@ -3951,9 +3958,9 @@
}
],
"session_stats": {
"total_edit_hooks": 362,
"total_edit_hooks": 363,
"total_edit_blocks": 32,
"last_updated": "2025-10-19T01:06:30.214Z",
"last_updated": "2025-10-19T01:09:59.866Z",
"total_write_hooks": 171,
"total_write_blocks": 4
}

View file

@ -176,6 +176,52 @@ async function migrate() {
---
### 7. Footer Language Persistence & Privacy Page Translations
**Scheduled:** Next available session
**Effort:** Medium (2-3 hours)
**Status:** Not started
**Description:**
Implement language-persistent footer component and translate privacy.html into English, German, and French.
**Requirements:**
1. **Footer Component Language Persistence:**
- Create footer.js component with language detection
- Store user's language preference in localStorage
- Automatically display footer in user's selected language
- Support English, German (de), French (fr)
- Include language selector icons in footer
2. **Privacy Page Translations:**
- Translate privacy.html content into German
- Translate privacy.html content into French
- Create /privacy.html?lang=de route
- Create /privacy.html?lang=fr route
- Use i18n-simple.js for translation management
- Maintain WCAG 2.1 AA compliance in all languages
3. **Navbar Language Persistence:**
- Update navbar.js to persist language selection
- Sync with footer language preference
- Show current language with flag icons
**Files to Create/Modify:**
- `public/js/components/footer.js` (enhance with i18n)
- `public/locales/de/privacy.json` (new)
- `public/locales/fr/privacy.json` (new)
- `public/locales/en/privacy.json` (new)
- `public/privacy.html` (add i18n support)
- `public/js/components/navbar.js` (add persistence)
**Benefits:**
- Better UX for international users
- Legal compliance (privacy in native languages)
- Consistent language experience across site
- Improved accessibility
---
## 🔍 Low Priority
### 4. Workflow Status UI Indicators