Skip to content

Commit cd59b0c

Browse files
committed
translate installation.md
1 parent 4ba7949 commit cd59b0c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/vuex/installation.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ order: 1
66

77
# 安装
88

9-
### Direct Download / CDN
9+
### 直接下载 / CDN
1010

1111
[https://unpkg.com/vuex](https://unpkg.com/vuex)
1212

13-
[Unpkg.com](https://unpkg.com) provides NPM-based CDN links. The above link will always point to the latest release on NPM. You can also use a specific version/tag via URLs like `https://unpkg.com/vuex@2.0.0`.
13+
[Unpkg.com](https://unpkg.com) 提供基于 NPMCDN 链接。以上链接总是保持在 NPM 上的最新版本。你也可以通过类似于这样的 URL `https://unpkg.com/vuex@2.0.0` 使用特殊的 版本/标签。
1414

15-
Include `vuex` after Vue and it will install itself automatically:
15+
在包含 Vue 之后包含 `vuex`,它会自动安装:
1616

1717
``` html
1818
<script src="/path/to/vue.js"></script>
@@ -25,7 +25,7 @@ Include `vuex` after Vue and it will install itself automatically:
2525
npm install vuex
2626
```
2727

28-
When used with a module system, you must explicitly install the router via `Vue.use()`:
28+
当配合模块系统一起使用时,你必须通过 `Vue.use()` 显式安装到路由上:
2929

3030
``` js
3131
import Vue from 'vue'
@@ -34,12 +34,11 @@ import Vuex from 'vuex'
3434
Vue.use(Vuex)
3535
```
3636

37-
You don't need to do this when using global script tags.
37+
当你使用全局脚本标签时不需要这样做。
3838

39-
### Dev Build
39+
### 使用开发版
4040

41-
You will have to clone directly from GitHub and build `vuex` yourself if
42-
you want to use the latest dev build.
41+
你如果想使用最新的开发版,请直接去 GitHub 克隆,然后构建你自己的 `vuex`
4342

4443
``` bash
4544
git clone https://github.com/vuejs/vuex.git node_modules/vuex

0 commit comments

Comments
 (0)