From 0f9683de89db6f30162d1f7019f535cd32cfb3c3 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sun, 1 Sep 2024 22:30:46 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20[docs]:=20=E6=96=B0=E5=A2=9E=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config/en.ts | 7 ++++++ docs/.vitepress/config/zh.ts | 7 ++++++ docs/components/StatsBar.vue | 41 ++++++++++++++++++++++----------- docs/components/scripts/i18n.ts | 2 ++ docs/en/index.md | 1 - docs/zh/index.md | 1 - 6 files changed, 43 insertions(+), 16 deletions(-) diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index ecfab4a1..94fae5b9 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -24,5 +24,12 @@ export const en = defineConfig({ copyright: ThemeConfig.copyright }, outline: ThemeConfig.getOutLine("Page Content"), + + langMenuLabel: 'Language', + returnToTopLabel: 'Back to top', + sidebarMenuLabel: 'Menu', + darkModeSwitchLabel: 'Theme', + lightModeSwitchTitle: 'Light Mode', + darkModeSwitchTitle: 'Dark Mode', }, }) \ No newline at end of file diff --git a/docs/.vitepress/config/zh.ts b/docs/.vitepress/config/zh.ts index 57143ad3..224f0b03 100644 --- a/docs/.vitepress/config/zh.ts +++ b/docs/.vitepress/config/zh.ts @@ -24,5 +24,12 @@ export const zh = defineConfig({ copyright: ThemeConfig.copyright }, outline: ThemeConfig.getOutLine("页面内容"), + + langMenuLabel: '语言', + returnToTopLabel: '返回顶部', + sidebarMenuLabel: '菜单', + darkModeSwitchLabel: '主题', + lightModeSwitchTitle: '轻色模式', + darkModeSwitchTitle: '深色模式', }, }) \ No newline at end of file diff --git a/docs/components/StatsBar.vue b/docs/components/StatsBar.vue index ab80ac74..0dc9ad12 100644 --- a/docs/components/StatsBar.vue +++ b/docs/components/StatsBar.vue @@ -1,10 +1,9 @@