Skip to content

Commit a0012c4

Browse files
Jinjiangyyx990803
authored andcommitted
[doc] Chinese docs translation (vuejs#1786)
1 parent 87ad7fc commit a0012c4

19 files changed

+3453
-1
lines changed

docs/.vuepress/config.js

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ module.exports = {
44
lang: 'en-US',
55
title: 'Vue CLI 3',
66
description: '🛠️ Standard Tooling for Vue.js Development'
7-
}
7+
},
8+
'/zh/': {
9+
lang: 'zh-CN',
10+
title: 'Vue CLI',
11+
description: '🛠️ Vue.js 开发的标准工具'
12+
},
813
},
914
serviceWorker: true,
1015
theme: 'vue',
@@ -97,6 +102,82 @@ module.exports = {
97102
}
98103
]
99104
}
105+
},
106+
'/zh/': {
107+
label: '简体中文',
108+
selectText: '选择语言',
109+
lastUpdated: '上次编辑时间',
110+
editLinkText: '在 GitHub 上编辑此页',
111+
nav: [
112+
{
113+
text: '指南',
114+
link: '/zh/guide/'
115+
},
116+
{
117+
text: '配置参考',
118+
link: '/zh/config/'
119+
},
120+
{
121+
text: '开发指南',
122+
items: [
123+
{ text: 'Plugin Dev Guide', link: '/zh/dev-guide/plugin-dev.md' },
124+
{ text: 'UI Plugin Info', link: '/zh/dev-guide/ui-info.md' },
125+
{ text: 'UI Plugin API', link: '/zh/dev-guide/ui-api.md' },
126+
{ text: 'UI Localization', link: '/zh/dev-guide/ui-localization.md' }
127+
]
128+
},
129+
{
130+
text: '插件',
131+
items: [
132+
{ text: 'Babel', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-babel/README.md' },
133+
{ text: 'Typescript', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-typescript/README.md' },
134+
{ text: 'ESLint', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-eslint/README.md' },
135+
{ text: 'PWA', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-pwa/README.md' },
136+
{ text: 'Jest', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-unit-jest/README.md' },
137+
{ text: 'Mocha', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-unit-mocha/README.md' },
138+
{ text: 'Cypress', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-e2e-cypress/README.md' },
139+
{ text: 'Nightwatch', link: 'https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli-plugin-e2e-nightwatch/README.md' }
140+
]
141+
},
142+
{
143+
text: '更新记录',
144+
link: 'https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md'
145+
}
146+
],
147+
sidebar: {
148+
'/zh/guide/': [
149+
'/zh/guide/',
150+
{
151+
title: 'CLI',
152+
collapsable: false,
153+
children: [
154+
'/zh/guide/creating-a-project',
155+
'/zh/guide/prototyping',
156+
'/zh/guide/plugins-and-presets'
157+
]
158+
},
159+
{
160+
title: '开发',
161+
collapsable: false,
162+
children: [
163+
'/zh/guide/cli-service',
164+
'/zh/guide/browser-compatibility',
165+
'/zh/guide/html-and-static-assets',
166+
'/zh/guide/css',
167+
'/zh/guide/webpack',
168+
'/zh/guide/mode-and-env',
169+
'/zh/guide/build-targets',
170+
'/zh/guide/deployment'
171+
]
172+
}
173+
],
174+
'/zh/dev-guide/': [
175+
'/zh/dev-guide/plugin-dev.md',
176+
'/zh/dev-guide/ui-info.md',
177+
'/zh/dev-guide/ui-api.md',
178+
'/zh/dev-guide/ui-localization.md'
179+
]
180+
}
100181
}
101182
}
102183
}

docs/zh/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
home: true
3+
heroImage: /logo.png
4+
actionText: 起步 →
5+
actionLink: /zh/guide/
6+
features:
7+
- title: 功能丰富
8+
details: 对 Babel、TypeScript、ESLint、PostCSS、PWA、单元测试和 End-to-end 测试提供开箱即用的支持。
9+
- title: 易于扩展
10+
details: 它的插件系统可以让社区根据常见需求构建和共享可复用的解决方案。
11+
- title: 无需 Eject
12+
details: Vue CLI 完全是可配置的,无需 eject。这样你的项目就可以长期保持更新了。
13+
- title: 基于 CLI 的图形化界面
14+
details: 通过配套的图形化界面创建、开发和管理你的项目。
15+
- title: 即刻创建原型
16+
details: 用单个 Vue 文件即刻实践新的灵感。
17+
- title: 面向未来
18+
details: 为现代浏览器轻松产出原生的 ES2015 代码,或将你的 Vue 组件构建为原生的 Web Components 组件。
19+
footer: MIT Licensed | Copyright © 2018-present Evan You
20+
---
21+
22+
## 起步
23+
24+
``` bash
25+
npm install -g @vue/cli
26+
# OR
27+
yarn global add @vue/cli
28+
29+
vue create my-project
30+
```

0 commit comments

Comments
 (0)