Skip to content

Commit 715818a

Browse files
committed
fix(ui5-calendar): fix header month button text localization
Fixes: #5242
1 parent 8e90ad1 commit 715818a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/Calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class Calendar extends CalendarPart {
290290

291291
const yearFormat = DateFormat.getDateInstance({ format: "y", calendarType: this.primaryCalendarType });
292292
const localeData = getCachedLocaleDataInstance(getLocale());
293-
this._headerMonthButtonText = localeData.getMonths("wide", this.primaryCalendarType)[this._calendarDate.getMonth()];
293+
this._headerMonthButtonText = localeData.getMonthsStandAlone("wide", this.primaryCalendarType)[this._calendarDate.getMonth()];
294294

295295
if (this._currentPicker === "year") {
296296
const rangeStart = new CalendarDate(this._calendarDate, this._primaryCalendarType);

0 commit comments

Comments
 (0)