Skip to content

Commit 8e8f662

Browse files
authored
Merge pull request #2 from vuefe/2.0-cn
10.06更新
2 parents c76af6c + 32111cf commit 8e8f662

File tree

11 files changed

+279
-166
lines changed

11 files changed

+279
-166
lines changed

src/about/apidoc.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: 参与API翻译
3+
type: about
4+
order: 2
5+
---
6+
7+
> 官方文档仓库:http://vuejs.org/guide/
8+
> 翻译文档仓库:https://github.com/vuefe/vuejs.org
9+
10+
- 加QQ群参与翻译: `427447379`
11+
- [翻译Guide认领](https://github.com/vuefe/vuejs.org/issues/1)
12+
- [翻译API认领](https://github.com/vuefe/vuejs.org/issues/44)
13+
- [翻译指引](https://github.com/vuefe/vuejs.org/issues/25)
14+
15+
## API文档翻译进度
16+
17+
序号 | 是否完成 | 对应小节名称 | 中文标题 | 贡献者 | 认领者
18+
----- | ------- | ------------- | --- | --- | ---
19+
1 | 是 | Global Config | 全局配置 | dear-lizhihua | @dear-lizhihua
20+
2 | x | Global API | 全局API | | @dear-lizhihua
21+
3 | x | Options / Data | 选项 / 数据 | | @dear-lizhihua
22+
4 | x | Options / DOM | 选项 / DOM | |
23+
5 | x | Options / Lifecycle Hooks | 选项 / 生命周期钩子 | |
24+
6 | x | Options / Assets | 选项 / 资源 | |
25+
7 | x | Options / Misc | 选项 / 杂项 | |
26+
8 | x | Instance Properties | 实例属性 | |
27+
9 | x | Instance Methods / Data | 实例方法 / 数据 | |
28+
10 | x | Instance Methods / Events | 实例方法 / 事件 | |
29+
11 | x | Instance Methods / Lifecycle | 实例方法 / 生命周期 | |
30+
12 | x | Directives | 指令| | @tingtien
31+
13 | x | Special Attributes | 特殊元素 | |
32+
14 | x | Built-In Components | 内置的组件 | |
33+
15 | x | VNode Interface | VNode接口 | |
34+
16 | x | Server-Side Rendering | 服务端渲染| | |

src/about/guide.md

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,58 @@
11
---
2-
title: 参与指南
2+
title: 参与教程翻译
33
type: about
4-
order: 2
4+
order: 1
55
---
66

7+
> 官方文档仓库:http://vuejs.org/guide/
8+
> 翻译文档仓库:https://github.com/vuefe/vuejs.org
9+
710
- 加QQ群参与翻译: `427447379`
811
- [翻译Guide认领](https://github.com/vuefe/vuejs.org/issues/1)
9-
- 待更具体教程,基于hexo
12+
- [翻译API认领](https://github.com/vuefe/vuejs.org/issues/44)
13+
- [翻译指引](https://github.com/vuefe/vuejs.org/issues/25)
14+
15+
## 教程(guide)文档翻译进度
16+
17+
> 以下所有文档所在目录为 `src/guide/xxx.md`
18+
19+
### Essentials 基础
20+
21+
序号 | 是否完成 | 对应文档文件名 | 中文标题 | 贡献者 | 认领者
22+
----- | ------- | ------------- | --- | --- | ---
23+
1 | 是 | installation.md | 安装 | @dingyiming | @dingyiming
24+
2 | 是 | index.md | 介绍 | @hijiangtao | @dingyiming @hijiangtao
25+
3 | 是 | instance.md | 实例 | @dingyiming | @dingyiming
26+
4 | × | syntax.md | 模板语法 | | @tingtien
27+
5 | 是 | computed.md | 计算属性 | @dingyiming | @dingyiming
28+
6 | × | class-and-style.md | Class 与 Style 绑定 | | @595074187
29+
7 | 是 | conditional.md | 条件渲染 | @dingyiming | @dingyiming
30+
8 | 是 | list.md | 列表渲染 | @tingtien | @tingtien
31+
9 | 是 | events.md | 事件处理器 | @dingyiming | @dingyiming
32+
10 | 是 | forms.md | 表单控件绑定 | @dingyiming | @dingyiming
33+
11 | × | components.md | 组件 | | @ezreally
34+
35+
### Advanced 进阶
36+
37+
序号 | 是否完成 | 对应文档文件名 | 中文标题 | 贡献者 | 认领者
38+
----- | ------- | ------------- | --- | --- | ---
39+
12 | 是 | transitions.md | 过渡: 进入, 离开, 和 列表 | @awe | @awe
40+
13 | 是 | transitioning-state.md | 过渡状态 | @awe | @awe
41+
14 | 是 | render-function.md | Render 函数 | @awe | @awe
42+
15 | x | reactivity.md | 深入响应式原理 | | @veaba
43+
16 | 是 | custom-directive.md | 自定义指令 | @harrytospring | @harrytospring
44+
17 | 是 | mixins.md | 混合 | @harrytospring | @harrytospring
45+
18 | x | plugins.md | 插件 | | @hgcoder
46+
19 | x | single-file-components.md | 单文件组件 | | @ATLgo
47+
20 | 是 | routing.md | 路由 | @dingyiming | @dingyiming
48+
21 | 是 | state-management.md | 状态管理 | @dear-lizhihua | @dear-lizhihua
49+
22 | 是 | unit-testing.md | 单元测试 | @70data | @70data
50+
23 | 是 | ssr.md | 服务端渲染 | @dingyiming | @dingyiming
51+
24 | x | migration.md | 1.x迁移 | | @harrytospring
52+
53+
### Meta 更多
54+
55+
序号 | 是否完成 | 对应文档文件名 | 中文标题 | 贡献者 | 认领者
56+
----- | ------- | ------------- | --- | --- | ---
57+
25 | x | comparison.md | 对比其他框架 | | @yongbolv @daix6
58+
26 | 是 | join.md | 加入Vue.js社区 | @daix6 | @daix6

src/about/index.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,45 @@
11
---
2-
title: 关于翻译
2+
title: 参与指南
33
type: about
4-
order: 1
4+
order: 0
55
---
66

7+
> 官方文档仓库:http://vuejs.org/guide/
8+
> 翻译文档仓库:https://github.com/vuefe/vuejs.org
9+
710
- 加QQ群参与翻译: `427447379`
8-
- [翻译Guide认领](https://github.com/vuefe/vuejs.org/issues/1)
11+
- [翻译Guide认领](https://github.com/vuefe/vuejs.org/issues/1)
12+
- [翻译API认领](https://github.com/vuefe/vuejs.org/issues/44)
13+
- [翻译指引](https://github.com/vuefe/vuejs.org/issues/25)
14+
15+
16+
## 说明
17+
18+
- 翻译前,请在对应 issue 回复认领
19+
- 认领格式 :` 我翻译 + 文档序号` 即可
20+
- 支持多人协作翻译,冲突可以解决,认领过的,如果你觉着他太慢,可以再次认领,加速翻译,知道大家都是牺牲业余时间来贡献,所以慢也是可以理解的,慢就需要大家一起帮帮忙了!谢谢。
21+
22+
## 基础指引
23+
24+
### 基础环境
25+
26+
- `node lastest`
27+
- `npm lastest`
28+
- `npm i -g hexo`
29+
- `git bash`
30+
31+
### 主要步骤
32+
33+
- `github fork` 仓库代码到自己的账号下
34+
- `git clone fork` 的仓库代码到本地
35+
- 进入项目目录 ,`npm install` 安装依赖
36+
- `hexo s` 启动项目,浏览器打开 `localhost:4000` 查看当前文档情况,已支持browsersync热加载 ,可边改边看
37+
- 然后用自己喜欢的编辑器,比如`sublime text 3` 打开项目目录,找到 `src/guide` 目录 , 也就是当前文档翻译的目录,根据github 仓库中,认领issue中对照文件名.md ,认领自己打算翻译的内容,然后打开该文件就可以进行翻译了!
38+
![image](https://cloud.githubusercontent.com/assets/12537013/18859543/b6e3d724-84a7-11e6-9bb6-812c45c16782.png)
39+
40+
- 翻译完后,使用git 提交更新到自己的仓库,后,在`https://github.com/vuefe/vuejs.org/pulls` 提交合并请求
41+
![image](https://cloud.githubusercontent.com/assets/12537013/19106938/68c786fa-8b1c-11e6-8ea0-30f97cf1a83b.png)
42+
43+
- 在QQ群里呼叫群主,合并请求
44+
- 群主合并内容,并记录贡献, 更新在线静态站内容
45+

src/api/index.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
type: api
33
---
44

5-
## Global Config
5+
## 全局配置
66

7-
`Vue.config` is an object containing Vue's global configurations. You can modify its properties listed below before bootstrapping your application:
7+
`Vue.config` is 是一个对象,包含 Vue 的全局配置。可以在启动应用之前修改下列属性:
88

99
### silent
1010

11-
- **Type:** `boolean`
11+
- **类型:** `boolean`
1212

13-
- **Default:** `false`
13+
- **默认值:** `false`
1414

15-
- **Usage:**
15+
- **用法:**
1616

1717
``` js
1818
Vue.config.silent = true
1919
```
2020

21-
Suppress all Vue logs and warnings.
21+
取消 Vue 所有的日志与警告。
2222

2323
### optionMergeStrategies
2424

25-
- **Type:** `{ [key: string]: Function }`
25+
- **类型:** `{ [key: string]: Function }`
2626

27-
- **Default:** `{}`
27+
- **默认值:** `{}`
2828

29-
- **Usage:**
29+
- **用法:**
3030

3131
``` js
3232
Vue.config.optionMergeStrategies._my_option = function (parent, child, vm) {
@@ -40,56 +40,56 @@ type: api
4040
// Profile.options._my_option = 2
4141
```
4242

43-
Define custom merging strategies for options.
43+
自定义选项的混合策略。
4444

45-
The merge strategy receives the value of that option defined on the parent and child instances as the first and second arguments, respectively. The context Vue instance is passed as the third argument.
45+
合并策略函数接收定义在父实例和子实例上的 option,分别作为第一个和第二个参数的值,Vue实例上下文被作为第三个参数传入。
4646

47-
- **See also**: [Custom Option Merging Strategies](/guide/mixins.html#Custom-Option-Merge-Strategies)
47+
- **参考**: [自定义选项的混合策略](/guide/mixins.html#Custom-Option-Merge-Strategies)
4848

4949
### devtools
5050

51-
- **Type:** `boolean`
51+
- **类型:** `boolean`
5252

53-
- **Default:** `true` (`false` in production builds)
53+
- **默认值:** `true` (生产版为 `false`)
5454

55-
- **Usage:**
55+
- **用法:**
5656

5757
``` js
58-
// make sure to set this synchronously immediately after loading Vue
58+
// 务必在加载 Vue 之后,立即同步设置以下内容
5959
Vue.config.devtools = true
6060
```
6161

62-
Configure whether to allow [vue-devtools](https://github.com/vuejs/vue-devtools) inspection. This option's default value is `true` in development builds and `false` in production builds. You can set it to `true` to enable inspection for production builds.
62+
配置是否允许 [vue-devtools](https://github.com/vuejs/vue-devtools) 检查代码。开发版本默认为 `true`,生产版本默认为 `false`。生产版本设为 `true` 可以启用检查。
6363

6464
### errorHandler
6565

66-
- **Type:** `Function`
66+
- **类型:** `Function`
6767

68-
- **Default:** Error is thrown in place
68+
- **默认值:** 默认抛出错误
6969

70-
- **Usage:**
70+
- **用法:**
7171

7272
``` js
7373
Vue.config.errorHandler = function (err, vm) {
7474
// handle error
7575
}
7676
```
7777

78-
Assign a handler for uncaught errors during component render and watchers. The handler gets called with the error and the Vue instance.
78+
指定组件的渲染和观察期间未捕获错误的处理函数。处理函数被调用时,可获取错误信息和 Vue 实例。
7979

8080
### keyCodes
8181

82-
- **Type:** `{ [key: string]: number }`
82+
- **类型:** `{ [key: string]: number }`
8383

84-
- **Default:** `{}`
84+
- **默认值:** `{}`
8585

86-
- **Usage:**
86+
- **用法:**
8787

8888
``` js
8989
Vue.config.keyCodes = { esc: 27 }
9090
```
9191

92-
Define custom key aliases for v-on.
92+
自定义 v-on 键位别名。
9393

9494
## Global API
9595

src/changelog/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ order: 0
66

77
[更新日志](https://github.com/vuejs/vue/releases)
88

9+
## [v2.0.1](https://github.com/vuejs/vue/releases/tag/v2.0.1)
10+
11+
![image](https://cloud.githubusercontent.com/assets/12537013/19139459/6de9ff46-8bb7-11e6-82ee-e3e0f2eab71d.png)
12+
913

1014
## [v2.0.0-rc.8](https://github.com/vuejs/vue/releases/tag/v2.0.0-rc.8)
1115

0 commit comments

Comments
 (0)