config.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. },
  19. serviceWorker: true,
  20. theme: 'vue',
  21. themeConfig: {
  22. repo: 'vuejs/vuex',
  23. docsDir: 'docs',
  24. locales: {
  25. '/': {
  26. label: 'English',
  27. selectText: 'Languages',
  28. editLinkText: 'Edit this page on GitHub',
  29. nav: [
  30. {
  31. text: 'Guide',
  32. link: '/getting-started'
  33. },
  34. {
  35. text: 'API Reference',
  36. link: '/api'
  37. },
  38. {
  39. text: 'Release Notes',
  40. link: 'https://github.com/vuejs/vuex/releases'
  41. }
  42. ],
  43. sidebar: [
  44. '/installation',
  45. '/',
  46. '/getting-started',
  47. {
  48. title: 'Core Concepts',
  49. collapsable: false,
  50. children: [
  51. '/state',
  52. '/getters',
  53. '/mutations',
  54. '/actions',
  55. '/modules'
  56. ]
  57. },
  58. '/structure',
  59. '/plugins',
  60. '/strict',
  61. '/forms',
  62. '/testing',
  63. '/hot-reload'
  64. ]
  65. },
  66. '/zh/': {
  67. label: '简体中文',
  68. selectText: '选择语言',
  69. editLinkText: '在 GitHub 上编辑此页',
  70. nav: [
  71. {
  72. text: '指南',
  73. link: '/zh/getting-started'
  74. },
  75. {
  76. text: 'API 参考',
  77. link: '/zh/api'
  78. },
  79. {
  80. text: '更新记录',
  81. link: 'https://github.com/vuejs/vuex/releases'
  82. }
  83. ],
  84. sidebar: [
  85. '/zh/installation',
  86. '/zh/',
  87. '/zh/getting-started',
  88. {
  89. title: '核心概念',
  90. collapsable: false,
  91. children: [
  92. '/zh/state',
  93. '/zh/getters',
  94. '/zh/mutations',
  95. '/zh/actions',
  96. '/zh/modules'
  97. ]
  98. },
  99. '/zh/structure',
  100. '/zh/plugins',
  101. '/zh/strict',
  102. '/zh/forms',
  103. '/zh/testing',
  104. '/zh/hot-reload'
  105. ]
  106. },
  107. '/ja/': {
  108. label: '日本語',
  109. selectText: '言語',
  110. editLinkText: 'GitHub 上でこのページを編集する',
  111. nav: [{
  112. text: 'ガイド',
  113. link: '/ja/getting-started'
  114. },
  115. {
  116. text: 'API リファレンス',
  117. link: '/ja/api'
  118. },
  119. {
  120. text: 'リリースノート',
  121. link: 'https://github.com/vuejs/vuex/releases'
  122. }
  123. ],
  124. sidebar: [
  125. '/ja/installation',
  126. '/ja/',
  127. '/ja/getting-started',
  128. {
  129. title: 'コアコンセプト',
  130. collapsable: false,
  131. children: [
  132. '/ja/state',
  133. '/ja/getters',
  134. '/ja/mutations',
  135. '/ja/actions',
  136. '/ja/modules'
  137. ]
  138. },
  139. '/ja/structure',
  140. '/ja/plugins',
  141. '/ja/strict',
  142. '/ja/forms',
  143. '/ja/testing',
  144. '/ja/hot-reload'
  145. ]
  146. }
  147. }
  148. }
  149. }