Skip to content

Commit d95ac26

Browse files
committed
@fluent/bundle 0.15.1
1 parent 06f195c commit d95ac26

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

fluent-bundle/CHANGELOG.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
11
# Changelog
22

3-
## @fluent/bundle 0.15.0 (January 23, 2019)
3+
## @fluent/bundle 0.15.1 (April 7, 2020)
4+
5+
- Allow only some formatting options to `NUMBER` and `DATETIME`. (#464)
6+
7+
The builtin functions available to translations were liberal in terms of
8+
the options they accepted. This could lead to undesired results, e.g.
9+
when for the same number value, a translation would specify a different
10+
currency than the source language.
11+
12+
The `NUMBER` builtin now only recognizes the following options:
13+
14+
unitDisplay
15+
currencyDisplay
16+
useGrouping
17+
minimumIntegerDigits
18+
minimumFractionDigits
19+
maximumFractionDigits
20+
minimumSignificantDigits
21+
maximumSignificantDigits
22+
23+
The `DATETIME` builtin now only recognizes the following options:
24+
25+
dateStyle
26+
timeStyle
27+
fractionalSecondDigits
28+
dayPeriod
29+
hour12
30+
weekday
31+
era
32+
year
33+
month
34+
day
35+
hour
36+
minute
37+
second
38+
timeZoneName
39+
40+
All other options are ignored.
41+
42+
## @fluent/bundle 0.15.0 (January 23, 2020)
443

544
- Migrate to TypeScript. (#436)
645

fluent-bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@fluent/bundle",
33
"description": "Localization library for expressive translations.",
4-
"version": "0.15.0",
4+
"version": "0.15.1",
55
"homepage": "https://projectfluent.org",
66
"author": "Mozilla <l10n-drivers@mozilla.org>",
77
"license": "Apache-2.0",

0 commit comments

Comments
 (0)