File tree Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments