-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Closed
Labels
Content:JSJavaScript docsJavaScript docs
Description
MDN URL
What specific section or headline is this issue about?
What information was incorrect, unhelpful, or incomplete?
"Setting an entry in the bag for year (with any value) will yield both the and the yearName Gregorian relatedYear:"
Also the same output of 2 code blocks below the text:
// return value
[
{ type: "relatedYear", value: "2012" },
{ type: "literal", value: "年" },
{ type: "month", value: "十一月" },
{ type: "day", value: "4" },
];What did you expect to see?
Maybe "Setting an entry in the bag for year (with any value) will yield both the yearName and the Gregorian relatedYear:"
Then, for the first code block:
// return value
[
+ { type: "yearName", value: "zh-u-ca-chinese" },
{ type: "relatedYear", value: "2012" },
{ type: "literal", value: "年" },
{ type: "month", value: "十一月" },
{ type: "day", value: "4" },
];Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/javascript/reference/global_objects/intl/datetimeformat/formattoparts - MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/formattoparts/index.md
- Last commit: 90cb2be
- Document last modified: 2024-05-02T23:07:06.000Z
Metadata
Metadata
Assignees
Labels
Content:JSJavaScript docsJavaScript docs