Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Outdated currency formatting for de-AT locale #292

Open
amannn opened this issue Oct 5, 2017 · 2 comments
Open

Outdated currency formatting for de-AT locale #292

amannn opened this issue Oct 5, 2017 · 2 comments

Comments

@amannn
Copy link

amannn commented Oct 5, 2017

In Chrome the following code snippet …

(new Intl.NumberFormat('de-AT', {
  style: 'currency',
  currency: 'EUR',
  minimumFractionDigits: 0,
  maximumFractionDigits: 2
})).format(12000.12)

… prints "€ 12.000,12" – which is exactly as expected.

However when I run …

var IntlPolyfill    = require('intl');
Intl.NumberFormat   = IntlPolyfill.NumberFormat;
Intl.DateTimeFormat = IntlPolyfill.DateTimeFormat;

(new Intl.NumberFormat('de-AT', {
  style: 'currency',
  currency: 'EUR',
  minimumFractionDigits: 0,
  maximumFractionDigits: 2
})).format(12000.12)

… in RunKit with node.js v8.6.0 it prints "€ 12 000,12".

Note that there was recently an update to the CLDR in regards to this aspect.

@amannn amannn changed the title Wrong currency formatting for de-AT locale Outdated currency formatting for de-AT locale Oct 5, 2017
@daKmoR
Copy link

daKmoR commented Dec 1, 2017

can confirm it for chrome browser

// my locale is de-AT
(new IntlPolyfill.NumberFormat()).format(1000);
"1 000"
(new Intl.NumberFormat()).format(1000);
"1,000" // correct

@muskand
Copy link

muskand commented Mar 23, 2018

Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants