config.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. module.exports = {
  2. locales: {
  3. '/': {
  4. lang: 'en-US',
  5. title: 'Vuex',
  6. description: 'Centralized State Management for Vue.js'
  7. },
  8. '/zh/': {
  9. lang: 'zh-CN',
  10. title: 'Vuex',
  11. description: 'Vue.js 的中心化状态管理方案'
  12. },
  13. '/ja/': {
  14. lang: 'ja',
  15. title: 'Vuex',
  16. description: 'Vue.js のための集中状態管理'
  17. },
  18. '/ru/': {
  19. lang: 'ru',
  20. title: 'Vuex',
  21. description: 'Централизованное управление состоянием для Vue.js'
  22. },
  23. '/kr/': {
  24. lang: 'kr',
  25. title: 'Vuex',
  26. description: 'Vue.js의 중앙 상태 관리'
  27. },
  28. '/ptbr/': {
  29. lang: 'pt-BR',
  30. title: 'Vuex',
  31. description: 'Gerenciamento de Estado Centralizado para Vue.js'
  32. },
  33. '/fr/': {
  34. lang: 'fr-FR',
  35. title: 'Vuex',
  36. description: 'Gestion d\'état centralisé pour Vue.js'
  37. }
  38. },
  39. head: [
  40. ['link', { rel: 'icon', href: `/logo.png` }],
  41. ['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
  42. ['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }],
  43. ['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }],
  44. ],
  45. serviceWorker: true,
  46. theme: '@vuepress/vue',
  47. themeConfig: {
  48. // algolia: {
  49. // apiKey: '97f135e4b5f5487fb53f0f2dae8db59d',
  50. // indexName: 'vuex',
  51. // },
  52. repo: 'vuejs/vuex',
  53. docsDir: 'docs',
  54. locales: {
  55. '/': {
  56. label: 'English',
  57. selectText: 'Languages',
  58. editLinkText: 'Edit this page on GitHub',
  59. nav: [
  60. { text: 'Guide', link: '/guide/' },
  61. { text: 'API Reference', link: '/api/' },
  62. { text: 'Release Notes', link: 'https://github.com/vuejs/vuex/releases' },
  63. {
  64. text: 'v3.x',
  65. items: [
  66. { text: 'v4.x', link: 'https://vuex.vuejs.org/' }
  67. ]
  68. }
  69. ],
  70. sidebar: [
  71. {
  72. title: 'Introduction',
  73. collapsable: false,
  74. children: [
  75. { title: 'What is Vuex?', path: '/' },
  76. { title: 'Installation', path: '/installation' },
  77. { title: 'Getting Started', path: '/guide/' }
  78. ]
  79. },
  80. {
  81. title: 'Core Concepts',
  82. collapsable: false,
  83. children: [
  84. { title: 'State', path: '/guide/state' },
  85. { title: 'Getters', path: '/guide/getters' },
  86. { title: 'Mutations', path: '/guide/mutations' },
  87. { title: 'Actions', path: '/guide/actions' },
  88. { title: 'Modules', path: '/guide/modules' }
  89. ]
  90. },
  91. {
  92. title: 'Advanced',
  93. collapsable: false,
  94. children: [
  95. { title: 'Application Structure', path: '/guide/structure' },
  96. { title: 'Plugins', path: '/guide/plugins' },
  97. { title: 'Strict Mode', path: '/guide/strict' },
  98. { title: 'Form Handling', path: '/guide/forms' },
  99. { title: 'Testing', path: '/guide/testing' },
  100. { title: 'Hot Reloading', path: '/guide/hot-reload' }
  101. ]
  102. }
  103. ]
  104. },
  105. '/zh/': {
  106. label: '简体中文',
  107. selectText: '选择语言',
  108. editLinkText: '在 GitHub 上编辑此页',
  109. nav: [
  110. { text: '指南', link: '/zh/guide/' },
  111. { text: 'API 参考', link: '/zh/api/' },
  112. { text: '更新记录', link: 'https://github.com/vuejs/vuex/releases' },
  113. {
  114. text: 'v3.x',
  115. items: [
  116. { text: 'v4.x', link: 'https://vuex.vuejs.org/zh/' }
  117. ]
  118. }
  119. ],
  120. sidebar: [
  121. {
  122. title: '介绍',
  123. collapsable: false,
  124. children: [
  125. { title: 'Vuex 是什么?', path: '/zh/' },
  126. { title: '安装', path: '/zh/installation' },
  127. { title: '开始', path: '/zh/guide/' }
  128. ]
  129. },
  130. {
  131. title: '核心概念',
  132. collapsable: false,
  133. children: [
  134. { title: 'State', path: '/zh/guide/state' },
  135. { title: 'Getters', path: '/zh/guide/getters' },
  136. { title: 'Mutations', path: '/zh/guide/mutations' },
  137. { title: 'Actions', path: '/zh/guide/actions' },
  138. { title: 'Modules', path: '/zh/guide/modules' }
  139. ]
  140. },
  141. {
  142. title: '进阶',
  143. collapsable: false,
  144. children: [
  145. { title: '项目结构', path: '/zh/guide/structure' },
  146. { title: '插件', path: '/zh/guide/plugins' },
  147. { title: '严格模式', path: '/zh/guide/strict' },
  148. { title: '表单处理', path: '/zh/guide/forms' },
  149. { title: '测试', path: '/zh/guide/testing' },
  150. { title: '热重载', path: '/zh/guide/hot-reload' }
  151. ]
  152. }
  153. ]
  154. },
  155. '/ja/': {
  156. label: '日本語',
  157. selectText: '言語',
  158. editLinkText: 'GitHub 上でこのページを編集する',
  159. nav: [
  160. { text: 'ガイド', link: '/ja/guide/' },
  161. { text: 'API リファレンス', link: '/ja/api/' },
  162. { text: 'リリースノート', link: 'https://github.com/vuejs/vuex/releases' },
  163. {
  164. text: 'v3.x',
  165. items: [
  166. { text: 'v4.x', link: 'https://vuex.vuejs.org/ja/' }
  167. ]
  168. }
  169. ],
  170. sidebar: [
  171. {
  172. title: 'はじめに',
  173. collapsable: false,
  174. children: [
  175. { title: 'Vuex とは何か?', path: '/ja/' },
  176. { title: 'インストール', path: '/ja/installation' },
  177. { title: 'Vuex 入門', path: '/ja/guide/' }
  178. ]
  179. },
  180. {
  181. title: 'コアコンセプト',
  182. collapsable: false,
  183. children: [
  184. { title: 'ステート', path: '/ja/guide/state' },
  185. { title: 'ゲッター', path: '/ja/guide/getters' },
  186. { title: 'ミューテーション', path: '/ja/guide/mutations' },
  187. { title: 'アクション', path: '/ja/guide/actions' },
  188. { title: 'モジュール', path: '/ja/guide/modules' }
  189. ]
  190. },
  191. {
  192. title: '高度な活用',
  193. collapsable: false,
  194. children: [
  195. { title: 'アプリケーションの構造', path: '/ja/guide/structure' },
  196. { title: 'プラグイン', path: '/ja/guide/plugins' },
  197. { title: '厳格モード', path: '/ja/guide/strict' },
  198. { title: 'フォームの扱い', path: '/ja/guide/forms' },
  199. { title: 'テスト', path: '/ja/guide/testing' },
  200. { title: 'ホットリローディング', path: '/ja/guide/hot-reload' }
  201. ]
  202. }
  203. ]
  204. },
  205. '/ru/': {
  206. label: 'Русский',
  207. selectText: 'Переводы',
  208. editLinkText: 'Изменить эту страницу на GitHub',
  209. nav: [
  210. { text: 'Руководство', link: '/ru/guide/' },
  211. { text: 'Справочник API', link: '/ru/api/' },
  212. { text: 'История изменений', link: 'https://github.com/vuejs/vuex/releases' },
  213. {
  214. text: 'v3.x',
  215. items: [
  216. { text: 'v4.x', link: 'https://vuex.vuejs.org/' }
  217. ]
  218. }
  219. ],
  220. sidebar: [
  221. {
  222. title: 'Введение',
  223. collapsable: false,
  224. children: [
  225. { title: 'Что такое Vuex?', path: '/ru/' },
  226. { title: 'Установка', path: '/ru/installation' },
  227. { title: 'Введение', path: '/ru/guide/' }
  228. ]
  229. },
  230. {
  231. title: 'Основные понятия',
  232. collapsable: false,
  233. children: [
  234. { title: 'Состояние', path: '/ru/guide/state' },
  235. { title: 'Геттеры', path: '/ru/guide/getters' },
  236. { title: 'Мутации', path: '/ru/guide/mutations' },
  237. { title: 'Действия', path: '/ru/guide/actions' },
  238. { title: 'Модули', path: '/ru/guide/modules' }
  239. ]
  240. },
  241. {
  242. title: 'Продвинутые темы',
  243. collapsable: false,
  244. children: [
  245. { title: 'Структура приложения', path: '/ru/guide/structure' },
  246. { title: 'Плагины', path: '/ru/guide/plugins' },
  247. { title: 'Строгий режим (strict mode)', path: '/ru/guide/strict' },
  248. { title: 'Работа с формами', path: '/ru/guide/forms' },
  249. { title: 'Тестирование', path: '/ru/guide/testing' },
  250. { title: 'Горячая перезагрузка', path: '/ru/guide/hot-reload' }
  251. ]
  252. }
  253. ]
  254. },
  255. '/kr/': {
  256. label: '한국어',
  257. selectText: '언어 변경',
  258. editLinkText: 'GitHub에서 이 페이지 수정',
  259. nav: [
  260. { text: '가이드', link: '/kr/guide/' },
  261. { text: 'API 레퍼런스', link: '/kr/api/' },
  262. { text: '릴리즈 노트', link: 'https://github.com/vuejs/vuex/releases' },
  263. {
  264. text: 'v3.x',
  265. items: [
  266. { text: 'v4.x', link: 'https://vuex.vuejs.org/' }
  267. ]
  268. }
  269. ],
  270. sidebar: [
  271. {
  272. title: 'Introduction',
  273. collapsable: false,
  274. children: [
  275. { title: 'Vuex가 무엇인가요?', path: '/kr/' },
  276. { title: '설치', path: '/kr/installation' },
  277. { title: '시작하기', path: '/kr/guide/' }
  278. ]
  279. },
  280. {
  281. title: '핵심 컨셉',
  282. collapsable: false,
  283. children: [
  284. { title: '상태', path: '/kr/guide/state' },
  285. { title: 'Getters', path: '/kr/guide/getters' },
  286. { title: '변이', path: '/kr/guide/mutations' },
  287. { title: '액션', path: '/kr/guide/actions' },
  288. { title: '모듈', path: '/kr/guide/modules' }
  289. ]
  290. },
  291. {
  292. title: 'Advanced',
  293. collapsable: false,
  294. children: [
  295. { title: '애플리케이션 구조', path: '/kr/guide/structure' },
  296. { title: '플러그인', path: '/kr/guide/plugins' },
  297. { title: 'Strict 모드', path: '/kr/guide/strict' },
  298. { title: '폼 핸들링', path: '/kr/guide/forms' },
  299. { title: '테스팅', path: '/kr/guide/testing' },
  300. { title: '핫 리로딩', path: '/kr/guide/hot-reload' }
  301. ]
  302. }
  303. ]
  304. },
  305. '/ptbr/': {
  306. label: 'Português',
  307. selectText: 'Idiomas',
  308. editLinkText: 'Edite esta página no GitHub',
  309. nav: [
  310. { text: 'Guia', link: '/ptbr/guide/' },
  311. { text: 'Referência da API', link: '/ptbr/api/' },
  312. { text: 'Notas da Versão', link: 'https://github.com/vuejs/vuex/releases' },
  313. {
  314. text: 'v3.x',
  315. items: [
  316. { text: 'v4.x', link: 'https://vuex.vuejs.org/ptbr/' }
  317. ]
  318. }
  319. ],
  320. sidebar: [
  321. {
  322. title: 'Introdução',
  323. collapsable: false,
  324. children: [
  325. { title: 'O que é Vuex?', path: '/ptbr/' },
  326. { title: 'Instalação', path: '/ptbr/installation' },
  327. { title: 'Começando', path: '/ptbr/guide/' }
  328. ]
  329. },
  330. {
  331. title: 'Conceitos Básicos',
  332. collapsable: false,
  333. children: [
  334. { title: 'Estado', path: '/ptbr/guide/state' },
  335. { title: 'Getters', path: '/ptbr/guide/getters' },
  336. { title: 'Mutações', path: '/ptbr/guide/mutations' },
  337. { title: 'Ações', path: '/ptbr/guide/actions' },
  338. { title: 'Módulos', path: '/ptbr/guide/modules' }
  339. ]
  340. },
  341. {
  342. title: 'Avançado',
  343. collapsable: false,
  344. children: [
  345. { title: 'Estrutura da Aplicação', path: '/ptbr/guide/structure' },
  346. { title: 'Plugins', path: '/ptbr/guide/plugins' },
  347. { title: 'Modo Estrito', path: '/ptbr/guide/strict' },
  348. { title: 'Manipulação de Formulários', path: '/ptbr/guide/forms' },
  349. { title: 'Testando', path: '/ptbr/guide/testing' },
  350. { title: 'Hot Reloading (Recarregamento Rápido)', path: '/ptbr/guide/hot-reload' }
  351. ]
  352. }
  353. ]
  354. },
  355. '/fr/': {
  356. label: 'Français',
  357. selectText: 'Langues',
  358. editLinkText: 'Éditer la page sur GitHub',
  359. nav: [
  360. { text: 'Guide', link: '/fr/guide/' },
  361. { text: 'API', link: '/fr/api/' },
  362. { text: 'Notes de version', link: 'https://github.com/vuejs/vuex/releases' },
  363. {
  364. text: 'v3.x',
  365. items: [
  366. { text: 'v4.x', link: 'https://vuex.vuejs.org/' }
  367. ]
  368. }
  369. ],
  370. sidebar: [
  371. {
  372. title: 'Introduction',
  373. collapsable: false,
  374. children: [
  375. { title: "Vuex, qu'est-ce que c'est ?", path: '/fr/' },
  376. { title: 'Installation', path: '/fr/installation' },
  377. { title: 'Pour commencer', path: '/fr/guide/' }
  378. ]
  379. },
  380. {
  381. title: 'Concepts centraux',
  382. collapsable: false,
  383. children: [
  384. { title: 'State', path: '/fr/guide/state' },
  385. { title: 'Accesseurs', path: '/fr/guide/getters' },
  386. { title: 'Mutations', path: '/fr/guide/mutations' },
  387. { title: 'Actions', path: '/fr/guide/actions' },
  388. { title: 'Modules', path: '/fr/guide/modules' }
  389. ]
  390. },
  391. {
  392. title: 'Avancés',
  393. collapsable: false,
  394. children: [
  395. { title: "Structure d'une application", path: '/fr/guide/structure' },
  396. { title: 'Plugins', path: '/fr/guide/plugins' },
  397. { title: 'Mode strict', path: '/fr/guide/strict' },
  398. { title: 'Gestion des formulaires', path: '/fr/guide/forms' },
  399. { title: 'Tests', path: '/fr/guide/testing' },
  400. { title: 'Rechargement à chaud', path: '/fr/guide/hot-reload' }
  401. ]
  402. }
  403. ]
  404. }
  405. }
  406. }
  407. }