If activeLanguage = 'hu', then these translation texts:
// l10n.hu.json
{
"default": "Alap: {{ 0 | datetime }}",
"short": "Rövid: {{ 0 | D : dateStyle = short; timeStyle = short }}",
"medium": "Közepes: {{ 0 | D : dateStyle = medium; timeStyle = medium }}",
"long": "Hosszú: {{ 0 | D :dateStyle = long; timeStyle = long }}"
}
And this employ will produce the indicated output:
|
|
Possible options:
"short"
,
"medium"
, "long"
and "full"
.
"short"
,
"medium"
, "long"
and "full"
.
"lookup"
and "best fit"
; the default is "best fit"
.
"UTC"
; the default is the runtime's default time zone. Implementations
may also recognize the time zone names of the IANA time zone database, such as
"Asia/Shanghai"
, "Asia/Kolkata"
, "America/New_York"
.
true
and false
; the default is locale dependent.
"basic"
and "best fit"
; the default is "best fit"
. See the
following paragraphs for information about the use of this property.
The following properties describe the date-time components to use in formatted output, and their desired representations. Implementations are required to support at least the following subsets:
weekday
, year
, month
, day
, hour
, minute
, second
weekday
, year
, month
, day
year
, month
, day
year
, month
month
, day
hour
, minute
, second
hour
, minute
Implementations may support other subsets, and requests will be negotiated
against all available subset-representation combinations to find the best match.
Two algorithms are available for this negotiation and selected by the formatMatcher
property: A fully specified "basic"
algorithm and an implementation-dependent
"best fit"
algorithm.
"long"
(e.g. Thursday)"short"
(e.g. Thu)"narrow"
(e.g. T). Two weekdays may have the same narrow
style for some locales (e.g. Tuesday's narrow style is also T)."long"
(e.g. Anno Domini)"short"
(e.g. AD)"narrow"
(e.g. A)"numeric"
(e.g. 2020)"2-digit"
(e.g. 20)"numeric"
(e.g. 2)"2-digit"
(e.g. 02)"long"
(e.g. March)"short"
(e.g. Mar)"narrow"
(e.g. M). Two months may have the same narrow
style for some locales (e.g. May's narrow style is also M)."numeric"
(e.g. 1)"2-digit"
(e.g. 01)"numeric"
,
"2-digit"
.
"numeric"
,
"2-digit"
.
"numeric"
,
"2-digit"
.
"long"
(e.g. British Summer Time)"short"
(e.g. GMT+1)