( locale: string, formStyle: FormStyle, width: TranslationWidth, )
| 694 | * To extract a day period use `Intl.DateTimeFormat` with the `dayPeriod` option instead. |
| 695 | */ |
| 696 | export function getLocaleExtraDayPeriods( |
| 697 | locale: string, |
| 698 | formStyle: FormStyle, |
| 699 | width: TranslationWidth, |
| 700 | ): string[] { |
| 701 | const data = ɵfindLocaleData(locale); |
| 702 | checkFullData(data); |
| 703 | const dayPeriodsData = <string[][][]>[ |
| 704 | data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodFormats], |
| 705 | data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone], |
| 706 | ]; |
| 707 | const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || []; |
| 708 | return getLastDefinedValue(dayPeriods, width) || []; |
| 709 | } |
| 710 | |
| 711 | /** |
| 712 | * Retrieves the writing direction of a specified locale |
no test coverage detected