-
Notifications
You must be signed in to change notification settings - Fork 7
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
完成 router-store 和 完成 Devtool 的翻译 #1
Conversation
@WallenHan 辛苦了 |
好的 |
docs/router-store/README.md
Outdated
@@ -2,20 +2,34 @@ | |||
|
|||
Bindings to connect the Angular Router with @ngrx/store |
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.
不带英文感觉更好,直接 diff 做校对,这样就不用之后再删了
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.
同意 @xuxusheng
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.
之前参与 react 中文翻译的时候 保留的习惯,他们是中英对照的。
docs/router-store/README.md
Outdated
- `ROUTER_CANCEL` and `ROUTER_ERROR` contain the store state before the navigation. Use the previous state to restore the consistency of the store. | ||
- `ROUTER_CANCEL` 和 `ROUTER_ERROR` 导航之前的 `store` 状态。 使用上一个状态来恢复 `store` 的一致性。 |
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.
@WallenHan ,这个感觉有点生硬~
ROUTER_CANCEL
和 ROUTER_ERROR
中包含了开始导航前的 store
状态,可以通过使用之前的状态来维持store
的前后一致性。
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.
少打字了,就是你说的意思 😭
docs/router-store/api.md
Outdated
To use the time-traveling debugging in the Devtools, you must return an object containing the `url` when using the `routerReducer`. | ||
|
||
想要在开发工具中使用时光穿梭功能的话,你必须在使用 `routerReducer` 时返回一个包含 `url` 对象。 |
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.
@WallenHan
是不是少了个“的”字,包含url
的对象~
docs/store-devtools/README.md
Outdated
### Instrumentation with the Chrome / Firefox Extension | ||
|
||
### 使用火狐、谷歌浏览器的插件查看监测 |
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.
- 用
浏览器扩展
比浏览器插件
要更标准一点,在 chrome 的开发者文档中,extension 和 plugin 指的是不一样的东西。 查看监测
是不是有点生硬~
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.
我也没找到更合适的词语。 有疑问的地方你先改下 届时在看效果
docs/store-devtools/README.md
Outdated
#### `maxAge` | ||
number (>1) | false - maximum allowed actions to be stored in the history tree. The oldest actions are removed once maxAge is reached. It's critical for performance. Default is `false` (infinite). | ||
|
||
`number` 型参数 或者 false - 配置允许存储在记录中的 `actions` 的最大值。达到最大值时,最早的 `action` 会被清除。 这个参数很影响性能。 默认值是 `false` ( 无限大)。 |
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.
@WallenHan
number 要大于一的意思没有了哦~
docs/store-devtools/README.md
Outdated
#### `name` | ||
string - the instance name to be showed on the monitor page. Default value is _NgRx Store DevTools_. | ||
|
||
`string` 型参数 展示在仪表 监控面板上的实例名字。 默认是 _NgRx Store DevTools_ 。 |
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.
@WallenHan
string 型参数
感觉有点生硬,直接使用 string 类型
或者 字符串类型
,或者干脆直接 string
不要翻译会不会更好点?
@SangKa @xuxusheng 我已经提交了 单中文版本并以按照意见修改部分语言。 |
已解决冲突 |
合并最新的官方版本
可以了,挺不错的, @SangKa |
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.
两位辛苦了
router-store 的 readme api
Devtool 的 readme