Commit graph

5 commits

Author SHA1 Message Date
Jose C Perea
b0d6f496f8 fix(localize): update the way to obtain the group separator for a number
four digit numbers can be written without separator, so it would be
safer to obtain the separator by formatting a five digit number. The bug
was found with the locale 'es-ES', where the format returned for '1000'
was '1000' instead of the expected '1.000'. We add the specific expect
clause on the test for it.

 On branch fix/numberGroupSeparator
 Changes to be committed:
	modified:   packages/localize/src/number/getGroupSeparator.js
	modified:   packages/localize/test/number/getGroupSeparator.test.js
2019-08-13 19:04:31 +02:00
Thijs Louisse
c151f01b0b fix(localize): for bg-BG locale, correct Intl output for group separator 2019-08-07 13:21:26 +02:00
bverhoef
8fb70c2080 fix(localize): return sign to the front of the currency formatted value in Dutch 2019-06-27 10:46:39 +02:00
Mikhail Bashkirov
0afb0e1272 fix(localize): remove unnecessary normalization for Belgium
Belgium does not need to be normalized always (e.g. not in "fr-BE").
But Dutch language does need normalization always, because this is where Intl really makes it wrong, both for "nl-Nl" and "nl-BE".
2019-06-27 10:46:39 +02:00
Mikhail Bashkirov
c60b9d81c8 chore(localize): split number related functions into their own files 2019-06-26 17:49:28 +02:00