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.raw() #14779

Merged
merged 7 commits into from
Aug 2, 2023
Merged

Conversation

JasonLamv-t
Copy link
Member

@JasonLamv-t JasonLamv-t commented Aug 1, 2023

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 1, 2023 01:07
@JasonLamv-t JasonLamv-t requested review from irvin and removed request for a team August 1, 2023 01:07
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Aug 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2023

Preview URLs

Flaws (2)

URL: /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/raw
Title: String.raw()
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/JavaScript/Reference/template_strings
    • Can't resolve /zh-CN/docs/Web/JavaScript/Reference/template_strings
External URLs (1)

URL: /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/raw
Title: String.raw()

(comment last updated: 2023-08-02 16:32:50)


`String.raw()` 是唯一一个内置的模板字符串标签函数,因为它太常用了。不过它并没有什么特殊能力,你自己也可以实现一个和它功能一模一样的标签函数。

> **警告:** 不应直接将 `String.raw` 作为“标识”标签。请参见[构建身份标签](#构建身份标签)以了解如何实现此操作。
Copy link
Member

Choose a reason for hiding this comment

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

Could you also update the rest of "identity tag" (to "标识标签").


// 正常情况下,你也许不需要将 String.raw() 当作函数调用。
// 但是为了模拟 `t${0}e${1}s${2}t` 你可以这样做:
### 构建身份标签
Copy link
Member

Choose a reason for hiding this comment

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

+1

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 6c55e1f into mdn:main Aug 2, 2023
8 checks passed
@JasonLamv-t JasonLamv-t deleted the string-raw branch August 3, 2023 00:38
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