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

[zh-cn]: fix mistranslation #25234

Merged
merged 6 commits into from
Jan 10, 2025
Merged

[zh-cn]: fix mistranslation #25234

merged 6 commits into from
Jan 10, 2025

Conversation

vhtmui
Copy link
Contributor

@vhtmui vhtmui commented Dec 26, 2024

Description

fix :当 Promise 被拒绝、并且在 reject 函数处理该拒绝事件之后会派发此事件。
to:当 Promise 被拒绝并触发了unhandledrejection事件后再处理该拒绝事件时,会派发此事件。

The original translation did not indicate that the rejectionhandled event was sent because the error was handled late.
原意强调错误处理晚于unhandledrejection事件的触发。

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

github-actions bot commented Dec 26, 2024

Preview URLs

Flaws (7)

URL: /zh-CN/docs/Web/JavaScript/Guide/Using_promises
Title: 使用 Promise
Flaw count: 7

  • macros:
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-CN/docs/Learn/Getting_started_with_the_web/JavaScript_basics
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-CN/docs/Learn/JavaScript/First_steps
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-CN/docs/Learn/JavaScript/Building_blocks
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-CN/docs/Learn/JavaScript/Objects
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks
    • and 2 more flaws omitted

(comment last updated: 2025-01-10 14:05:15)

- {{domxref("Window.unhandledrejection_event", "unhandledrejection")}}
- : 当 Promise 被拒绝,但没有提供 `reject` 函数来处理该拒绝事件时,会派发此事件。
- {{domxref("Window.rejectionhandled_event", "rejectionhandled")}}
- : 当 Promise 被拒绝并触发了`unhandledrejection`事件后再处理该拒绝事件时,会派发此事件。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- : 当 Promise 被拒绝并触发了`unhandledrejection`事件后再处理该拒绝事件时,会派发此事件。
- : 当 Promise 被拒绝并触发了 `unhandledrejection` 事件后再处理该拒绝事件时,会派发此事件。

Copy link
Member

Choose a reason for hiding this comment

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

这段内容请参考英文原文进行翻译,现在是存在差异的

@yin1999 yin1999 changed the title [zh-cn]: Fix mistranslation. [zh-cn]: fix mistranslation Dec 27, 2024
@yin1999
Copy link
Member

yin1999 commented Dec 28, 2024

请按 #25234 (comment) 的说明再修改一下

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.

感谢 @vhtmui 🙏,修改后还是有点不一致,我自行调整了一下

@yin1999 yin1999 enabled auto-merge (squash) January 10, 2025 14:05
@yin1999 yin1999 merged commit 7a13195 into mdn:main Jan 10, 2025
7 checks passed
@vhtmui
Copy link
Contributor Author

vhtmui commented Jan 10, 2025

感谢 @vhtmui 🙏,修改后还是有点不一致,我自行调整了一下

感谢帮助🙏

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
Development

Successfully merging this pull request may close these issues.

3 participants