Skip to content

Commit 06c7515

Browse files
committed
fix(ui5-calendar): fix displayed month name (#5212)
The core handling of the CLDR data and CLDR data itsef is correct. The root cause seems to be the usage of getMonths in the MonthPicker. Exchanging it with getMonthsStandAlone resolves the issue. This is the method used in the OpenUI5 equivalent. Fixes: #5120
1 parent 066ff40 commit 06c7515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/MonthPicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class MonthPicker extends CalendarPart {
103103
}
104104

105105
const localeData = getCachedLocaleDataInstance(getLocale());
106-
const monthsNames = localeData.getMonths("wide", this._primaryCalendarType);
106+
const monthsNames = localeData.getMonthsStandAlone("wide", this._primaryCalendarType);
107107

108108
const months = [];
109109
const calendarDate = this._calendarDate; // store the value of the expensive getter

0 commit comments

Comments
 (0)