@haiilo/catalyst 10.21.1 → 10.21.2

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.
@@ -5257,9 +5257,11 @@ function daysForLocale(language, weekday = 'long') {
5257
5257
  return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
5258
5258
  }
5259
5259
  function monthsForLocale(language, month = 'long') {
5260
- const date = new Date(0);
5261
- const format = new Intl.DateTimeFormat(language, { month }).format;
5262
- return [...Array(12).keys()].map(month => format(new Date(date.getTime()).setUTCMonth(month)));
5260
+ return Array.from({ length: 12 }, (_, i) => {
5261
+ const date = new Date();
5262
+ date.setMonth(i);
5263
+ return date.toLocaleString(language, { month });
5264
+ });
5263
5265
  }
5264
5266
  function getLocale$1(language) {
5265
5267
  return {