|
1 | | -/** @type {UserConfig['head']} */ |
2 | | -const head = [ |
3 | | - ['meta', { name: 'twitter:card', content: 'summary_large_image' }], |
4 | | - ['meta', { name: 'twitter:site', content: '@intlify' }], |
5 | | - ['meta', { name: 'twitter:url', content: 'https://intlify.dev' }], |
6 | | - ['meta', { name: 'twitter:title', content: 'Intlify' }], |
7 | | - [ |
8 | | - 'meta', |
9 | | - { |
10 | | - name: 'twitter:description', |
11 | | - content: 'The Borderless Internationalization' |
12 | | - } |
13 | | - ], |
14 | | - [ |
15 | | - 'meta', |
16 | | - { name: 'twitter:image', content: 'https://intlify.dev/ogimage.png' } |
17 | | - ], |
18 | | - ['meta', { property: 'og:type', content: 'article' }], |
19 | | - ['meta', { property: 'og:url', content: 'https://intlify.dev' }], |
20 | | - ['meta', { property: 'og:site_name', content: 'Intlify' }], |
21 | | - ['meta', { property: 'og:title', content: 'Intlify' }], |
22 | | - [ |
23 | | - 'meta', |
24 | | - { |
25 | | - property: 'og:description', |
26 | | - content: 'The Borderless Internationalization' |
27 | | - } |
28 | | - ], |
29 | | - ['meta', { property: 'og:image', content: 'https://intlify.dev/ogimage.png' }] |
30 | | -] |
| 1 | +const head = require('./head') |
31 | 2 |
|
32 | | -if (process.env.NODE_ENV === 'production') { |
33 | | - head.push([ |
34 | | - 'script', |
35 | | - { |
36 | | - src: 'https://unpkg.com/thesemetrics@latest', |
37 | | - async: '' |
38 | | - } |
39 | | - ]) |
| 3 | +const mainInfo = { |
| 4 | + title: 'Intlify', |
| 5 | + description: 'The Borderless Internationalization' |
40 | 6 | } |
41 | 7 |
|
42 | 8 | /** |
43 | 9 | * @type {UserConfig} |
44 | 10 | */ |
45 | 11 | const config = { |
46 | | - title: 'Intlify', |
47 | | - description: 'The Borderless Internationalization', |
| 12 | + ...mainInfo, |
48 | 13 | head, |
| 14 | + lang: 'en', |
| 15 | + locales: { |
| 16 | + '/': { lang: 'en', ...mainInfo }, |
| 17 | + '/ja/': { lang: 'ja', ...mainInfo } |
| 18 | + }, |
49 | 19 | themeConfig: { |
50 | 20 | docsBranch: 'master', |
51 | 21 | logo: 'nav_logo.png', |
52 | | - nav: [ |
53 | | - { |
54 | | - text: 'Blog', |
55 | | - link: 'https://blog.intlify.dev' |
| 22 | + locales: { |
| 23 | + '/': { |
| 24 | + nav: [ |
| 25 | + { |
| 26 | + text: 'Blog', |
| 27 | + link: 'https://blog.intlify.dev' |
| 28 | + }, |
| 29 | + { |
| 30 | + text: 'GitHub', |
| 31 | + link: 'https://github.com/intlify' |
| 32 | + } |
| 33 | + ] |
56 | 34 | }, |
57 | | - { |
58 | | - text: 'GitHub', |
59 | | - link: 'https://github.com/intlify' |
| 35 | + '/ja/': { |
| 36 | + nav: [ |
| 37 | + { |
| 38 | + text: 'ブログ', |
| 39 | + link: 'https://blog.intlify.dev' |
| 40 | + }, |
| 41 | + { |
| 42 | + text: 'GitHub', |
| 43 | + link: 'https://github.com/intlify' |
| 44 | + } |
| 45 | + ] |
60 | 46 | } |
61 | | - ] |
| 47 | + } |
62 | 48 | }, |
63 | 49 | customData: { |
64 | 50 | projects: [ |
65 | 51 | { |
66 | 52 | title: 'Vue I18n', |
67 | 53 | link: 'https://github.com/kazupon/vue-i18n', |
68 | | - logo: 'projects/vue-i18n.png' |
| 54 | + logo: '/projects/vue-i18n.png' |
69 | 55 | }, |
70 | 56 | { |
71 | 57 | title: 'ESLint Plugin Vue I18n', |
72 | 58 | link: 'https://github.com/intlify/eslint-plugin-vue-i18n', |
73 | | - logo: 'projects/eslint-plugin-vue-i18n.png' |
| 59 | + logo: '/projects/eslint-plugin-vue-i18n.png' |
74 | 60 | } |
75 | 61 | ], |
76 | 62 | sponsors: { |
77 | 63 | gold: [ |
78 | 64 | { |
79 | 65 | title: 'NuxtJS', |
80 | 66 | link: 'https://nuxtjs.org', |
81 | | - logo: 'sponsors/nuxt.png' |
| 67 | + logo: '/sponsors/nuxt.png' |
82 | 68 | } |
83 | 69 | ], |
84 | 70 | sliver: [ |
85 | 71 | { |
86 | 72 | title: 'BabelEdit', |
87 | 73 | link: |
88 | 74 | 'https://www.codeandweb.com/babeledit?utm_campaign=vue-i18n-2019-01', |
89 | | - logo: 'sponsors/babeledit.png' |
| 75 | + logo: '/sponsors/babeledit.png' |
90 | 76 | } |
91 | 77 | ], |
92 | 78 | bronze: [ |
93 | 79 | { |
94 | 80 | title: 'ZenArchitects', |
95 | 81 | link: 'https://zenarchitects.co.jp', |
96 | | - logo: 'sponsors/zenarchitects.png' |
| 82 | + logo: '/sponsors/zenarchitects.png' |
97 | 83 | }, |
98 | 84 | { |
99 | 85 | title: 'Sendcloud', |
100 | 86 | link: 'https://www.sendcloud.com', |
101 | | - logo: 'sponsors/sendcloud.png' |
| 87 | + logo: '/sponsors/sendcloud.png' |
102 | 88 | }, |
103 | 89 | { |
104 | 90 | title: 'VueMastery', |
105 | 91 | link: 'https://www.vuemastery.com/', |
106 | | - logo: 'sponsors/vuemastery.png' |
| 92 | + logo: '/sponsors/vuemastery.png' |
107 | 93 | } |
108 | 94 | ] |
109 | 95 | } |
|
0 commit comments