API reference / @localizer/format-relativetime / RelativeTimeFormatOptions
Type Alias: RelativeTimeFormatOptions
RelativeTimeFormatOptions =
object
Defined in: options.ts:39
Configuration options for relative time formatting.
Properties
Property | Modifier | Type | Description |
---|---|---|---|
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? | public | Stop [] | Granularity levels for relative time formatting. |
style? | public | "long" | "short" | "narrow" | Specifies the length of the localized message. |