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]: update the translation of the try-catch statement #21936

Merged
merged 5 commits into from
Jul 8, 2024

Conversation

JasonLamv-t
Copy link
Member

Description

As the title.

Motivation

Ditto.

Additional details

None.

Related issues and pull requests

#18266

@JasonLamv-t JasonLamv-t requested a review from a team as a code owner June 26, 2024 03:52
@JasonLamv-t JasonLamv-t requested review from yin1999 and removed request for a team June 26, 2024 03:52
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jun 26, 2024
Copy link
Contributor

github-actions bot commented Jun 26, 2024

Preview URLs

(comment last updated: 2024-07-08 05:35:42)

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.

一些建议

---

{{jsSidebar("Statements")}}

**`try...catch`** 语句标记要尝试的语句块,并指定一个出现异常时抛出的响应
**`try...catch`** 语句由一个 `try` 块和 `catch` 块、`finally` 块或两者组成。首先执行 `try` 块中的代码,如果它抛出异常,则将执行 `catch` 块中的代码。`finally` 块中的代码将在控制流退出整个结构之前始终被执行
Copy link
Member

Choose a reason for hiding this comment

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

第一句再修改一下,现在的翻译不太能体现英文文档的那个意思

Copy link
Member

Choose a reason for hiding this comment

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

Last nit here 👀 @JasonLamv-t

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm sorry for not getting back to you sooner. Quite busy this period.

Co-authored-by: A1lo <yin199909@aliyun.com>
@JasonLamv-t JasonLamv-t requested a review from yin1999 July 8, 2024 05:05
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.

👍

@yin1999 yin1999 merged commit 3540d69 into mdn:main Jul 8, 2024
7 checks passed
@JasonLamv-t JasonLamv-t deleted the statement-try-catch branch July 8, 2024 11:02
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.
2 participants