( locale: string, formStyle: FormStyle, width: TranslationWidth, )
| 670 | * To extract a day period use `Intl.DateTimeFormat` with the `dayPeriod` option instead. |
| 671 | */ |
| 672 | export function getLocaleExtraDayPeriods( |
| 673 | locale: string, |
| 674 | formStyle: FormStyle, |
| 675 | width: TranslationWidth, |
| 676 | ): string[] { |
| 677 | const data = ɵfindLocaleData(locale); |
| 678 | checkFullData(data); |
| 679 | const dayPeriodsData = <string[][][]>[ |
| 680 | data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodFormats], |
| 681 | data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone], |
| 682 | ]; |
| 683 | const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || []; |
| 684 | return getLastDefinedValue(dayPeriods, width) || []; |
| 685 | } |
| 686 | |
| 687 | /** |
| 688 | * Retrieves the writing direction of a specified locale |
no test coverage detected
searching dependent graphs…