@@ -9,6 +9,11 @@ module.exports = {
9
9
title : 'Vuex' ,
10
10
description : 'Centralized State Management for Vue.js'
11
11
} ,
12
+ '/zh/' : {
13
+ lang : 'zh-CN' ,
14
+ title : 'Vuex' ,
15
+ description : 'Vue.js 的中心化状态管理方案'
16
+ } ,
12
17
'/ptbr/' : {
13
18
lang : 'pt-BR' ,
14
19
title : 'Vuex' ,
@@ -20,7 +25,7 @@ module.exports = {
20
25
[ 'link' , { rel : 'icon' , href : `/logo.png` } ] ,
21
26
[ 'link' , { rel : 'apple-touch-icon' , href : `/icons/apple-touch-icon-152x152.png` } ] ,
22
27
[ 'link' , { rel : 'mask-icon' , href : '/icons/safari-pinned-tab.svg' , color : '#3eaf7c' } ] ,
23
- [ 'meta' , { name : 'msapplication-TileImage' , content : '/icons/msapplication-icon-144x144.png' } ] ,
28
+ [ 'meta' , { name : 'msapplication-TileImage' , content : '/icons/msapplication-icon-144x144.png' } ]
24
29
] ,
25
30
26
31
themeConfig : {
@@ -90,6 +95,65 @@ module.exports = {
90
95
]
91
96
} ,
92
97
98
+ '/zh/' : {
99
+ label : '简体中文' ,
100
+ selectText : '选择语言' ,
101
+ editLinkText : '在 GitHub 上编辑此页' ,
102
+ lastUpdated : '最近更新时间' ,
103
+
104
+ nav : [
105
+ { text : '指南' , link : '/zh/guide/' } ,
106
+ { text : 'API 参考' , link : '/zh/api/' } ,
107
+ { text : '更新记录' , link : 'https://github.com/vuejs/vuex/releases' } ,
108
+ {
109
+ text : 'v4.x' ,
110
+ items : [
111
+ { text : 'v3.x' , link : 'https://vuex.vuejs.org/zh' }
112
+ ]
113
+ }
114
+ ] ,
115
+
116
+ sidebar : [
117
+ {
118
+ text : '介绍' ,
119
+ children : [
120
+ { text : 'Vuex 是什么?' , link : '/zh/' } ,
121
+ { text : '安装' , link : '/zh/installation' } ,
122
+ { text : '开始' , link : '/zh/guide/' }
123
+ ]
124
+ } ,
125
+ {
126
+ text : '核心概念' ,
127
+ children : [
128
+ { text : 'State' , link : '/zh/guide/state' } ,
129
+ { text : 'Getter' , link : '/zh/guide/getters' } ,
130
+ { text : 'Mutation' , link : '/zh/guide/mutations' } ,
131
+ { text : 'Action' , link : '/zh/guide/actions' } ,
132
+ { text : 'Module' , link : '/zh/guide/modules' }
133
+ ]
134
+ } ,
135
+ {
136
+ text : '进阶' ,
137
+ children : [
138
+ { text : '项目结构' , link : '/zh/guide/structure' } ,
139
+ { text : '组合式 API' , link : '/zh/guide/composition-api' } ,
140
+ { text : '插件' , link : '/zh/guide/plugins' } ,
141
+ { text : '严格模式' , link : '/zh/guide/strict' } ,
142
+ { text : '表单处理' , link : '/zh/guide/forms' } ,
143
+ { text : '测试' , link : '/zh/guide/testing' } ,
144
+ { text : '热重载' , link : '/zh/guide/hot-reload' } ,
145
+ { text : 'TypeScript 支持' , link : '/zh/guide/typescript-support' } ,
146
+ ]
147
+ } ,
148
+ {
149
+ text : '迁移指南' ,
150
+ children : [
151
+ { text : '从 3.x 迁移到 4.0' , link : '/zh/guide/migrating-to-4-0-from-3-x' }
152
+ ]
153
+ }
154
+ ]
155
+ } ,
156
+
93
157
'/ptbr/' : {
94
158
label : 'Português' ,
95
159
selectText : 'Idiomas' ,
0 commit comments