FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[v6.x backport] doc: add documentation on ICU by TimothyGu · Pull Request #15353 · nodejs/node · GitHub

/ node Public

[v6.x backport] doc: add documentation on ICU - #15353

Closed
TimothyGu wants to merge 1 commit into
nodejs:v6.x-stagingfrom
TimothyGu:v6.x-13916
Closed

[v6.x backport] doc: add documentation on ICU#15353
TimothyGu wants to merge 1 commit into
nodejs:v6.x-stagingfrom
TimothyGu:v6.x-13916

Conversation

Copy link
Copy Markdown
Member

PR-URL: #13916
Refs: #13644 (comment)
Reviewed-By: Vse Mozhet Byt vsemozhetbyt@gmail.com

Checklist
Affected core subsystem(s)

doc

TimothyGu added doc Issues and PRs related to the documentations. i18n-api Issues and PRs related to the i18n implementation. v6.x labels Sep 12, 2017
nodejs-github-bot added doc Issues and PRs related to the documentations. v6.x labels Sep 12, 2017
Comment thread doc/api/intl.md Outdated

vsemozhetbyt Sep 12, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Default v6.11.3 prints M01 for me (Windows 7 x64).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Hmm, it's M01 for me on master as well but January on v6.x. Can you check the output after changing your LC_ALL environment variable to en_US?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Output:
> set LC_ALL=en_US

> set LC_ALL
LC_ALL=en_US

> node.6.11.3.v8-5.1.exe
> const january = new Date(9e8);
> const english = new Intl.DateTimeFormat('en', { month: 'long' });
> const spanish = new Intl.DateTimeFormat('es', { month: 'long' });
> console.log(english.format(january));
January
> // Prints "January"
> console.log(spanish.format(january));
M01
> // Prints "January" on small-icu
> // Should print "enero"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

FWIW, I use the standalone binary from https://nodejs.org/download/release/latest-v6.x/win-x64/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ah you are on Windows. That's different...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

So maybe we can state "January" or "M01"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@vsemozhetbyt Sounds like a good idea.

vsemozhetbyt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

With code output recheck.

PR-URL: nodejs#13916
Refs: nodejs#13644 (comment)
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>

Copy link
Copy Markdown
Member Author

@vsemozhetbyt Done, PTAL!

Copy link
Copy Markdown
Contributor

landed in 90fcccd

TimothyGu deleted the v6.x-13916 branch September 19, 2017 17:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. i18n-api Issues and PRs related to the i18n implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL