( locale: string, formStyle: FormStyle, width: TranslationWidth, )
| 306 | * Use `Intl.DateTimeFormat` for date formating instead. |
| 307 | */ |
| 308 | export function getLocaleDayNames( |
| 309 | locale: string, |
| 310 | formStyle: FormStyle, |
| 311 | width: TranslationWidth, |
| 312 | ): ReadonlyArray<string> { |
| 313 | const data = ɵfindLocaleData(locale); |
| 314 | const daysData = <string[][][]>[ |
| 315 | data[ɵLocaleDataIndex.DaysFormat], |
| 316 | data[ɵLocaleDataIndex.DaysStandalone], |
| 317 | ]; |
| 318 | const days = getLastDefinedValue(daysData, formStyle); |
| 319 | return getLastDefinedValue(days, width); |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * Retrieves months of the year for the given locale, using the Gregorian calendar. |
no test coverage detected