Skip to content

更新 chai.json chai.md#75

Open
SSShooter wants to merge 3 commits intoFreeCodeCampChina:translatefrom
SSShooter:translate-chai
Open

更新 chai.json chai.md#75
SSShooter wants to merge 3 commits intoFreeCodeCampChina:translatefrom
SSShooter:translate-chai

Conversation

@SSShooter
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

随着你的程序越来越复杂,你经常需要测试新增代码是否会破坏原先的功能。Chai 是一个 JavaScript 测试库,它可以帮助你检查程序在更新后是否如你所期望的运行。通过Chai,你可以用测试驱动开发的方式来编写代码。

Copy link
Contributor

Choose a reason for hiding this comment

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

你的应用的主页 => 应用的主页
一句话2个的,你懂的。

@huluoyang huluoyang added the need update Use when a translation (?) PR has been reviewed and needs to address comments label Aug 8, 2018
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

破折号使用的不对。请参考 style-guide

image


vs. 这里可以翻译的,翻译成 “或” 就好。下同

".equal(), .notEqual()",
".equal() compares objects using '=='"
"再次提醒,本项目基于初始项目 <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-mochachai/'>Glitch</a>,或从 <a href='https://github.com/freeCodeCamp/boilerplate-mochachai/'>GitHub</a> clone。",
".equal().notEqual()",
Copy link
Contributor

Choose a reason for hiding this comment

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

这种写法比较 confusing,建议与上面使用一样的写法:
image

下同。注意统一

Copy link
Contributor Author

Choose a reason for hiding this comment

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

那么统一“和”还是“或”呢?

"tests": [
{
"text": "All tests should pass",
"text": "需通过全部测试",
Copy link
Contributor

Choose a reason for hiding this comment

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

这之后的 testString 你好像都没有翻译

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好像没什么需要翻译的地方……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

need update Use when a translation (?) PR has been reviewed and needs to address comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments