mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-17 09:39:56 -06:00
- Add Norwegian (Norsk) language support with locale code normalization (no -> nb) - Create Norwegian translation files (translations/nb/ and translations/no/) - Fill empty Norwegian translation strings with English fallback values - Add locale normalization for Flask-Babel compatibility (no -> nb mapping) - Update context processor to correctly display 'Norsk' label instead of 'NB' Translation improvements: - Wrap all hardcoded strings in templates with _() translation function - Add missing translations for setup, timer, tasks, invoices, and admin templates - Ensure brandnames 'drytrix' and 'TimeTracker' remain untranslated across all languages - Add new translation strings to all language files (en, de, nl, fr, it, fi, es, no, ar, he) - Update translation files for: initial_setup, manual_entry, tasks/list, email_templates, etc. Bug fixes: - Add missing /api/summary/today endpoint for daily summary notifications - Fix 'Response body already consumed' error in smart-notifications.js - Improve translation compilation logging and error handling - Add debug endpoint /debug/i18n for troubleshooting translation issues Technical changes: - Improve ensure_translations_compiled() with better logging - Add locale normalization function for Norwegian locale handling - Update context processor to reverse-map normalized locales for display - Fix JavaScript fetch error handling to check response.ok before reading body