( locale: string, formStyle: FormStyle, width: TranslationWidth, )
| 268 | * Use `Intl.DateTimeFormat` for date formating instead. |
| 269 | */ |
| 270 | export function getLocaleDayPeriods( |
| 271 | locale: string, |
| 272 | formStyle: FormStyle, |
| 273 | width: TranslationWidth, |
| 274 | ): Readonly<[string, string]> { |
| 275 | const data = ɵfindLocaleData(locale); |
| 276 | const amPmData = <[string, string][][]>[ |
| 277 | data[ɵLocaleDataIndex.DayPeriodsFormat], |
| 278 | data[ɵLocaleDataIndex.DayPeriodsStandalone], |
| 279 | ]; |
| 280 | const amPm = getLastDefinedValue(amPmData, formStyle); |
| 281 | return getLastDefinedValue(amPm, width); |
| 282 | } |
| 283 | |
| 284 | /** |
| 285 | * Retrieves days of the week for the given locale, using the Gregorian calendar. |
no test coverage detected
searching dependent graphs…