-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
docs(cn): translate content/docs/addons-test-utils.md into Chinese #10
Conversation
@@ -263,7 +262,7 @@ findRenderedComponentWithType( | |||
) | |||
``` | |||
|
|||
Same as [`scryRenderedComponentsWithType()`](#scryrenderedcomponentswithtype) but expects there to be one result and returns that one result, or throws exception if there is any other number of matches besides one. | |||
功能类似于 [`scryRenderedComponentsWithType()`](#scryrenderedcomponentswithtype),但是预计只有一个结果,然后返回这个结果,如果除了一个匹配项之外还有其他匹配项,则抛出异常。 |
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.
功能类似于
scryRenderedComponentsWithType()
,仅进行一个组件类型的匹配并且返回。如果匹配出的数量非一,则抛出异常。
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.
“非一” 这个表述有些个人化了,个人觉得这里还是直译比较好。因为看其他文档翻译也有类似这样的翻译句式
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.
LGTM. Thanks!
@sang4lv 除「非一」的表述存在争议,其余提及的内容译者已经做过修改了哈,故将你的 review 建议状态更改为 comments. |
@sang4lv 除「非一」的表述存在争议,其余提及的内容译者已经做过修改了哈,故将你的 review 建议状态更改为 comments
LGTM |
「非一」问题讨论后单独 commit |
Please review this PR!