File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,15 @@ Dayjs.updateLocale('tr', {
141141 calendar : calendarFormats . tr ,
142142} ) ;
143143
144+ export type CalendarFormats = {
145+ lastDay : string ;
146+ lastWeek : string ;
147+ nextDay : string ;
148+ nextWeek : string ;
149+ sameDay : string ;
150+ sameElse : string ;
151+ } ;
152+
144153const en_locale = {
145154 formats : { } ,
146155 months : [
@@ -176,7 +185,7 @@ const supportsTz = (dateTimeParser: unknown): dateTimeParser is TimezoneParser =
176185
177186type Streami18nOptions = {
178187 DateTimeParser ?: DateTimeParserModule ;
179- dayjsLocaleConfigForLanguage ?: Partial < ILocale > ;
188+ dayjsLocaleConfigForLanguage ?: Partial < ILocale & { calendar : CalendarFormats } > ;
180189 debug ?: boolean ;
181190 disableDateTimeTranslations ?: boolean ;
182191 formatters ?: Partial < PredefinedFormatters > & CustomFormatters ;
Original file line number Diff line number Diff line change 1- type CalendarFormats = {
2- lastDay : string ;
3- lastWeek : string ;
4- nextDay : string ;
5- nextWeek : string ;
6- sameDay : string ;
7- sameElse : string ;
8- } ;
1+ import { CalendarFormats } from './Streami18n' ;
92
103/**
114 * Calendar formats for different languages.
You can’t perform that action at this time.
0 commit comments