6a7c0ef255
A six-week summer used to render as a row of disconnected bars, because bars were derived per week row and grouped by parent and day type. They carried no identity and ignored pointer events, so there was nothing to click. Bands now group by the wish that produced them, bridge the weekends and red days inside a period, and round only the ends that are genuinely the first and last day. Each day still shows what pays for it, and a hand-edited day is marked as one the planner will leave alone. Sundays and public holidays now render red and Saturdays a neutral grey, following the printed almanacka people compare against, and a holiday's name is visible in the cell rather than hidden in a tooltip. This also explains the report that months looked unshaded: weekends had no styling at all, since the day component handled only red days and klämdagar. The year selector follows the range the calendar API actually serves instead of a hardcoded span.
67 lines
3.4 KiB
TypeScript
67 lines
3.4 KiB
TypeScript
export const calendar = {
|
|
'calendar.advanceMonthAria': '{month} - click to advance month',
|
|
'calendar.advanceYearAria': '{year} - click to advance year',
|
|
'calendar.selectMonthAria': 'Select month',
|
|
'calendar.selectYearAria': 'Select year',
|
|
'calendar.deleteError': 'Failed to delete the planned day',
|
|
'calendar.legendDoubleDay': 'Double day',
|
|
'calendar.legendIncomeBased': 'Income-based rate (sjukpenningnivå)',
|
|
'calendar.legendKlamdag': 'Bridge day',
|
|
'calendar.legendMinimumRate': 'Minimum rate (lägstanivå)',
|
|
'calendar.legendOverride': 'Exception (working/day off)',
|
|
'calendar.legendRedDay': 'Public holiday',
|
|
'calendar.legendTitle': 'Legend',
|
|
'calendar.legendVacation': 'Vacation',
|
|
'calendar.loading': 'Loading calendar...',
|
|
'calendar.nextMonthAria': 'Next month',
|
|
'calendar.overrideError': 'Failed to update the exception',
|
|
'calendar.overrideModeActiveLabel': 'Stop editing days',
|
|
'calendar.overrideModeHint': 'Click a day to mark it as a working day or a day off. Click a marked day again to reset it.',
|
|
'calendar.overrideModeLabel': 'Mark working/day off',
|
|
'calendar.partner': 'Partner',
|
|
'calendar.prevMonthAria': 'Previous month',
|
|
'calendar.saveError': 'Failed to save the planned days',
|
|
'calendar.weekdayFri': 'Fri',
|
|
'calendar.weekdayMon': 'Mon',
|
|
'calendar.weekdaySat': 'Sat',
|
|
'calendar.weekdaySun': 'Sun',
|
|
'calendar.weekdayThu': 'Thu',
|
|
'calendar.weekdayTue': 'Tue',
|
|
'calendar.weekdayWed': 'Wed',
|
|
'calendar.you': 'You',
|
|
'calendarDay.ariaWithEvents': '{date} with {count} event(s)',
|
|
'calendarDay.klamdagAria': 'bridge day',
|
|
'calendarDay.overrideFreeAria': 'marked as a day off (exception)',
|
|
'calendarDay.overrideWorkingAria': 'marked as a working day (exception)',
|
|
'calendarDay.pinnedAria': 'pinned by you — the planner will not retype this day',
|
|
'calendarDay.sundayAria': 'Sunday',
|
|
'calendarEvent.dismissAria': 'Dismiss {leaveType}',
|
|
'plannedDayModal.cancelButton': 'Cancel',
|
|
'plannedDayModal.closeAria': 'Close',
|
|
'plannedDayModal.confirmDelete': 'Are you sure you want to delete this planned day?',
|
|
'plannedDayModal.deleteButton': 'Delete',
|
|
'plannedDayModal.deleteError': 'Failed to delete planned day',
|
|
'plannedDayModal.deletingButton': 'Deleting…',
|
|
'plannedDayModal.doubleDayHint': 'Double days do not apply to vacation',
|
|
'plannedDayModal.doubleDayLabel': 'Double day (both parents taking leave)',
|
|
'plannedDayModal.editTitle': 'Edit Planned Day',
|
|
'plannedDayModal.lagstaOption': 'Lägstanivå (minimum-rate, 90-day tier)',
|
|
'plannedDayModal.leaveTypeLabel': 'Leave Type',
|
|
'plannedDayModal.newTitle': 'Plan a Day',
|
|
'plannedDayModal.parentLabel': 'Parent',
|
|
'plannedDayModal.rangeTitle': 'Plan {count} days',
|
|
'plannedDayModal.saveButton': 'Save',
|
|
'plannedDayModal.saveError': 'Failed to save planned day',
|
|
'plannedDayModal.savingButton': 'Saving…',
|
|
'plannedDayModal.sjukpenningOption': 'Sjukpenningnivå (income-based, 390-day tier)',
|
|
'plannedDayModal.vacationOption': 'Vacation',
|
|
'redDaysList.effectiveFree': 'Off',
|
|
'redDaysList.effectiveWorking': 'Working day',
|
|
'redDaysList.emptyYear': 'No public holidays or exceptions this year.',
|
|
'redDaysList.loading': 'Loading public holidays...',
|
|
'redDaysList.nextWindow': 'Next 4 years',
|
|
'redDaysList.overrideFree': 'Exception: day off',
|
|
'redDaysList.overrideWorking': 'Exception: working day',
|
|
'redDaysList.prevWindow': 'Previous 4 years',
|
|
} as const
|