Interface LocaleSpecification

interface LocaleSpecification {
    calendar?: CalendarSpec;
    invalidDate?: string;
    isPM?: ((input) => boolean);
    longDateFormat?: LongDateFormatSpec;
    meridiem?: ((hour, minute, isLower) => string);
    meridiemParse?: RegExp;
    months?: string[] | StandaloneFormatSpec | MonthWeekdayFn;
    monthsShort?: string[] | StandaloneFormatSpec | MonthWeekdayFn;
    ordinal?: ((n) => string);
    ordinalParse?: RegExp;
    relativeTime?: RelativeTimeSpec;
    week?: WeekSpec;
    weekdays?: string[] | StandaloneFormatSpec | MonthWeekdayFn;
    weekdaysMin?: string[] | StandaloneFormatSpec | WeekdaySimpleFn;
    weekdaysShort?: string[] | StandaloneFormatSpec | WeekdaySimpleFn;
    [x: string]: any;
}

Indexable

[x: string]: any

Properties

calendar?: CalendarSpec
invalidDate?: string
isPM?: ((input) => boolean)

Type declaration

    • (input): boolean
    • Parameters

      • input: string

      Returns boolean

longDateFormat?: LongDateFormatSpec
meridiem?: ((hour, minute, isLower) => string)

Type declaration

    • (hour, minute, isLower): string
    • Parameters

      • hour: number
      • minute: number
      • isLower: boolean

      Returns string

meridiemParse?: RegExp
months?: string[] | StandaloneFormatSpec | MonthWeekdayFn
monthsShort?: string[] | StandaloneFormatSpec | MonthWeekdayFn
ordinal?: ((n) => string)

Type declaration

    • (n): string
    • Parameters

      • n: number

      Returns string

ordinalParse?: RegExp
relativeTime?: RelativeTimeSpec
week?: WeekSpec
weekdays?: string[] | StandaloneFormatSpec | MonthWeekdayFn
weekdaysMin?: string[] | StandaloneFormatSpec | WeekdaySimpleFn
weekdaysShort?: string[] | StandaloneFormatSpec | WeekdaySimpleFn