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', {
141
141
calendar : calendarFormats . tr ,
142
142
} ) ;
143
143
144
+ export type CalendarFormats = {
145
+ lastDay : string ;
146
+ lastWeek : string ;
147
+ nextDay : string ;
148
+ nextWeek : string ;
149
+ sameDay : string ;
150
+ sameElse : string ;
151
+ } ;
152
+
144
153
const en_locale = {
145
154
formats : { } ,
146
155
months : [
@@ -176,7 +185,7 @@ const supportsTz = (dateTimeParser: unknown): dateTimeParser is TimezoneParser =
176
185
177
186
type Streami18nOptions = {
178
187
DateTimeParser ?: DateTimeParserModule ;
179
- dayjsLocaleConfigForLanguage ?: Partial < ILocale > ;
188
+ dayjsLocaleConfigForLanguage ?: Partial < ILocale & { calendar : CalendarFormats } > ;
180
189
debug ?: boolean ;
181
190
disableDateTimeTranslations ?: boolean ;
182
191
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' ;
9
2
10
3
/**
11
4
* Calendar formats for different languages.
You can’t perform that action at this time.
0 commit comments