Both helpers read from cached Intl tables in core and return a fresh array on every call. Callers can map, slice, or reverse the returned list freely without mutating shared state.
monthNames()
monthNames(style?, locale?): string[]
Returns an array of 12 localized Gregorian month names from January through December. Defaults to full names in the configured locale.
Parameters
style'long' | 'short'default 'long'
Full month names like 'January' or abbreviated names like 'Jan'.
localeLocale
BCP 47 locale tag overriding the configured default.
Returns
string[]
Twelve month labels ordered from index 0 for January through 11 for December.
Returns an array of 7 localized weekday labels rotated to begin on firstDay, the configured weekStart from app settings, or the active locale’s first day of the week.
Week boundaries in startOf('week') and week ranges follow the same first-day rule, so calendar headers always match week grids. Custom weekday labels set in configure() apply here too.
Parameters
style'short' | 'long' | 'narrow'default 'short'
Abbreviated labels like 'Mon', full names like 'Monday', or compact two-letter and single-letter headers like 'Mo'.
firstDayDayOfWeek
Starting weekday name or ISO number from 1 for Monday through 7 for Sunday.
localeLocale
BCP 47 locale tag overriding the configured default.
Returns
string[]
Seven weekday labels starting on firstDay, the configured weekStart, or the locale's first day.