An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
The day and week units in Calendar are not localized (month and year are localized).
To reproduce:
open "basic" calendar example
switch to "Day" view:
switch language to Swedish for example
Hover the cursor over the "Next day" button and observe localization not applied:
Same for week
Traced down to get stepUnit() accessor in DayView.
Part 2
Once Part1 is fixed, need to make localization for Calendar.previous and Calendar.next in German locale context-aware (see how its done in russian locale for example) - should use different endings for different units:
Is -> should be
Vorherige jahr -> Vorheriges Jahr
Nächste jahr -> Nächstes Jahr
Vorherige monat -> Vorheriger Monat
Nächste monat -> Nächster Monat
Vorherige week -> Vorherige Woche
Nächste week -> Nächste Woche
Vorherige day -> Vorheriger Tag
Nächste day -> Nächster Tag
Forum post
Part 1
The
day
andweek
units in Calendar are not localized (month
andyear
are localized).To reproduce:
get stepUnit()
accessor inDayView
.Part 2
Once Part1 is fixed, need to make localization for
Calendar.previous
andCalendar.next
in German locale context-aware (see how its done in russian locale for example) - should use different endings for different units: