@haiilo/catalyst 10.21.1 → 10.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5253,9 +5253,11 @@ function daysForLocale(language, weekday = 'long') {
5253
5253
  return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
5254
5254
  }
5255
5255
  function monthsForLocale(language, month = 'long') {
5256
- const date = new Date(0);
5257
- const format = new Intl.DateTimeFormat(language, { month }).format;
5258
- return [...Array(12).keys()].map(month => format(new Date(date.getTime()).setUTCMonth(month)));
5256
+ return Array.from({ length: 12 }, (_, i) => {
5257
+ const date = new Date();
5258
+ date.setMonth(i);
5259
+ return date.toLocaleString(language, { month });
5260
+ });
5259
5261
  }
5260
5262
  function getLocale$1(language) {
5261
5263
  return {