-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
(ICU 64.2 supports the Reiwa era, as does 63.2 and others.)
Steps to reproduce: (I was not able to do step 2 exactly, so this is somewhat of a theory. Not sure how to run npm against a self-built Node yet.)
-
configured/compiled Node with
--with-intl=small-icu --with-icu-source=https://github.com/unicode-org/icu/releases/download/release-63-2/icu4c-63_2-src.tgz --download=all -
use
npm install full-icuas directed. It will download the ICU 63 package, which will be 63.1 (not 63.2). -
The following are incorrect, and show that the 63.1 (not 63.2) data is being fetched:
$ ~/src/node/node --icu-data-dir=node_modules/icu4c-data/ -p "new Date('5/1/2019').toLocaleString('en-u-ca-japanese', {era: 'long'})"
5 1, 31 Heisei, 12:00:00 AM
$ ~/src/node/node --icu-data-dir=node_modules/icu4c-data/ -p "new Date('5/1/2019').toLocaleString('ja-u-ca-japanese', {era: 'long'})"
平成31年5月1日 0:00:00
(These should say 1 Reiwa / 令和元年5月1日 0:00:00) - note the era "令和"
Metadata
Metadata
Assignees
Labels
No labels