Skip to content

Commit d894f66

Browse files
committed
docs: add en and zh locales global config
1 parent 713a2e2 commit d894f66

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

docs/.vuepress/config.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,57 @@
11
module.exports = {
22
title: 'Vue-infinite-loading',
3+
locales: {
4+
'/': {
5+
description: 'An infinite scroll plugin for Vue.js',
6+
},
7+
'/zh/': {
8+
description: '一款用于 Vue.js 的无限滚动插件',
9+
},
10+
},
11+
themeConfig: {
12+
sidebar: 'auto',
13+
repo: 'https://github.com/PeachScript/vue-infinite-loading',
14+
locales: {
15+
'/': {
16+
lang: 'en-US',
17+
selectText: 'Languages',
18+
label: 'English',
19+
nav: [],
20+
footer: `
21+
<p>
22+
Released under the
23+
<a target="_blank" href="https://github.com/PeachScript/vue-infinite-loading/blob/master/LICENSE">MIT License</a>
24+
|
25+
Powered by
26+
<a target="_blank" href="https://vuepress.vuejs.org">VuePress</a>
27+
</p>
28+
<p>
29+
&copy;2016-present Made with ♥ by
30+
<a target="_blank" href="https://www.peachis.me">PeachScript</a>
31+
</p>
32+
`,
33+
},
34+
'/zh/': {
35+
lang: 'zh-CN',
36+
selectText: '选择语言',
37+
label: '简体中文',
38+
nav: [],
39+
footer: `
40+
<p>
41+
遵循
42+
<a target="_blank" href="https://github.com/PeachScript/vue-infinite-loading/blob/master/LICENSE">MIT 开源协议</a>
43+
|
44+
45+
<a target="_blank" href="https://vuepress.vuejs.org">VuePress</a>
46+
强力驱动
47+
</p>
48+
<p>
49+
&copy;2016-present Made with ♥ by
50+
<a target="_blank" href="https://www.peachis.me">PeachScript</a>
51+
</p>
52+
`,
53+
},
54+
},
55+
},
356
plugins: [require('@vuepress/theme-default/index')],
457
};

0 commit comments

Comments
 (0)