Conversation
|
Size Change: -587 kB (-6.88%) ✅ Total Size: 7.95 MB
ℹ️ View Unchanged
|
packages/esm-appointments-app/src/calendar/header/calendar-header.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-appointments-app/src/calendar/header/calendar-header.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-appointments-app/src/calendar/monthly/days-of-week.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-appointments-app/src/calendar/monthly/days-of-week.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-appointments-app/src/calendar/monthly/monthly-header.component.tsx
Outdated
Show resolved
Hide resolved
02b2afc to
eeea827
Compare
packages/esm-appointments-app/src/workload/monthly-view-workload/monthly-view.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-appointments-app/src/workload/monthly-view-workload/monthly-view.component.tsx
Outdated
Show resolved
Hide resolved
| const monthViewDate = dateToDisplay === '' ? selectedDate : dateToDisplay; | ||
| const daysInWeeks = daysInWeek.map((day) => t(day)); | ||
| const todayDate = toCalendarDate(today(getLocalTimeZone())); | ||
| const todayShort = new Intl.DateTimeFormat(getLocale(), { weekday: 'short' }) |
There was a problem hiding this comment.
This is sort of obviously broken because you'll only get the correct strings if the locale is English right?
There was a problem hiding this comment.
This is sort of obviously broken because you'll only get the correct strings if the locale is English right?
i have tested it on spanish , french locales and it works . On other locals like Romania , Portuguese it fails
There was a problem hiding this comment.
Sorry, I was thinking about the daysInWeeks thing below because that array is English names...
There was a problem hiding this comment.
Sorry, I was thinking about the
daysInWeeksthing below because that array is English names...
yeah it's clear @ibacher , have updated it to switch to the user's locale
packages/esm-appointments-app/src/workload/monthly-view-workload/monthly-view.component.tsx
Outdated
Show resolved
Hide resolved
|
thanks @ibacher, i would appreciate another round of review |
Requirements
Summary
Rework the appointments calendar display to use
@internationalized/daterather thandayjsto determine the current month and calculate the number of days in the month, etc. The correct calendar can be determined by calling the esm-framework functiongetDefaultCalendar()which looks up the default calendar associated with the user’s current locale and returns that.Screenshots
Related Issue
https://openmrs.atlassian.net/browse/O3-5089?isEligibleForUserSurvey=true
Other