* Returns a date formatter that transforms a date into its locale string representation
( name: TranslationType, width: TranslationWidth, form: FormStyle = FormStyle.Format, extended = false, )
| 371 | * Returns a date formatter that transforms a date into its locale string representation |
| 372 | */ |
| 373 | function dateStrGetter( |
| 374 | name: TranslationType, |
| 375 | width: TranslationWidth, |
| 376 | form: FormStyle = FormStyle.Format, |
| 377 | extended = false, |
| 378 | ): DateFormatter { |
| 379 | return function (date: Date, locale: string): string { |
| 380 | return getDateTranslation(date, locale, name, width, form, extended); |
| 381 | }; |
| 382 | } |
| 383 | |
| 384 | /** |
| 385 | * Returns the locale translation of a date for a given form, type and width |
no test coverage detected
searching dependent graphs…