Skip to content

Commit

Permalink
docs(zh): add zh translation for 4.0 docs (#1965)
Browse files Browse the repository at this point in the history
* docs: add zh docs for vuex 4.0

* docs: add sidebar

* Update docs/zh/installation.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/installation.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/api/index.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/.vitepress/config.js

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/api/index.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/api/index.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/api/index.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/actions.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/composition-api.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/composition-api.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/composition-api.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/composition-api.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/composition-api.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/forms.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/getters.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/composition-api.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/getters.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/index.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/index.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/index.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* docs: update some mistakes

* Update docs/zh/guide/migrating-to-4-0-from-3-x.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* docs: update

* docs: fix anchor

* Update docs/zh/guide/composition-api.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/migrating-to-4-0-from-3-x.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/modules.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* Update docs/zh/guide/typescript-support.md

Co-authored-by: GU Yiling <justice360@gmail.com>

* docs: scrimba -> Scrimba

* docs: adjust lang list order and fix link to api docs

Co-authored-by: GU Yiling <justice360@gmail.com>
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
  • Loading branch information
3 people committed May 10, 2021
1 parent 34225b3 commit db8c476
Show file tree
Hide file tree
Showing 19 changed files with 2,438 additions and 1 deletion.
66 changes: 65 additions & 1 deletion docs/.vitepress/config.js
Expand Up @@ -9,6 +9,11 @@ module.exports = {
title: 'Vuex',
description: 'Centralized State Management for Vue.js'
},
'/zh/': {
lang: 'zh-CN',
title: 'Vuex',
description: 'Vue.js 的中心化状态管理方案'
},
'/ptbr/': {
lang: 'pt-BR',
title: 'Vuex',
Expand All @@ -20,7 +25,7 @@ module.exports = {
['link', { rel: 'icon', href: `/logo.png` }],
['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }],
['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }],
['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }]
],

themeConfig: {
Expand Down Expand Up @@ -90,6 +95,65 @@ module.exports = {
]
},

'/zh/': {
label: '简体中文',
selectText: '选择语言',
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '最近更新时间',

nav: [
{ text: '指南', link: '/zh/guide/' },
{ text: 'API 参考', link: '/zh/api/' },
{ text: '更新记录', link: 'https://github.com/vuejs/vuex/releases' },
{
text: 'v4.x',
items: [
{ text: 'v3.x', link: 'https://vuex.vuejs.org/zh' }
]
}
],

sidebar: [
{
text: '介绍',
children: [
{ text: 'Vuex 是什么?', link: '/zh/' },
{ text: '安装', link: '/zh/installation' },
{ text: '开始', link: '/zh/guide/' }
]
},
{
text: '核心概念',
children: [
{ text: 'State', link: '/zh/guide/state' },
{ text: 'Getter', link: '/zh/guide/getters' },
{ text: 'Mutation', link: '/zh/guide/mutations' },
{ text: 'Action', link: '/zh/guide/actions' },
{ text: 'Module', link: '/zh/guide/modules' }
]
},
{
text: '进阶',
children: [
{ text: '项目结构', link: '/zh/guide/structure' },
{ text: '组合式 API', link: '/zh/guide/composition-api' },
{ text: '插件', link: '/zh/guide/plugins' },
{ text: '严格模式', link: '/zh/guide/strict' },
{ text: '表单处理', link: '/zh/guide/forms' },
{ text: '测试', link: '/zh/guide/testing' },
{ text: '热重载', link: '/zh/guide/hot-reload' },
{ text: 'TypeScript 支持', link: '/zh/guide/typescript-support' },
]
},
{
text: '迁移指南',
children: [
{ text: '从 3.x 迁移到 4.0', link: '/zh/guide/migrating-to-4-0-from-3-x' }
]
}
]
},

'/ptbr/': {
label: 'Português',
selectText: 'Idiomas',
Expand Down

0 comments on commit db8c476

Please sign in to comment.