Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Locale

Hierarchy

  • Locale

Index

Properties

date

date: string[]

Default date format spec for use with defFormat

defaultvalue

["E", "/ED", "d", "/DM", "MMM", "/MY", "yyyy"]

dateTime

dateTime: string[]

Default combined date & time format spec for use with defFormat and DateTime.toLocaleString.

defaultvalue

concatenation of date and time options

days

days: string[]

Names of weekdays (starting w/ Sunday)

future

future: string

Template for future tense (%s will be replaced with result).

less

less: string

Translated version of "less than" for use with unitsLessThan. (%s will be replaced with the provided numeric value).

months

months: string[]

Names of months

now

now: string

Translated version of "now".

past

past: string

Template for past tense (%s will be replaced with result).

sepDM

sepDM: string

Separator between day & month.

defaultvalue

"/"

sepED

sepED: string

Separator between weekday & day

defaultvalue

" "

sepHM

sepHM: string

Separator between hour & minute

defaultvalue

":"

sepMY

sepMY: string

Separator between month & year

defaultvalue

" "

time

time: string[]

Default time format spec for use with defFormat

defaultvalue

["H", "/HM", "mm"]

units

units: Record<Precision, LocaleUnit>

Singular & plural versions of various date/time units.

Generated using TypeDoc