3.8 KiB
3.8 KiB
phase, plan, subsystem, tags, requires, provides, affects, tech-stack, key-files, key-decisions, patterns-established, duration, completed
| phase | plan | subsystem | tags | requires | provides | affects | tech-stack | key-files | key-decisions | patterns-established | duration | completed | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 15-locale-detection-routing | 03 | ui |
|
|
|
|
|
|
|
|
2min | 2026-02-02 |
Phase 15 Plan 03: Language Preferences & Suggestion Banner Summary
Account settings language preference dropdown and LocaleSuggestionBanner component with Accept-Language detection and dismissible UI
Performance
- Duration: 2 min
- Started: 2026-02-02T01:06:50Z
- Completed: 2026-02-02T01:09:02Z
- Tasks: 3
- Files modified: 7
Accomplishments
- Added Language Preference section to account settings with en/pl/de dropdown
- Created LocaleSuggestionBanner component with browser language detection
- Implemented dismissal cookie and manual selection cookie integration
- Added responsive sticky banner CSS with gradient styling
Task Commits
Each task was committed atomically:
- Task 1: Add language preference section to account settings -
652b035(feat) [theme] - Task 2: Create LocaleSuggestionBanner component -
8f8885f(feat) [translate plugin] - Task 3: Add banner CSS and integrate into layout -
006987e(feat) [theme]
Submodule update: 82796d1 (feat: submodule pointer update)
Files Created/Modified
Created:
plugins/golem15/translate/components/LocaleSuggestionBanner.php- Component with browser detectionplugins/golem15/translate/components/localesuggestionbanner/default.htm- Banner partialthemes/quotify/assets/css/components/locale-banner.css- Banner styles
Modified:
themes/quotify/partials/account/update.htm- Added Language Preference sectionthemes/quotify/layouts/default.htm- Registered and rendered banner componentthemes/quotify/assets/css/app.css- Imported locale-banner.cssplugins/golem15/translate/Plugin.php- Registered LocaleSuggestionBanner component
Decisions Made
- Banner shows localized text in the suggested language (Polish/German) rather than current page language
- Uses 1-week dismissal cookie to prevent annoyance while still showing eventually
- Banner appears after flash messages, before page-wrapper for maximum visibility
Deviations from Plan
None - plan executed exactly as written.
Issues Encountered
None.
User Setup Required
None - no external service configuration required.
Next Phase Readiness
- Language preferences fully functional for logged-in users
- Browser language detection and suggestion banner working
- Ready for Phase 15-04 (Auto-redirect Strategy) if planned
Phase: 15-locale-detection-routing Completed: 2026-02-02