-
Notifications
You must be signed in to change notification settings - Fork 3.5k
docs: update options-api.md #11
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
Conversation
# Conflicts: # src/guide/typescript/options-api.md
Co-authored-by: Wang Weitao <[email protected]>
@@ -92,9 +92,9 @@ const Component = defineComponent({ | |||
|
|||
这会防止 Typescript 将 `this` 根据函数内的环境作出不符合我们期望的类型推导。 | |||
|
|||
## 为组件的 emits 标注类型 {#typing-component-emits} | |||
## 为组件的 emit 标注类型 {#typing-component-emits} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 为组件的 emit 标注类型 {#typing-component-emits} | |
## 为组件的 emits 标注类型 {#typing-component-emits} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
标题明确指向的是 emits
而非正常语言,所以这里保留原文。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里我也有所疑惑。但是按照我们目前的翻译须知:
中文翻译中夹带的英文一律以单数形式呈现
因此可能有以下几种解决方案:
- 如果需要保留复数,按照目前的规则,可以:
- 通过加 code style,加 code style 的话也应该要向英文版反馈,同步加上(edit:evan 建议不要为该 title 加codestyle,见回复)
- 通过修改我们的翻译须知,为有”明确指向“的单词保留复数(但是哪些情况有“明确指向”,可能也需要讨论)
- 遵守翻译须知,使用单数
Co-authored-by: Godpu <[email protected]>
Description of Problem
typescript/options-api.md