( locale: string, formStyle: FormStyle, width: TranslationWidth, )
| 297 | * Use `Intl.DateTimeFormat` for date formating instead. |
| 298 | */ |
| 299 | export function getLocaleDayNames( |
| 300 | locale: string, |
| 301 | formStyle: FormStyle, |
| 302 | width: TranslationWidth, |
| 303 | ): ReadonlyArray<string> { |
| 304 | const data = ɵfindLocaleData(locale); |
| 305 | const daysData = <string[][][]>[ |
| 306 | data[ɵLocaleDataIndex.DaysFormat], |
| 307 | data[ɵLocaleDataIndex.DaysStandalone], |
| 308 | ]; |
| 309 | const days = getLastDefinedValue(daysData, formStyle); |
| 310 | return getLastDefinedValue(days, width); |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Retrieves months of the year for the given locale, using the Gregorian calendar. |
no test coverage detected
searching dependent graphs…