( locale: string, formStyle: FormStyle, width: TranslationWidth, )
| 336 | * Use `Intl.DateTimeFormat` for date formating instead. |
| 337 | */ |
| 338 | export function getLocaleMonthNames( |
| 339 | locale: string, |
| 340 | formStyle: FormStyle, |
| 341 | width: TranslationWidth, |
| 342 | ): ReadonlyArray<string> { |
| 343 | const data = ɵfindLocaleData(locale); |
| 344 | const monthsData = <string[][][]>[ |
| 345 | data[ɵLocaleDataIndex.MonthsFormat], |
| 346 | data[ɵLocaleDataIndex.MonthsStandalone], |
| 347 | ]; |
| 348 | const months = getLastDefinedValue(monthsData, formStyle); |
| 349 | return getLastDefinedValue(months, width); |
| 350 | } |
| 351 | |
| 352 | /** |
| 353 | * Retrieves Gregorian-calendar eras for the given locale. |
no test coverage detected