Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Update composition-api-introduction.md #829

Merged
merged 1 commit into from
Dec 2, 2021
Merged

Conversation

fyzhu
Copy link
Contributor

@fyzhu fyzhu commented Dec 2, 2021

更改 prop的 为 props 中的

Description of Problem

Proposed Solution

Additional Information

更改 prop的 为 props 中的
@wxsms wxsms merged commit 22962f8 into vuejs:master Dec 2, 2021
@Jinjiang
Copy link
Member

Jinjiang commented Dec 2, 2021

额外说明一下

  1. 此处英文前后应该有空格是对的
  2. 复数的英文如果不需要翻译成中文,建议转换为单数形式
  3. 如果希望将其作为具体的形参对待,需要加一对反引号 (这个部分我个人感觉英文原版也没有特别严格,所以遇到具体情况可以讨论)

所以我这里倾向于改为:

// 使用 `toRefs` 创建对 prop 中的 `user` property 的响应式引用

// 使用 `toRefs` 创建对 `props` 中的 `user` property 的响应式引用

谢谢

@wxsms
Copy link
Member

wxsms commented Dec 2, 2021

@Jinjiang 我刚刚也思考了一下这个复数的问题。但是想到它可能是对应的参数中的 props,觉得好像也合理。

因此我比较倾向于:

// 使用 `toRefs` 创建对 `props` 中的 `user` property 的响应式引用

(因为此处有一个明显的 props 上下文)

但是英文版确实没加反引号,这里对于翻译来说有点歧义了。要不我去英文版提个 PR (添加反引号)看能否被合并,然后我们再决定是怎么处理这里这个 props


已发起 PR:vuejs/docs#1360


edit: PR 已被接受,将在下次同步的时候带入。谢谢!

@wxsms wxsms mentioned this pull request Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants