config.js 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. module.exports = {
  2. lang: 'en-US',
  3. title: 'Vuex',
  4. description: 'Centralized State Management for Vue.js',
  5. locales: {
  6. '/': {
  7. lang: 'en-US',
  8. title: 'Vuex',
  9. description: 'Centralized State Management for Vue.js'
  10. },
  11. '/zh/': {
  12. lang: 'zh-CN',
  13. title: 'Vuex',
  14. description: 'Vue.js 的中心化状态管理方案'
  15. },
  16. '/ja/': {
  17. lang: 'ja',
  18. title: 'Vuex',
  19. description: 'Vue.js のための集中状態管理'
  20. },
  21. '/ptbr/': {
  22. lang: 'pt-BR',
  23. title: 'Vuex',
  24. description: 'Gerenciamento de Estado Centralizado para Vue.js'
  25. }
  26. },
  27. head: [
  28. ['link', { rel: 'icon', href: `/logo.png` }],
  29. ['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
  30. ['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }],
  31. ['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }]
  32. ],
  33. themeConfig: {
  34. repo: 'vuejs/vuex',
  35. docsDir: 'docs',
  36. docsBranch: 'main',
  37. editLinks: true,
  38. locales: {
  39. '/': {
  40. label: 'English',
  41. selectText: 'Languages',
  42. editLinkText: 'Edit this page on GitHub',
  43. lastUpdated: 'Last Updated',
  44. nav: [
  45. { text: 'Guide', link: '/guide/' },
  46. { text: 'API Reference', link: '/api/' },
  47. { text: 'Release Notes', link: 'https://github.com/vuejs/vuex/releases' },
  48. {
  49. text: 'v4.x',
  50. items: [
  51. { text: 'v3.x', link: 'https://v3.vuex.vuejs.org/' }
  52. ]
  53. }
  54. ],
  55. sidebar: [
  56. {
  57. text: 'Introduction',
  58. children: [
  59. { text: 'What is Vuex?', link: '/' },
  60. { text: 'Installation', link: '/installation' },
  61. { text: 'Getting Started', link: '/guide/' }
  62. ]
  63. },
  64. {
  65. text: 'Core Concepts',
  66. children: [
  67. { text: 'State', link: '/guide/state' },
  68. { text: 'Getters', link: '/guide/getters' },
  69. { text: 'Mutations', link: '/guide/mutations' },
  70. { text: 'Actions', link: '/guide/actions' },
  71. { text: 'Modules', link: '/guide/modules' }
  72. ]
  73. },
  74. {
  75. text: 'Advanced',
  76. children: [
  77. { text: 'Application Structure', link: '/guide/structure' },
  78. { text: 'Composition API', link: '/guide/composition-api' },
  79. { text: 'Plugins', link: '/guide/plugins' },
  80. { text: 'Strict Mode', link: '/guide/strict' },
  81. { text: 'Form Handling', link: '/guide/forms' },
  82. { text: 'Testing', link: '/guide/testing' },
  83. { text: 'Hot Reloading', link: '/guide/hot-reload' },
  84. { text: 'TypeScript Support', link: '/guide/typescript-support' },
  85. ]
  86. },
  87. {
  88. text: 'Migration Guide',
  89. children: [
  90. { text: 'Migrating to 4.0 from 3.x', link: '/guide/migrating-to-4-0-from-3-x' }
  91. ]
  92. }
  93. ]
  94. },
  95. '/zh/': {
  96. label: '简体中文',
  97. selectText: '选择语言',
  98. editLinkText: '在 GitHub 上编辑此页',
  99. lastUpdated: '最近更新时间',
  100. nav: [
  101. { text: '指南', link: '/zh/guide/' },
  102. { text: 'API 参考', link: '/zh/api/' },
  103. { text: '更新记录', link: 'https://github.com/vuejs/vuex/releases' },
  104. {
  105. text: 'v4.x',
  106. items: [
  107. { text: 'v3.x', link: 'https://v3.vuex.vuejs.org/zh' }
  108. ]
  109. }
  110. ],
  111. sidebar: [
  112. {
  113. text: '介绍',
  114. children: [
  115. { text: 'Vuex 是什么?', link: '/zh/' },
  116. { text: '安装', link: '/zh/installation' },
  117. { text: '开始', link: '/zh/guide/' }
  118. ]
  119. },
  120. {
  121. text: '核心概念',
  122. children: [
  123. { text: 'State', link: '/zh/guide/state' },
  124. { text: 'Getter', link: '/zh/guide/getters' },
  125. { text: 'Mutation', link: '/zh/guide/mutations' },
  126. { text: 'Action', link: '/zh/guide/actions' },
  127. { text: 'Module', link: '/zh/guide/modules' }
  128. ]
  129. },
  130. {
  131. text: '进阶',
  132. children: [
  133. { text: '项目结构', link: '/zh/guide/structure' },
  134. { text: '组合式 API', link: '/zh/guide/composition-api' },
  135. { text: '插件', link: '/zh/guide/plugins' },
  136. { text: '严格模式', link: '/zh/guide/strict' },
  137. { text: '表单处理', link: '/zh/guide/forms' },
  138. { text: '测试', link: '/zh/guide/testing' },
  139. { text: '热重载', link: '/zh/guide/hot-reload' },
  140. { text: 'TypeScript 支持', link: '/zh/guide/typescript-support' },
  141. ]
  142. },
  143. {
  144. text: '迁移指南',
  145. children: [
  146. { text: '从 3.x 迁移到 4.0', link: '/zh/guide/migrating-to-4-0-from-3-x' }
  147. ]
  148. }
  149. ]
  150. },
  151. '/ja/': {
  152. label: '日本語',
  153. selectText: '言語',
  154. editLinkText: 'GitHub 上でこのページを編集する',
  155. lastUpdated: '最終更新日時',
  156. nav: [
  157. { text: 'ガイド', link: '/ja/guide/' },
  158. { text: 'API リファレンス', link: '/ja/api/' },
  159. { text: 'リリースノート', link: 'https://github.com/vuejs/vuex/releases' },
  160. {
  161. text: 'v4.x',
  162. items: [
  163. { text: 'v3.x', link: 'https://v3.vuex.vuejs.org/ja' }
  164. ]
  165. }
  166. ],
  167. sidebar: [
  168. {
  169. text: 'はじめに',
  170. children: [
  171. { text: 'Vuex とは何か?', link: '/ja/' },
  172. { text: 'インストール', link: '/ja/installation' },
  173. { text: 'Vuex 入門', link: '/ja/guide/' }
  174. ]
  175. },
  176. {
  177. text: 'コアコンセプト',
  178. children: [
  179. { text: 'ステート', link: '/ja/guide/state' },
  180. { text: 'ゲッター', link: '/ja/guide/getters' },
  181. { text: 'ミューテーション', link: '/ja/guide/mutations' },
  182. { text: 'アクション', link: '/ja/guide/actions' },
  183. { text: 'モジュール', link: '/ja/guide/modules' }
  184. ]
  185. },
  186. {
  187. text: '高度な活用',
  188. children: [
  189. { text: 'アプリケーションの構造', link: '/ja/guide/structure' },
  190. { text: 'Composition API', link: '/ja/guide/composition-api' },
  191. { text: 'プラグイン', link: '/ja/guide/plugins' },
  192. { text: '厳格モード', link: '/ja/guide/strict' },
  193. { text: 'フォームの扱い', link: '/ja/guide/forms' },
  194. { text: 'テスト', link: '/ja/guide/testing' },
  195. { text: 'ホットリローディング', link: '/ja/guide/hot-reload' },
  196. { text: 'TypeScript サポート', link: '/ja/guide/typescript-support' },
  197. ]
  198. },
  199. {
  200. text: '移行 ガイド',
  201. children: [
  202. { text: '3.x から 4.0 への移行', link: '/ja/guide/migrating-to-4-0-from-3-x' }
  203. ]
  204. }
  205. ]
  206. },
  207. '/ptbr/': {
  208. label: 'Português',
  209. selectText: 'Idiomas',
  210. editLinkText: 'Edite esta página no GitHub',
  211. lastUpdated: 'Última Atualização',
  212. nav: [
  213. { text: 'Guia', link: '/ptbr/guide/' },
  214. { text: 'Referência da API', link: '/ptbr/api/' },
  215. { text: 'Notas de Lançamento', link: 'https://github.com/vuejs/vuex/releases' },
  216. {
  217. text: 'v4.x',
  218. items: [
  219. { text: 'v3.x', link: 'https://v3.vuex.vuejs.org/ptbr/' }
  220. ]
  221. }
  222. ],
  223. sidebar: [
  224. {
  225. text: 'Introdução',
  226. children: [
  227. { text: 'O que é Vuex?', link: '/ptbr/' },
  228. { text: 'Instalação', link: '/ptbr/installation' },
  229. { text: 'Começando', link: '/ptbr/guide/' }
  230. ]
  231. },
  232. {
  233. text: 'Conceitos Básicos',
  234. children: [
  235. { text: 'Estado', link: '/ptbr/guide/state' },
  236. { text: 'Getters', link: '/ptbr/guide/getters' },
  237. { text: 'Mutações', link: '/ptbr/guide/mutations' },
  238. { text: 'Ações', link: '/ptbr/guide/actions' },
  239. { text: 'Módulos', link: '/ptbr/guide/modules' }
  240. ]
  241. },
  242. {
  243. text: 'Avançado',
  244. children: [
  245. { text: 'Estrutura da Aplicação', link: '/ptbr/guide/structure' },
  246. { text: 'Composition API', link: '/ptbr/guide/composition-api' },
  247. { text: 'Plugins', link: '/ptbr/guide/plugins' },
  248. { text: 'Modo Strict', link: '/ptbr/guide/strict' },
  249. { text: 'Manipulação de Formulários', link: '/ptbr/guide/forms' },
  250. { text: 'Testando', link: '/ptbr/guide/testing' },
  251. { text: 'Hot Reloading', link: '/ptbr/guide/hot-reload' },
  252. { text: 'Suporte ao TypeScript', link: '/ptbr/guide/typescript-support' },
  253. ]
  254. },
  255. {
  256. text: 'Guia de Migração',
  257. children: [
  258. { text: 'Migrando do 3.x para 4.0', link: '/ptbr/guide/migrating-to-4-0-from-3-x' }
  259. ]
  260. }
  261. ]
  262. }
  263. }
  264. }
  265. }