( locale: string, width: TranslationWidth, )
| 354 | * Use `Intl.DateTimeFormat` for date formating instead. |
| 355 | */ |
| 356 | export function getLocaleEraNames( |
| 357 | locale: string, |
| 358 | width: TranslationWidth, |
| 359 | ): Readonly<[string, string]> { |
| 360 | const data = ɵfindLocaleData(locale); |
| 361 | const erasData = <[string, string][]>data[ɵLocaleDataIndex.Eras]; |
| 362 | return getLastDefinedValue(erasData, width); |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Retrieves the first day of the week for the given locale. |
no test coverage detected
searching dependent graphs…