vue-i18n / general / DateTimeOptions
Interface: DateTimeOptions<Key, Locales>
Vue I18n General
DateTime options
Remarks
Options for Datetime formatting API
Extends
DateTimeFormatOptions.LocaleOptions<Locales>
Type Parameters
| Type Parameter | Default type |
|---|---|
Key | string |
Locales | Locale |
Properties
calendar?
ts
optional calendar: string;Inherited from
ts
Intl.DateTimeFormatOptions.calendardateStyle?
ts
optional dateStyle: "long" | "short" | "full" | "medium";Inherited from
ts
Intl.DateTimeFormatOptions.dateStyleday?
ts
optional day: "numeric" | "2-digit";Inherited from
ts
Intl.DateTimeFormatOptions.daydayPeriod?
ts
optional dayPeriod: "long" | "short" | "narrow";Inherited from
ts
Intl.DateTimeFormatOptions.dayPeriodera?
ts
optional era: "long" | "short" | "narrow";Inherited from
ts
Intl.DateTimeFormatOptions.erafallbackWarn?
ts
optional fallbackWarn: boolean;Remarks
Whether do resolve on format keys when your language lacks a formatting for a key
formatMatcher?
ts
optional formatMatcher: "best fit" | "basic";Inherited from
ts
Intl.DateTimeFormatOptions.formatMatcherfractionalSecondDigits?
ts
optional fractionalSecondDigits: 1 | 2 | 3;Inherited from
ts
Intl.DateTimeFormatOptions.fractionalSecondDigitshour?
ts
optional hour: "numeric" | "2-digit";Inherited from
ts
Intl.DateTimeFormatOptions.hourhour12?
ts
optional hour12: boolean;Inherited from
ts
Intl.DateTimeFormatOptions.hour12hourCycle?
ts
optional hourCycle: "h11" | "h12" | "h23" | "h24";Inherited from
ts
Intl.DateTimeFormatOptions.hourCyclekey?
ts
optional key: Key;Remarks
The target format key
locale?
ts
optional locale: LocaleDetector<any[]> | Locales;Remarks
The locale of localization
Inherited from
ts
LocaleOptions.localelocaleMatcher?
ts
optional localeMatcher: "lookup" | "best fit";Inherited from
ts
Intl.DateTimeFormatOptions.localeMatcherminute?
ts
optional minute: "numeric" | "2-digit";Inherited from
ts
Intl.DateTimeFormatOptions.minutemissingWarn?
ts
optional missingWarn: boolean;Remarks
Whether suppress warnings outputted when localization fails
month?
ts
optional month: "long" | "short" | "narrow" | "numeric" | "2-digit";Inherited from
ts
Intl.DateTimeFormatOptions.monthnumberingSystem?
ts
optional numberingSystem: string;Inherited from
ts
Intl.DateTimeFormatOptions.numberingSystempart?
ts
optional part: boolean;Remarks
Whether to use Intel.DateTimeFormat#formatToParts
second?
ts
optional second: "numeric" | "2-digit";Inherited from
ts
Intl.DateTimeFormatOptions.secondtimeStyle?
ts
optional timeStyle: "long" | "short" | "full" | "medium";Inherited from
ts
Intl.DateTimeFormatOptions.timeStyletimeZone?
ts
optional timeZone: string;Inherited from
ts
Intl.DateTimeFormatOptions.timeZonetimeZoneName?
ts
optional timeZoneName:
| "long"
| "short"
| "shortOffset"
| "longOffset"
| "shortGeneric"
| "longGeneric";Inherited from
ts
Intl.DateTimeFormatOptions.timeZoneNameweekday?
ts
optional weekday: "long" | "short" | "narrow";Inherited from
ts
Intl.DateTimeFormatOptions.weekdayyear?
ts
optional year: "numeric" | "2-digit";Inherited from
ts
Intl.DateTimeFormatOptions.year