|
1 | 1 | module.exports = { |
2 | | - title: 'Vue Loader', |
3 | | - description: 'Webpack loader for single-file Vue components', |
| 2 | + locales: { |
| 3 | + '/': { |
| 4 | + lang: 'en-US', |
| 5 | + title: 'Vue Loader', |
| 6 | + description: 'Webpack loader for single-file Vue components' |
| 7 | + }, |
| 8 | + '/zh/': { |
| 9 | + lang: 'zh-CN', |
| 10 | + title: 'Vue Loader', |
| 11 | + description: '处理 Vue 单文件组件的 Webpack loader' |
| 12 | + } |
| 13 | + }, |
4 | 14 | serviceWorker: true, |
5 | 15 | theme: 'vue', |
6 | 16 | themeConfig: { |
7 | 17 | repo: 'vuejs/vue-loader', |
8 | 18 | docsDir: 'docs', |
9 | | - nav: [ |
10 | | - { |
11 | | - text: 'Guide', |
12 | | - link: '/guide/' |
| 19 | + locales: { |
| 20 | + '/': { |
| 21 | + label: 'English', |
| 22 | + selectText: 'Languages', |
| 23 | + editLinkText: 'Edit this page on GitHub', |
| 24 | + nav: [ |
| 25 | + { |
| 26 | + text: 'Guide', |
| 27 | + link: '/guide/' |
| 28 | + }, |
| 29 | + { |
| 30 | + text: 'SFC Spec', |
| 31 | + link: '/spec.html' |
| 32 | + }, |
| 33 | + { |
| 34 | + text: 'Options Reference', |
| 35 | + link: '/options.html' |
| 36 | + }, |
| 37 | + { |
| 38 | + text: 'Migrating from v14', |
| 39 | + link: '/migrating.md' |
| 40 | + } |
| 41 | + ], |
| 42 | + sidebar: [ |
| 43 | + '/', |
| 44 | + '/guide/', |
| 45 | + '/guide/asset-url', |
| 46 | + '/guide/pre-processors', |
| 47 | + '/guide/scoped-css', |
| 48 | + '/guide/css-modules', |
| 49 | + '/guide/hot-reload', |
| 50 | + '/guide/functional', |
| 51 | + '/guide/custom-blocks', |
| 52 | + '/guide/extract-css', |
| 53 | + '/guide/linting', |
| 54 | + '/guide/testing' |
| 55 | + ] |
13 | 56 | }, |
14 | | - { |
15 | | - text: 'SFC Spec', |
16 | | - link: '/spec.html' |
17 | | - }, |
18 | | - { |
19 | | - text: 'Options Reference', |
20 | | - link: '/options.html' |
21 | | - }, |
22 | | - { |
23 | | - text: 'Migrating from v14', |
24 | | - link: '/migrating.md' |
| 57 | + '/zh/': { |
| 58 | + label: '简体中文', |
| 59 | + selectText: '选择语言', |
| 60 | + editLinkText: '在 GitHub 上编辑此页', |
| 61 | + nav: [ |
| 62 | + { |
| 63 | + text: '指南', |
| 64 | + link: '/zh/guide/' |
| 65 | + }, |
| 66 | + { |
| 67 | + text: '单文件组件规范', |
| 68 | + link: '/zh/spec.html' |
| 69 | + }, |
| 70 | + { |
| 71 | + text: '选项参考', |
| 72 | + link: '/zh/options.html' |
| 73 | + }, |
| 74 | + { |
| 75 | + text: '如何从 v14 迁移', |
| 76 | + link: '/zh/migrating.md' |
| 77 | + } |
| 78 | + ], |
| 79 | + sidebar: [ |
| 80 | + '/zh/', |
| 81 | + '/zh/guide/', |
| 82 | + '/zh/guide/asset-url', |
| 83 | + '/zh/guide/pre-processors', |
| 84 | + '/zh/guide/scoped-css', |
| 85 | + '/zh/guide/css-modules', |
| 86 | + '/zh/guide/hot-reload', |
| 87 | + '/zh/guide/functional', |
| 88 | + '/zh/guide/custom-blocks', |
| 89 | + '/zh/guide/extract-css', |
| 90 | + '/zh/guide/linting', |
| 91 | + '/zh/guide/testing' |
| 92 | + ] |
25 | 93 | } |
26 | | - ], |
27 | | - sidebar: [ |
28 | | - '/', |
29 | | - '/guide/', |
30 | | - '/guide/asset-url', |
31 | | - '/guide/pre-processors', |
32 | | - '/guide/scoped-css', |
33 | | - '/guide/css-modules', |
34 | | - '/guide/hot-reload', |
35 | | - '/guide/functional', |
36 | | - '/guide/custom-blocks', |
37 | | - '/guide/extract-css', |
38 | | - '/guide/linting', |
39 | | - '/guide/testing' |
40 | | - ] |
| 94 | + } |
41 | 95 | } |
42 | 96 | } |
0 commit comments