getLocaleMonthNames
function
deprecatedsince v18
Retrieves months of the year for the given locale, using the Gregorian calendar.
Deprecation warning
API
function getLocaleMonthNames(
locale: string,
formStyle: FormStyle,
width: TranslationWidth,
): readonly string[];getLocaleMonthNames
readonly string[]Retrieves months of the year for the given locale, using the Gregorian calendar.
@paramlocale
stringA locale code for the locale format rules to use.
@returns
readonly string[]Jump to details