bug: Knowledge page titles not switching with language (except proper names) #21
Labels
No labels
backend
bug
completed
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
in-progress
invalid
performance
phase-1
Phase1
Phase2
Phase3
planning
question
refactor
security
test
testing
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Kalle/ATM#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Report
Affected Page: https://testing.atm.apps.hoerstudio-puchinger.de/de/knowledge
Problem Description
Knowledge entry titles remain in the default language when switching languages. The app should display content in the currently selected language (German/English).
Current Behavior
/en/knowledgeto/de/knowledgeExpected Behavior
Investigation
Current Implementation
File:
src/components/knowledge/KnowledgeList.tsxCurrent code displays entry titles directly from database:
Knowledge Database Schema
Proposed Solutions
Option A: Add Translatable Fields to Database (Recommended)
Schema Update:
Display Logic:
Migration:
de: ""field (fill later)proper_names: truemanuallyOption B: Separate Translation Table
Schema:
Query:
Option C: i18n Integration with Translation Keys
Use next-intl translation keys for knowledge base:
Recommendation: Option A is most practical for dynamic content
Implementation Plan
Phase 1: Database Schema Update (High Priority)
KnowledgeEntryinterface with translatable fieldsPhase 2: UI Language Detection & Display
Phase 3: Content Migration Tool
Phase 4: AI-Assisted Translation (Optional - v0.4.0)
Use AI to auto-translate content:
Acceptance Criteria
Questions
Related Issues
Priority
High - Language switching is core feature, currently broken
Suggested Label: bug,i18n,Phase3,priority:high
✅ Issue #21 COMPLETED - Language switching for knowledge pages is now fully implemented.
What was fixed:
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL= to useEffect dependency)
Files changed:
Testing:
Commits:
27a2506,4aebd06,039a83f,136ef0d