config.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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. sidebar: [
  65. {
  66. title: 'Introduction',
  67. collapsable: false,
  68. children: [
  69. { title: 'What is Vuex?', path: '/' },
  70. { title: 'Installation', path: '/installation' },
  71. { title: 'Getting Started', path: '/guide/' }
  72. ]
  73. },
  74. {
  75. title: 'Core Concepts',
  76. collapsable: false,
  77. children: [
  78. { title: 'State', path: '/guide/state' },
  79. { title: 'Getters', path: '/guide/getters' },
  80. { title: 'Mutations', path: '/guide/mutations' },
  81. { title: 'Actions', path: '/guide/actions' },
  82. { title: 'Modules', path: '/guide/modules' }
  83. ]
  84. },
  85. {
  86. title: 'Advanced',
  87. collapsable: false,
  88. children: [
  89. { title: 'Application Structure', path: '/guide/structure' },
  90. { title: 'Plugins', path: '/guide/plugins' },
  91. { title: 'Strict Mode', path: '/guide/strict' },
  92. { title: 'Form Handling', path: '/guide/forms' },
  93. { title: 'Testing', path: '/guide/testing' },
  94. { title: 'Hot Reloading', path: '/guide/hot-reload' }
  95. ]
  96. }
  97. ]
  98. },
  99. '/zh/': {
  100. label: '简体中文',
  101. selectText: '选择语言',
  102. editLinkText: '在 GitHub 上编辑此页',
  103. nav: [
  104. { text: '指南', link: '/zh/guide/' },
  105. { text: 'API 参考', link: '/zh/api/' },
  106. { text: '更新记录', link: 'https://github.com/vuejs/vuex/releases' }
  107. ],
  108. sidebar: [
  109. {
  110. title: '介绍',
  111. collapsable: false,
  112. children: [
  113. { title: 'Vuex 是什么?', path: '/zh/' },
  114. { title: '安装', path: '/zh/installation' },
  115. { title: '开始', path: '/zh/guide/' }
  116. ]
  117. },
  118. {
  119. title: '核心概念',
  120. collapsable: false,
  121. children: [
  122. { title: 'State', path: '/zh/guide/state' },
  123. { title: 'Getters', path: '/zh/guide/getters' },
  124. { title: 'Mutations', path: '/zh/guide/mutations' },
  125. { title: 'Actions', path: '/zh/guide/actions' },
  126. { title: 'Modules', path: '/zh/guide/modules' }
  127. ]
  128. },
  129. {
  130. title: '进阶',
  131. collapsable: false,
  132. children: [
  133. { title: '项目结构', path: '/zh/guide/structure' },
  134. { title: '插件', path: '/zh/guide/plugins' },
  135. { title: '严格模式', path: '/zh/guide/strict' },
  136. { title: '表单处理', path: '/zh/guide/forms' },
  137. { title: '测试', path: '/zh/guide/testing' },
  138. { title: '热重载', path: '/zh/guide/hot-reload' }
  139. ]
  140. }
  141. ]
  142. },
  143. '/ja/': {
  144. label: '日本語',
  145. selectText: '言語',
  146. editLinkText: 'GitHub 上でこのページを編集する',
  147. nav: [
  148. { text: 'ガイド', link: '/ja/guide/' },
  149. { text: 'API リファレンス', link: '/ja/api/' },
  150. { text: 'リリースノート', link: 'https://github.com/vuejs/vuex/releases' }
  151. ],
  152. sidebar: [
  153. {
  154. title: 'はじめに',
  155. collapsable: false,
  156. children: [
  157. { title: 'Vuex とは何か?', path: '/ja/' },
  158. { title: 'インストール', path: '/ja/installation' },
  159. { title: 'Vuex 入門', path: '/ja/guide/' }
  160. ]
  161. },
  162. {
  163. title: 'コアコンセプト',
  164. collapsable: false,
  165. children: [
  166. { title: 'ステート', path: '/ja/guide/state' },
  167. { title: 'ゲッター', path: '/ja/guide/getters' },
  168. { title: 'ミューテーション', path: '/ja/guide/mutations' },
  169. { title: 'アクション', path: '/ja/guide/actions' },
  170. { title: 'モジュール', path: '/ja/guide/modules' }
  171. ]
  172. },
  173. {
  174. title: '高度な活用',
  175. collapsable: false,
  176. children: [
  177. { title: 'アプリケーションの構造', path: '/ja/guide/structure' },
  178. { title: 'プラグイン', path: '/ja/guide/plugins' },
  179. { title: '厳格モード', path: '/ja/guide/strict' },
  180. { title: 'フォームの扱い', path: '/ja/guide/forms' },
  181. { title: 'テスト', path: '/ja/guide/testing' },
  182. { title: 'ホットリローディング', path: '/ja/guide/hot-reload' }
  183. ]
  184. }
  185. ]
  186. },
  187. '/ru/': {
  188. label: 'Русский',
  189. selectText: 'Переводы',
  190. editLinkText: 'Изменить эту страницу на GitHub',
  191. nav: [
  192. { text: 'Руководство', link: '/ru/guide/' },
  193. { text: 'Справочник API', link: '/ru/api/' },
  194. { text: 'История изменений', link: 'https://github.com/vuejs/vuex/releases' }
  195. ],
  196. sidebar: [
  197. {
  198. title: 'Введение',
  199. collapsable: false,
  200. children: [
  201. { title: 'Что такое Vuex?', path: '/ru/' },
  202. { title: 'Установка', path: '/ru/installation' },
  203. { title: 'Введение', path: '/ru/guide/' }
  204. ]
  205. },
  206. {
  207. title: 'Основные понятия',
  208. collapsable: false,
  209. children: [
  210. { title: 'Состояние', path: '/ru/guide/state' },
  211. { title: 'Геттеры', path: '/ru/guide/getters' },
  212. { title: 'Мутации', path: '/ru/guide/mutations' },
  213. { title: 'Действия', path: '/ru/guide/actions' },
  214. { title: 'Модули', path: '/ru/guide/modules' }
  215. ]
  216. },
  217. {
  218. title: 'Продвинутые темы',
  219. collapsable: false,
  220. children: [
  221. { title: 'Структура приложения', path: '/ru/guide/structure' },
  222. { title: 'Плагины', path: '/ru/guide/plugins' },
  223. { title: 'Строгий режим (strict mode)', path: '/ru/guide/strict' },
  224. { title: 'Работа с формами', path: '/ru/guide/forms' },
  225. { title: 'Тестирование', path: '/ru/guide/testing' },
  226. { title: 'Горячая перезагрузка', path: '/ru/guide/hot-reload' }
  227. ]
  228. }
  229. ]
  230. },
  231. '/kr/': {
  232. label: '한국어',
  233. selectText: '언어 변경',
  234. editLinkText: 'GitHub에서 이 페이지 수정',
  235. nav: [
  236. { text: '가이드', link: '/kr/guide/' },
  237. { text: 'API 레퍼런스', link: '/kr/api/' },
  238. { text: '릴리즈 노트', link: 'https://github.com/vuejs/vuex/releases' }
  239. ],
  240. sidebar: [
  241. {
  242. title: 'Introduction',
  243. collapsable: false,
  244. children: [
  245. { title: 'Vuex가 무엇인가요?', path: '/kr/' },
  246. { title: '설치', path: '/kr/installation' },
  247. { title: '시작하기', path: '/kr/guide/' }
  248. ]
  249. },
  250. {
  251. title: '핵심 컨셉',
  252. collapsable: false,
  253. children: [
  254. { title: '상태', path: '/kr/guide/state' },
  255. { title: 'Getters', path: '/kr/guide/getters' },
  256. { title: '변이', path: '/kr/guide/mutations' },
  257. { title: '액션', path: '/kr/guide/actions' },
  258. { title: '모듈', path: '/kr/guide/modules' }
  259. ]
  260. },
  261. {
  262. title: 'Advanced',
  263. collapsable: false,
  264. children: [
  265. { title: '애플리케이션 구조', path: '/kr/guide/structure' },
  266. { title: '플러그인', path: '/kr/guide/plugins' },
  267. { title: 'Strict 모드', path: '/kr/guide/strict' },
  268. { title: '폼 핸들링', path: '/kr/guide/forms' },
  269. { title: '테스팅', path: '/kr/guide/testing' },
  270. { title: '핫 리로딩', path: '/kr/guide/hot-reload' }
  271. ]
  272. }
  273. ]
  274. },
  275. '/ptbr/': {
  276. label: 'Português',
  277. selectText: 'Idiomas',
  278. editLinkText: 'Edite esta página no GitHub',
  279. nav: [
  280. { text: 'Guia', link: '/ptbr/guide/' },
  281. { text: 'Referência da API', link: '/ptbr/api/' },
  282. { text: 'Notas da Versão', link: 'https://github.com/vuejs/vuex/releases' }
  283. ],
  284. sidebar: [
  285. {
  286. title: 'Introdução',
  287. collapsable: false,
  288. children: [
  289. { title: 'O que é Vuex?', path: '/ptbr/' },
  290. { title: 'Instalação', path: '/ptbr/installation' },
  291. { title: 'Começando', path: '/ptbr/guide/' }
  292. ]
  293. },
  294. {
  295. title: 'Conceitos Básicos',
  296. collapsable: false,
  297. children: [
  298. { title: 'Estado', path: '/ptbr/guide/state' },
  299. { title: 'Getters', path: '/ptbr/guide/getters' },
  300. { title: 'Mutações', path: '/ptbr/guide/mutations' },
  301. { title: 'Ações', path: '/ptbr/guide/actions' },
  302. { title: 'Módulos', path: '/ptbr/guide/modules' }
  303. ]
  304. },
  305. {
  306. title: 'Avançado',
  307. collapsable: false,
  308. children: [
  309. { title: 'Estrutura da Aplicação', path: '/ptbr/guide/structure' },
  310. { title: 'Plugins', path: '/ptbr/guide/plugins' },
  311. { title: 'Modo Estrito', path: '/ptbr/guide/strict' },
  312. { title: 'Manipulação de Formulários', path: '/ptbr/guide/forms' },
  313. { title: 'Testando', path: '/ptbr/guide/testing' },
  314. { title: 'Hot Reloading (Recarregamento Rápido)', path: '/ptbr/guide/hot-reload' }
  315. ]
  316. }
  317. ]
  318. },
  319. '/fr/': {
  320. label: 'Français',
  321. selectText: 'Langues',
  322. editLinkText: 'Éditer la page sur GitHub',
  323. nav: [
  324. { text: 'Guide', link: '/fr/guide/' },
  325. { text: 'API', link: '/fr/api/' },
  326. { text: 'Notes de version', link: 'https://github.com/vuejs/vuex/releases' }
  327. ],
  328. sidebar: [
  329. {
  330. title: 'Introduction',
  331. collapsable: false,
  332. children: [
  333. { title: "Vuex, qu'est-ce que c'est ?", path: '/fr/' },
  334. { title: 'Installation', path: '/fr/installation' },
  335. { title: 'Pour commencer', path: '/fr/guide/' }
  336. ]
  337. },
  338. {
  339. title: 'Concepts centraux',
  340. collapsable: false,
  341. children: [
  342. { title: 'State', path: '/fr/guide/state' },
  343. { title: 'Accesseurs', path: '/fr/guide/getters' },
  344. { title: 'Mutations', path: '/fr/guide/mutations' },
  345. { title: 'Actions', path: '/fr/guide/actions' },
  346. { title: 'Modules', path: '/fr/guide/modules' }
  347. ]
  348. },
  349. {
  350. title: 'Avancés',
  351. collapsable: false,
  352. children: [
  353. { title: "Structure d'une application", path: '/fr/guide/structure' },
  354. { title: 'Plugins', path: '/fr/guide/plugins' },
  355. { title: 'Mode strict', path: '/fr/guide/strict' },
  356. { title: 'Gestion des formulaires', path: '/fr/guide/forms' },
  357. { title: 'Tests', path: '/fr/guide/testing' },
  358. { title: 'Rechargement à chaud', path: '/fr/guide/hot-reload' }
  359. ]
  360. }
  361. ]
  362. }
  363. }
  364. }
  365. }