From c46d556684eab6c32028b4fe9442f4558892dab2 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 27 Apr 2025 17:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E6=94=AF=E6=8C=81=EF=BC=9A=E5=9C=A8=E5=A4=9A=E4=B8=AA=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E5=BC=95=E5=85=A5=20vue-i18n=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=9C=AC=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/Footer.vue | 4 +- .../components/NavbarThemeSwitcher.vue | 13 ++- src/layouts/components/SearchBar.vue | 4 +- src/layouts/components/ShortcutBar.vue | 99 ++++++++++--------- src/layouts/components/UserNotification.vue | 9 +- src/layouts/components/UserProfile.vue | 12 +-- src/layouts/components/WorkflowSidebar.vue | 14 ++- src/locales/en-US.ts | 54 ++++++++++ src/locales/zh-CN.ts | 54 ++++++++++ 9 files changed, 198 insertions(+), 65 deletions(-) diff --git a/src/layouts/components/Footer.vue b/src/layouts/components/Footer.vue index 7276576d..8d84950d 100644 --- a/src/layouts/components/Footer.vue +++ b/src/layouts/components/Footer.vue @@ -2,9 +2,11 @@ import { getNavMenus } from '@/router/i18n-menu' import { useDisplay } from 'vuetify' import { NavMenu } from '@/@layouts/types' +import { useI18n } from 'vue-i18n' const display = useDisplay() const appMode = inject('pwaMode') && display.mdAndDown.value +const { t } = useI18n() const route = useRoute() @@ -130,7 +132,7 @@ const showDynamicButton = computed(() => { >
- 更多 + {{ t('nav.more') }}
diff --git a/src/layouts/components/NavbarThemeSwitcher.vue b/src/layouts/components/NavbarThemeSwitcher.vue index 35ffd371..282fe315 100644 --- a/src/layouts/components/NavbarThemeSwitcher.vue +++ b/src/layouts/components/NavbarThemeSwitcher.vue @@ -1,30 +1,33 @@