Intl.js icon indicating copy to clipboard operation
Intl.js copied to clipboard

Formatting with month: 'long' looks weird in en-au

Open jjlueck-tock opened this issue 9 years ago • 5 comments

Hi.

I have a case where the Intl polyfill is displaying en-au data in a weird way.

const Intl_polyfill = require('intl')
new Intl_polyfill.DateTimeFormat('en-AU', { month: 'long', day: 'numeric', year: 'numeric' }).format(new Date())

displays

20September,2016

This was using the latest release (on Sept. 20th)

Any thoughts? Can anyone else reproduce?

jjlueck-tock avatar Sep 20 '16 18:09 jjlueck-tock

@jjlueck-tock this seems like a problem in CLDR 28, if you look here:

https://github.com/andyearnshaw/Intl.js/blob/master/locale-data/json/en-AU.json#L72-L73

there are no spaces in the pattern, and that's why Intl.js produces that. I will double check in the latest CLDR, maybe by updating it we fix the issue, otherwise we can report it, and wait for it to be fixed there before we release a new version.

/cc @srl295

caridy avatar Sep 21 '16 13:09 caridy

Thanks for reproducing and looking into it!

jjlueck-tock avatar Sep 21 '16 17:09 jjlueck-tock

Version 1.2.6 seems to work (I built it locally), but it's not yet release on NPM. Is there a forecast, @caridy @andyearnshaw?

eliseumds avatar May 31 '17 02:05 eliseumds

Any news on when next release will be?

anescobar1991 avatar Dec 13 '17 21:12 anescobar1991

Also just encountered this bug and would love a fix!

andrewplummer avatar Nov 07 '18 02:11 andrewplummer