( locale: string, formStyle: FormStyle, width: TranslationWidth, )
| 326 | * Use `Intl.DateTimeFormat` for date formating instead. |
| 327 | */ |
| 328 | export function getLocaleMonthNames( |
| 329 | locale: string, |
| 330 | formStyle: FormStyle, |
| 331 | width: TranslationWidth, |
| 332 | ): ReadonlyArray<string> { |
| 333 | const data = ɵfindLocaleData(locale); |
| 334 | const monthsData = <string[][][]>[ |
| 335 | data[ɵLocaleDataIndex.MonthsFormat], |
| 336 | data[ɵLocaleDataIndex.MonthsStandalone], |
| 337 | ]; |
| 338 | const months = getLastDefinedValue(monthsData, formStyle); |
| 339 | return getLastDefinedValue(months, width); |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Retrieves Gregorian-calendar eras for the given locale. |
no test coverage detected
searching dependent graphs…