* Helper method to format year range text * @private
(yearRange: CalendarYearRangeT)
| 1035 | * @private |
| 1036 | */ |
| 1037 | _formatYearRangeText(yearRange: CalendarYearRangeT) { |
| 1038 | const yearFormat = DateFormat.getDateInstance({ format: "y", calendarType: this.primaryCalendarType }); |
| 1039 | const { rangeStart, rangeEnd } = this._createYearRangeDates(yearRange, this.primaryCalendarType); |
| 1040 | |
| 1041 | const rangeStartText = yearFormat.format(rangeStart.toLocalJSDate()); |
| 1042 | const rangeEndText = yearFormat.format(rangeEnd.toLocalJSDate()); |
| 1043 | |
| 1044 | return { rangeStartText, rangeEndText }; |
| 1045 | } |
| 1046 | |
| 1047 | get secondMonthButtonText() { |
| 1048 | const secondMonthButtonText = this.secondaryCalendarTypeButtonText?.monthButtonText as string; |
no test coverage detected