Skip to content

Commit 0afb0e1

Browse files
author
Mikhail Bashkirov
committed
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".
1 parent 86c9824 commit 0afb0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/localize/src/number/normalizeIntl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function normalizeIntl(formattedParts, options, _locale) {
1717
let normalize = forceNormalSpaces(formattedParts, options);
1818
// Dutch and Belgian currency must be moved to end of number
1919
if (options && options.style === 'currency') {
20-
if (_locale === 'nl-NL' || _locale.slice(-2) === 'BE') {
20+
if (_locale.slice(0, 2) === 'nl') {
2121
normalize = forceCurrencyToEnd(normalize);
2222
}
2323
// Add group separator for Bulgarian locale

0 commit comments

Comments
 (0)