Skip to content

Commit

Permalink
📝 docs(vuepress): translate documents for chinese (#536) by @xuhongbo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xuhongbo authored and kazupon committed Mar 27, 2019
1 parent 71cadbf commit ccf29f8
Show file tree
Hide file tree
Showing 21 changed files with 2,839 additions and 1 deletion.
72 changes: 71 additions & 1 deletion vuepress/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ module.exports = {
lang: 'en-US',
title: 'Vue I18n',
description: 'Vue I18n is internationalization plugin for Vue.js'
}
},
'/zh/': {
lang: 'zh-CN',
title: 'Vue I18n',
description: 'Vue I18n 是 Vue.js 的国际化插件'
},
},
head: [
['meta', { name: 'theme-color', content: '#3eaf7c' }],
Expand Down Expand Up @@ -79,6 +84,71 @@ module.exports = {
]
}
]
},
'/zh/': {
label: '简体中文',
selectText: '选择语言',
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '最近一次更新',
nav: [
{
text: '指南',
link: '/zh/guide/formatting',
},
{
text: '旧版',
link: '/zh/legacy/',
},
{
text: 'API',
link: '/zh/api/'
},
{
text: '脚手架插件',
link: 'https://github.com/kazupon/vue-cli-plugin-i18n'
},
{
text: '赞助',
link: 'https://www.patreon.com/kazupon'
},
{
text: '发布日志',
link: 'https://github.com/kazupon/vue-i18n/releases'
}
],
sidebar: [
'/zh/',
'/zh/introduction',
'/zh/started',
'/zh/installation',
{
title: 'Guide',
collapsable: false,
children: [
'/zh/guide/formatting',
'/zh/guide/pluralization',
'/zh/guide/datetime',
'/zh/guide/number',
'/zh/guide/messages',
'/zh/guide/fallback',
'/zh/guide/component',
'/zh/guide/directive',
'/zh/guide/interpolation',
'/zh/guide/sfc',
'/zh/guide/hot-reload',
'/zh/guide/locale',
'/zh/guide/lazy-loading'
]
},
{
title: 'Legacy',
collapsable: false,
children: [
'/zh/legacy/',
'/zh/legacy/v5'
]
}
]
}
}
}
Expand Down
37 changes: 37 additions & 0 deletions vuepress/zh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
home: true
heroImage: ./vue-i18n-logo.png
actionText: 快速上手 →
actionLink: introduction.md
footer: MIT Licensed | Copyright © 2018 kazuya kawaguchi
---

<div class="sponsors" style="text-align:center; padding: 0 0 24px 0;">
<h4>白银赞助商</h4>
<a href="https://www.codeandweb.com/babeledit?utm_campaign=vue-i18n-2019-01" target="_blank">
<img src="/vue-i18n/patrons/babeledit.png">
</a>
</div>

<div class="patreon" style="padding: 0 0 24px 0;">
<p style="text-align: center;">
<a href="https://www.patreon.com/kazupon" target="_blank">
<img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patreon">
</a>
</p>
</div>

<div class="features">
<div class="feature">
<h2>简单</h2>
<p>通过简单的 API 将你的应用国际化</p>
</div>
<div class="feature">
<h2>强大</h2>
<p>除了简单的翻译外,还支持复数,数字,日期时间等本地化处理</p>
</div>
<div class="feature">
<h2>面向组件</h2>
<p>你可以在单文件组件上管理语言环境信息</p>
</div>
</div>
Loading

0 comments on commit ccf29f8

Please sign in to comment.