Skip to content

Commit 0412b2b

Browse files
committed
doc: vitepress locales
1 parent 98f5061 commit 0412b2b

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

docs/.vitepress/config.ts

+29-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,35 @@ export default defineConfig({
2424
{ text: '常见问题', link: '/faq' },
2525
{ text: 'API 文档', link: '/api' },
2626
{ text: '相关文档', link: '/link' }
27-
]
27+
],
28+
editLink: {
29+
pattern: 'https://github.com/twikoojs/twikoo/edit/main/docs/:path',
30+
text: '在 GitHub 上编辑此页面'
31+
},
32+
footer: {
33+
message: '基于 MIT 许可发布',
34+
copyright: `版权所有 © 2020 至今 iMaeGoo`
35+
},
36+
docFooter: {
37+
prev: '上一篇',
38+
next: '下一篇'
39+
},
40+
outline: {
41+
label: '本页导航'
42+
},
43+
lastUpdated: {
44+
text: '最后更新于',
45+
formatOptions: {
46+
dateStyle: 'short',
47+
timeStyle: 'medium'
48+
}
49+
},
50+
langMenuLabel: '多语言',
51+
returnToTopLabel: '回到顶部',
52+
sidebarMenuLabel: '菜单',
53+
darkModeSwitchLabel: '主题',
54+
lightModeSwitchTitle: '切换到浅色模式',
55+
darkModeSwitchTitle: '切换到深色模式'
2856
}
2957
},
3058
en: {

0 commit comments

Comments
 (0)