config.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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: '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. {
  61. text: 'Guide',
  62. link: '/guide/'
  63. },
  64. {
  65. text: 'API Reference',
  66. link: '/api/'
  67. },
  68. {
  69. text: 'Release Notes',
  70. link: 'https://github.com/vuejs/vuex/releases'
  71. }
  72. ],
  73. sidebar: [
  74. '/installation',
  75. '/',
  76. '/guide/',
  77. {
  78. title: 'Core Concepts',
  79. collapsable: false,
  80. children: [
  81. '/guide/state',
  82. '/guide/getters',
  83. '/guide/mutations',
  84. '/guide/actions',
  85. '/guide/modules'
  86. ]
  87. },
  88. '/guide/structure',
  89. '/guide/plugins',
  90. '/guide/strict',
  91. '/guide/forms',
  92. '/guide/testing',
  93. '/guide/hot-reload'
  94. ]
  95. },
  96. '/zh/': {
  97. label: '简体中文',
  98. selectText: '选择语言',
  99. editLinkText: '在 GitHub 上编辑此页',
  100. nav: [
  101. {
  102. text: '指南',
  103. link: '/zh/guide/'
  104. },
  105. {
  106. text: 'API 参考',
  107. link: '/zh/api/'
  108. },
  109. {
  110. text: '更新记录',
  111. link: 'https://github.com/vuejs/vuex/releases'
  112. }
  113. ],
  114. sidebar: [
  115. '/zh/installation',
  116. '/zh/',
  117. '/zh/guide/',
  118. {
  119. title: '核心概念',
  120. collapsable: false,
  121. children: [
  122. '/zh/guide/state',
  123. '/zh/guide/getters',
  124. '/zh/guide/mutations',
  125. '/zh/guide/actions',
  126. '/zh/guide/modules'
  127. ]
  128. },
  129. '/zh/guide/structure',
  130. '/zh/guide/plugins',
  131. '/zh/guide/strict',
  132. '/zh/guide/forms',
  133. '/zh/guide/testing',
  134. '/zh/guide/hot-reload'
  135. ]
  136. },
  137. '/ja/': {
  138. label: '日本語',
  139. selectText: '言語',
  140. editLinkText: 'GitHub 上でこのページを編集する',
  141. nav: [{
  142. text: 'ガイド',
  143. link: '/ja/guide/'
  144. },
  145. {
  146. text: 'API リファレンス',
  147. link: '/ja/api/'
  148. },
  149. {
  150. text: 'リリースノート',
  151. link: 'https://github.com/vuejs/vuex/releases'
  152. }
  153. ],
  154. sidebar: [
  155. '/ja/installation',
  156. '/ja/',
  157. '/ja/guide/',
  158. {
  159. title: 'コアコンセプト',
  160. collapsable: false,
  161. children: [
  162. '/ja/guide/state',
  163. '/ja/guide/getters',
  164. '/ja/guide/mutations',
  165. '/ja/guide/actions',
  166. '/ja/guide/modules'
  167. ]
  168. },
  169. '/ja/guide/structure',
  170. '/ja/guide/plugins',
  171. '/ja/guide/strict',
  172. '/ja/guide/forms',
  173. '/ja/guide/testing',
  174. '/ja/guide/hot-reload'
  175. ]
  176. },
  177. '/ru/': {
  178. label: 'Русский',
  179. selectText: 'Переводы',
  180. editLinkText: 'Изменить эту страницу на GitHub',
  181. nav: [
  182. {
  183. text: 'Руководство',
  184. link: '/ru/guide/'
  185. },
  186. {
  187. text: 'Справочник API',
  188. link: '/ru/api/'
  189. },
  190. {
  191. text: 'История изменений',
  192. link: 'https://github.com/vuejs/vuex/releases'
  193. }
  194. ],
  195. sidebar: [
  196. '/ru/installation',
  197. '/ru/',
  198. '/ru/guide/',
  199. {
  200. title: 'Основные понятия',
  201. collapsable: false,
  202. children: [
  203. '/ru/guide/state',
  204. '/ru/guide/getters',
  205. '/ru/guide/mutations',
  206. '/ru/guide/actions',
  207. '/ru/guide/modules'
  208. ]
  209. },
  210. '/ru/guide/structure',
  211. '/ru/guide/plugins',
  212. '/ru/guide/strict',
  213. '/ru/guide/forms',
  214. '/ru/guide/testing',
  215. '/ru/guide/hot-reload'
  216. ]
  217. },
  218. '/kr/': {
  219. label: '한국어',
  220. selectText: '언어 변경',
  221. editLinkText: 'GitHub에서 이 페이지 수정',
  222. nav: [{
  223. text: '가이드',
  224. link: '/kr/guide/'
  225. },
  226. {
  227. text: 'API 레퍼런스',
  228. link: '/kr/api/'
  229. },
  230. {
  231. text: '릴리즈 노트',
  232. link: 'https://github.com/vuejs/vuex/releases'
  233. }
  234. ],
  235. sidebar: [
  236. '/kr/installation',
  237. '/kr/',
  238. '/kr/guide/',
  239. {
  240. title: '핵심 컨셉',
  241. collapsable: false,
  242. children: [
  243. '/kr/guide/state',
  244. '/kr/guide/getters',
  245. '/kr/guide/mutations',
  246. '/kr/guide/actions',
  247. '/kr/guide/modules'
  248. ]
  249. },
  250. '/kr/guide/structure',
  251. '/kr/guide/plugins',
  252. '/kr/guide/strict',
  253. '/kr/guide/forms',
  254. '/kr/guide/testing',
  255. '/kr/guide/hot-reload'
  256. ]
  257. },
  258. '/ptbr/': {
  259. label: 'Português',
  260. selectText: 'Idiomas',
  261. editLinkText: 'Edite esta página no GitHub',
  262. nav: [
  263. {
  264. text: 'Guia',
  265. link: '/ptbr/guide/'
  266. },
  267. {
  268. text: 'Referência da API',
  269. link: '/ptbr/api/'
  270. },
  271. {
  272. text: 'Notas da Versão',
  273. link: 'https://github.com/vuejs/vuex/releases'
  274. }
  275. ],
  276. sidebar: [
  277. '/ptbr/installation',
  278. '/ptbr/',
  279. '/ptbr/guide/',
  280. {
  281. title: 'Conceitos Básicos',
  282. collapsable: false,
  283. children: [
  284. '/ptbr/guide/state',
  285. '/ptbr/guide/getters',
  286. '/ptbr/guide/mutations',
  287. '/ptbr/guide/actions',
  288. '/ptbr/guide/modules'
  289. ]
  290. },
  291. '/ptbr/guide/structure',
  292. '/ptbr/guide/plugins',
  293. '/ptbr/guide/strict',
  294. '/ptbr/guide/forms',
  295. '/ptbr/guide/testing',
  296. '/ptbr/guide/hot-reload'
  297. ]
  298. },
  299. '/fr/': {
  300. label: 'Français',
  301. selectText: 'Langues',
  302. editLinkText: 'Éditer la page sur GitHub',
  303. nav: [
  304. {
  305. text: 'Guide',
  306. link: '/fr/guide/'
  307. },
  308. {
  309. text: 'API',
  310. link: '/fr/api/'
  311. },
  312. {
  313. text: 'Notes de version',
  314. link: 'https://github.com/vuejs/vuex/releases'
  315. }
  316. ],
  317. sidebar: [
  318. '/fr/installation',
  319. '/fr/',
  320. '/fr/guide/',
  321. {
  322. title: 'Concepts centraux',
  323. collapsable: false,
  324. children: [
  325. '/fr/guide/state',
  326. '/fr/guide/getters',
  327. '/fr/guide/mutations',
  328. '/fr/guide/actions',
  329. '/fr/guide/modules'
  330. ]
  331. },
  332. '/fr/guide/structure',
  333. '/fr/guide/plugins',
  334. '/fr/guide/strict',
  335. '/fr/guide/forms',
  336. '/fr/guide/testing',
  337. '/fr/guide/hot-reload'
  338. ]
  339. },
  340. }
  341. }
  342. }