import { DATETIME } from "https://deno.land/x/fluent@0.0.1/bundle/builtins.ts";
The implementation of the DATETIME()
builtin available to translations.
Translations may call the DATETIME()
builtin in order to specify
formatting options of a number. For example:
now = It's {DATETIME($today, month: "long")}.
The implementation expects an array of FluentValues
representing the
positional arguments, and an object of named FluentValues
representing the
named parameters.
The following options are recognized:
dateStyle
timeStyle
fractionalSecondDigits
dayPeriod
hour12
weekday
era
year
month
day
hour
minute
second
timeZoneName
Other options are ignored.
Parameters
args: Array<FluentValue>
The positional arguments passed to this DATETIME()
.
opts: Record<string, FluentValue>
The named argments passed to this DATETIME()
.