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 translation of String.slice() #15000

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

JasonLamv-t
Copy link
Member

Description

Same as the title.

Motivation

Ditto.

Additional details

None.

Related issues and pull requests

#13975

@JasonLamv-t JasonLamv-t requested a review from a team as a code owner August 9, 2023 01:12
@JasonLamv-t JasonLamv-t requested review from yin1999 and removed request for a team August 9, 2023 01:12
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Aug 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Preview URLs

(comment last updated: 2023-08-10 00:42:26)


`slice()` 提取的新字符串包括`beginIndex`但不包括 `endIndex`。下面有两个例子
`slice()` 方法提取的文本是从 `indexStart` 开始,但不包括 `indexEnd`。例如,`str.slice(1, 4)` 提取的是第二个字符到第四个字符(字符的索引为 `1`、`2` 和 `3`)
Copy link
Member

Choose a reason for hiding this comment

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

It (the first sentence) is something different from the en-US document.

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 32d9fa5 into mdn:main Aug 10, 2023
8 checks passed
@JasonLamv-t JasonLamv-t deleted the string-slice branch August 10, 2023 01:21
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