Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update datetimeformat to remove {{page}} #10819

Merged
merged 3 commits into from
Dec 30, 2022
Merged

update datetimeformat to remove {{page}} #10819

merged 3 commits into from
Dec 30, 2022

Conversation

jasonren0403
Copy link
Contributor

Description

remove page macro and update translation

Motivation

Additional details

Related issues and pull requests

#3893

@jasonren0403 jasonren0403 requested a review from a team as a code owner December 29, 2022 14:14
@jasonren0403 jasonren0403 requested review from yin1999 and removed request for a team December 29, 2022 14:14
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Dec 29, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 29, 2022

Preview URLs

Flaws (7)

URL: /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
Title: Intl.DateTimeFormat
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/supportedLocalesOf does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/supportedLocalesOf
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/format does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/format
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/resolvedOptions does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/resolvedOptions
    • and 2 more flaws omitted
External URLs (1)

URL: /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
Title: Intl.DateTimeFormat

(comment last updated: 2022-12-30 12:05:08)

- {{jsxref("Intl/DateTimeFormat/format", "Intl.DateTimeFormat.prototype.format()")}}
- : getter 函数,根据此 {{jsxref("Intl/DateTimeFormat", "DateTimeFormat")}} 对象的区域设置和格式化选项格式化日期。
- {{jsxref("Intl/DateTimeFormat/formatToParts", "Intl.DateTimeFormat.prototype.formatToParts()")}}
- : 返回一个对象{{jsxref("Array", "数组")}},其中的日期字符串部分可以用于自定义区域感知(local-aware)的格式。
Copy link
Member

Choose a reason for hiding this comment

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

再改改,然后把签名的macro改成 {{jsxref("Array", "数组", "", 1)}}

- {{jsxref("Intl/DateTimeFormat/formatToParts", "Intl.DateTimeFormat.prototype.formatToParts()")}}
- : 返回一个对象{{jsxref("Array", "数组")}},其中的日期字符串部分可以用于自定义区域感知(local-aware)的格式。
- {{jsxref("Intl/DateTimeFormat/resolvedOptions", "Intl.DateTimeFormat.prototype.resolvedOptions()")}}
- : 返回一个新对象,其进行初始化时属性能够反馈区域和格式化选项。
Copy link
Member

Choose a reason for hiding this comment

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

- {{jsxref("Intl/DateTimeFormat/formatRange", "Intl.DateTimeFormat.prototype.formatRange()")}}
- : 此方法接收两个 [Date](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date) 对象,并根据实例化 {{jsxref("Intl/DateTimeFormat", "DateTimeFormat")}} 时提供的区域和选项,以最简洁的方式格式化日期范围。
- {{jsxref("Intl/DateTimeFormat/formatRangeToParts", "Intl.DateTimeFormat.prototype.formatRangeToParts()")}}
- : 此方法接收两个 [Date](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date) 对象,并返回一个对象数组,该数组包含代表被格式化日期范围的每一部分的本地特定标记。
Copy link
Member

Choose a reason for hiding this comment

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

@jasonren0403 jasonren0403 requested a review from yin1999 December 30, 2022 04:48
Co-authored-by: Jason Ren <40999116+jasonren0403@users.noreply.github.com>
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

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

Thanks

@yin1999 yin1999 merged commit 573260b into mdn:main Dec 30, 2022
@jasonren0403 jasonren0403 deleted the remove-page-from-datetimeformat branch December 30, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants