Skip to content

API reference / @localizer/format-relativetime / RelativeTimeFormatOptions

Type Alias: RelativeTimeFormatOptions

RelativeTimeFormatOptions = object

Defined in: options.ts:39

Configuration options for relative time formatting.

Properties

PropertyModifierTypeDescription
localeMatcher?public"lookup" | "best fit"Specifies the algorithm for locale matching.
numeric?public"always" | "auto"Controls numeric value display: always numeric or auto-adjusted.
stops?publicStop[]Granularity levels for relative time formatting.
style?public"long" | "short" | "narrow"Specifies the length of the localized message.