17 Commits

Author SHA1 Message Date
Olivier Combe
44154e71fd fix(common): round currencies based on decimal digits in CurrencyPipe ()
By default, we now round currencies based on the number of decimal digits available for that currency instead of using the rouding defined in the number formats.
More info about that can be found in http://www.unicode.org/cldr/charts/latest/supplemental/detailed_territory_currency_information.html#format_info

Fixes 

PR Close 
2018-02-09 14:42:23 -08:00
Olivier Combe
420cc7afc6 fix(common): add locale currency values ()
we now use locale currency symbols, since they may be different in each locale (we were only using english data previously)

Fixes 

PR Close 
2018-02-09 14:42:23 -08:00
Olivier Combe
b62739a989 fix(common): generate closure-locale data file with exported plural functions ()
Fixes 
PR Close 
2018-01-30 11:42:31 -08:00
Olivier Combe
97b18b2a5c fix(common): extract plural function from i18n locale data files for TS 2.6 ()
Fixes 

PR Close 
2018-01-19 13:23:34 -08:00
Olivier Combe
135a2822ea fix(common): don't remove special characters when extracting CLDR data ()
PR Close 
2018-01-19 13:23:34 -08:00
Olivier Combe
3ce3b4d2af refactor(common): update i18n locale data to CLDR v32 ()
List of changes between v31.0.1 and v32: http://cldr.unicode.org/index/downloads/cldr-32
PR Close 
2017-12-08 10:24:33 -08:00
Olivier Combe
24bf3e2a25 feat(common): add locale id parameter to registerLocaleData ()
PR Close 
2017-11-27 17:00:06 -06:00
Olivier Combe
0f5c70d563 build: update npm dependencies ()
PR Close 
2017-09-22 13:20:52 -07:00
Olivier Combe
57abe8d078 refactor(common): export locale data from closure-locale ()
PR Close 
2017-08-31 11:23:12 -07:00
Victor Berchet
fdd5010832 fix(common): fix a duplicate case in the locale switch () 2017-08-29 17:02:20 -07:00
Olivier Combe
946e5bda22 fix(common): update closure-locale generation for tree shaking () 2017-08-29 15:29:21 -07:00
Olivier Combe
90bd984ff7 refactor(common): simplify closure-locale by removing imports () 2017-08-29 11:54:43 -07:00
Olivier Combe
48789360b1 feat(common): generate closure-locale.ts to tree shake locale data ()
Closure will only keep the data for the locale defined in `goog.LOCALE`

PR Close 
2017-08-29 11:26:10 -05:00
Victor Berchet
4c5aac8cd5 refactor(common): move generated locale files ()
PR Close 
2017-08-29 11:26:10 -05:00
Victor Berchet
832876d0a1 refactor(common): refactor i18n code to ease tree shaking ()
PR Close 
2017-08-29 11:26:09 -05:00
Olivier Combe
4c45347635 refactor(common): remove AVAILABLE_LOCALES ()
Fixes 

PR Close 
2017-08-29 11:26:09 -05:00
Olivier Combe
33d250ffaa build(common): extract i18n locale data from cldr ()
PR Close 
2017-08-22 15:43:04 -05:00