( locale: string, width: TranslationWidth, )
| 365 | * Use `Intl.DateTimeFormat` for date formating instead. |
| 366 | */ |
| 367 | export function getLocaleEraNames( |
| 368 | locale: string, |
| 369 | width: TranslationWidth, |
| 370 | ): Readonly<[string, string]> { |
| 371 | const data = ɵfindLocaleData(locale); |
| 372 | const erasData = <[string, string][]>data[ɵLocaleDataIndex.Eras]; |
| 373 | return getLastDefinedValue(erasData, width); |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * Retrieves the first day of the week for the given locale. |
no test coverage detected