Skip to content

Commit 04f2b08

Browse files
authored
fix(ui5-calendar): correct month button text localization (#5246)
FIXES: #5242
1 parent 20d8b83 commit 04f2b08

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)