Commit graph

12 commits

Author SHA1 Message Date
qa46hx
367e2f4f96 fix(localize): allow negative bulgarian numbers 2020-01-07 11:06:25 +01:00
Thijs Louisse
708b6f991d feat(localize): add getCurrencyName 2019-11-27 13:40:15 +01:00
qa46hx
1f4025032f fix(localize): add tests for percent in formatNumberToParts 2019-10-09 09:06:49 +02:00
qa46hx
093cfa090a fix(localize): use option.locale to get separator in formatNumberToParts 2019-10-09 09:05:07 +02:00
qa46hx
20b77a40b1 fix(localize): allow multiple characters for currency symbols 2019-09-30 09:18:49 +02:00
Joren Broekema
edd7396e15 fix(input-amount): use minus sign unicode instead of hypen-minus 2019-09-20 10:13:06 +02:00
Joren Broekema
85beb18e26 fix(localize): use minus sign unicode instead of hypen-minus 2019-09-19 16:01:04 +02:00
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