Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit ccf29f8

Browse files
xuhongbokazupon
authored andcommittedMar 27, 2019
📝 docs(vuepress): translate documents for chinese (#536) by @xuhongbo
closes #531 * docs: add vuepress zh docs config * docs(zh/README.md): Translation README.md file * docs(zh/README.md): Translation installation.md file * docs: Translation introduction.md file * docs: Translation started.md file * docs: 更改称谓 * docs: Translation api/README.md file * style: values type * fix: pluralization -> 多元化 * fix: locale translation * docs: Translation api/formatting file * docs: Translation guide/pluralization.md file * fixed: fix type * docs: All translation completed * Update vuepress/.vuepress/config.js 参照Vue的规范修正译文中的格式 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * fix: type * fix: 区域设置 -> 语言环境 * style: Modify the format including punctuation and spaces * fix: 修复vuepress config * Update if not ..., check ... -> 如果没有则 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update 主语前置 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update 完善用语 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update 语义更明确 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * fix: Correct the format to remove extra spaces * update: 提示 -> tip * Update vuepress/zh/api/README.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * 更改主谓 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * 提高句子的可读性 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * 提高句子的可读性 Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/api/README.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/api/README.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * fix: Fix some keyword errors and various issues * update: Optimize text for readability * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/formatting.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/hot-reload.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/interpolation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/interpolation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/interpolation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/interpolation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/interpolation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/lazy-loading.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/lazy-loading.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/lazy-loading.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/locale.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/locale.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/locale.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/lazy-loading.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/lazy-loading.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * 区域 -> 语言环境, 消息 -> 信息 * Update vuepress/zh/guide/messages.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/messages.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/messages.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/messages.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/number.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * fix: Locale Messages -> 语言环境信息 * 同步源仓库到Fock仓库 (#1) * ⭐ new(path): Keypath should parse if sub path contains spaces. (#533) by @exoego * feat(path): Keypath should parse if sub path contains spaces. * feat(path): Added test for whitespaces * 📝 docs(vuepress): pluralization will not work unless you use $tc (#540) by @lebesnec * ⭐ new(number): i18n-n functional component (#541) by @bponomarenko * Revert "同步源仓库到Fock仓库 (#1)" (#2) This reverts commit 8f8a88b. * Update vuepress/zh/guide/pluralization.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/pluralization.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/pluralization.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/guide/sfc.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * style: code style * Update vuepress/zh/installation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/installation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/installation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/installation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/installation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/installation.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/introduction.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/introduction.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/introduction.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/introduction.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/started.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/started.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/started.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/started.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/started.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/legacy/README.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/legacy/README.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com> * Update vuepress/zh/legacy/README.md Co-Authored-By: xuhongbo <xuhongbo@outlook.com>
1 parent 71cadbf commit ccf29f8

21 files changed

+2839
-1
lines changed
 

‎vuepress/.vuepress/config.js

+71-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ module.exports = {
55
lang: 'en-US',
66
title: 'Vue I18n',
77
description: 'Vue I18n is internationalization plugin for Vue.js'
8-
}
8+
},
9+
'/zh/': {
10+
lang: 'zh-CN',
11+
title: 'Vue I18n',
12+
description: 'Vue I18n 是 Vue.js 的国际化插件'
13+
},
914
},
1015
head: [
1116
['meta', { name: 'theme-color', content: '#3eaf7c' }],
@@ -79,6 +84,71 @@ module.exports = {
7984
]
8085
}
8186
]
87+
},
88+
'/zh/': {
89+
label: '简体中文',
90+
selectText: '选择语言',
91+
editLinkText: '在 GitHub 上编辑此页',
92+
lastUpdated: '最近一次更新',
93+
nav: [
94+
{
95+
text: '指南',
96+
link: '/zh/guide/formatting',
97+
},
98+
{
99+
text: '旧版',
100+
link: '/zh/legacy/',
101+
},
102+
{
103+
text: 'API',
104+
link: '/zh/api/'
105+
},
106+
{
107+
text: '脚手架插件',
108+
link: 'https://github.com/kazupon/vue-cli-plugin-i18n'
109+
},
110+
{
111+
text: '赞助',
112+
link: 'https://www.patreon.com/kazupon'
113+
},
114+
{
115+
text: '发布日志',
116+
link: 'https://github.com/kazupon/vue-i18n/releases'
117+
}
118+
],
119+
sidebar: [
120+
'/zh/',
121+
'/zh/introduction',
122+
'/zh/started',
123+
'/zh/installation',
124+
{
125+
title: 'Guide',
126+
collapsable: false,
127+
children: [
128+
'/zh/guide/formatting',
129+
'/zh/guide/pluralization',
130+
'/zh/guide/datetime',
131+
'/zh/guide/number',
132+
'/zh/guide/messages',
133+
'/zh/guide/fallback',
134+
'/zh/guide/component',
135+
'/zh/guide/directive',
136+
'/zh/guide/interpolation',
137+
'/zh/guide/sfc',
138+
'/zh/guide/hot-reload',
139+
'/zh/guide/locale',
140+
'/zh/guide/lazy-loading'
141+
]
142+
},
143+
{
144+
title: 'Legacy',
145+
collapsable: false,
146+
children: [
147+
'/zh/legacy/',
148+
'/zh/legacy/v5'
149+
]
150+
}
151+
]
82152
}
83153
}
84154
}

‎vuepress/zh/README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
home: true
3+
heroImage: ./vue-i18n-logo.png
4+
actionText: 快速上手 →
5+
actionLink: introduction.md
6+
footer: MIT Licensed | Copyright © 2018 kazuya kawaguchi
7+
---
8+
9+
<div class="sponsors" style="text-align:center; padding: 0 0 24px 0;">
10+
<h4>白银赞助商</h4>
11+
<a href="https://www.codeandweb.com/babeledit?utm_campaign=vue-i18n-2019-01" target="_blank">
12+
<img src="/vue-i18n/patrons/babeledit.png">
13+
</a>
14+
</div>
15+
16+
<div class="patreon" style="padding: 0 0 24px 0;">
17+
<p style="text-align: center;">
18+
<a href="https://www.patreon.com/kazupon" target="_blank">
19+
<img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patreon">
20+
</a>
21+
</p>
22+
</div>
23+
24+
<div class="features">
25+
<div class="feature">
26+
<h2>简单</h2>
27+
<p>通过简单的 API 将你的应用国际化</p>
28+
</div>
29+
<div class="feature">
30+
<h2>强大</h2>
31+
<p>除了简单的翻译外,还支持复数,数字,日期时间等本地化处理</p>
32+
</div>
33+
<div class="feature">
34+
<h2>面向组件</h2>
35+
<p>你可以在单文件组件上管理语言环境信息</p>
36+
</div>
37+
</div>

0 commit comments

Comments
 (0)
This repository has been archived.