Methods
convertDateFormatToIntlOptions
- convertDateFormatToIntlOptions(format?: "short-date" | "short-date-short-time" | "short-date-short-time-24" | "short-date-long-time" | "short-date-long-time-24" | "long-month-day-year" | "long-month-day-year-short-time" | "long-month-day-year-short-time-24" | "long-month-day-year-long-time" | "long-month-day-year-long-time-24" | "day-short-month-year" | "day-short-month-year-short-time" | "day-short-month-year-short-time-24" | "day-short-month-year-long-time" | "day-short-month-year-long-time-24" | "long-date" | "long-date-short-time" | "long-date-short-time-24" | "long-date-long-time" | "long-date-long-time-24" | "long-month-year" | "short-month-year" | "year" | "short-time" | "long-time"): DateTimeFormatOptions
-
Parameters
-
Optional format: "short-date" | "short-date-short-time" | "short-date-short-time-24" | "short-date-long-time" | "short-date-long-time-24" | "long-month-day-year" | "long-month-day-year-short-time" | "long-month-day-year-short-time-24" | "long-month-day-year-long-time" | "long-month-day-year-long-time-24" | "day-short-month-year" | "day-short-month-year-short-time" | "day-short-month-year-short-time-24" | "day-short-month-year-long-time" | "day-short-month-year-long-time-24" | "long-date" | "long-date-short-time" | "long-date-short-time-24" | "long-date-long-time" | "long-date-long-time-24" | "long-month-year" | "short-month-year" | "year" | "short-time" | "long-time"
Returns DateTimeFormatOptions
convertNumberFormatToIntlOptions
- convertNumberFormatToIntlOptions(format?: NumberFormat): NumberFormatOptions
-
Parameters
Returns NumberFormatOptions
createJSONLoader
-
Parameters
fetchMessageBundle
- fetchMessageBundle(bundleId: string): Promise<any>
-
Parameters
Returns Promise<any>
formatDate
- formatDate(value: number | Date, formatOptions?: DateTimeFormatOptions): string
-
Parameters
-
value: number | Date
-
Optional formatOptions: DateTimeFormatOptions
Returns string
formatNumber
- formatNumber(value: number, formatOptions?: NumberFormatOptions): string
-
Parameters
-
value: number
-
Optional formatOptions: NumberFormatOptions
Returns string
getLocale
-
Returns string
normalizeMessageBundleLocale
- normalizeMessageBundleLocale(locale: void): any
-
Parameters
Returns any
onLocaleChange
-
Parameters
prefersRTL
- prefersRTL(locale?: string): boolean
-
Parameters
Returns boolean
registerMessageBundleLoader
-
Parameters
Returns any
setLocale
- setLocale(locale: string): void
-
Parameters
Returns void
substitute
-
Parameters
-
template: string
-
data: any
-
Returns string
This module provides date and number formatting methods and supporting utilities.
Read more...