From 9e7df78f3c77202c542d4cc3a80e28ad8125a409 Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Thu, 27 Jul 2023 15:48:47 +0800 Subject: [PATCH] feat: add internationalization support for the header --- .../header/components/CollapseButton.vue | 4 +- .../header/components/FullScreenButton.vue | 3 +- .../header/components/LocaleSwitcher.vue | 2 +- .../header/components/UserInfoButton.vue | 19 ++++----- .../setting/components/SettingButton.vue | 3 +- .../components/DarkMode/index.vue | 7 ++-- .../components/ThemeBackup/index.vue | 11 +++--- .../components/ThemeColor/index.vue | 3 +- .../components/SettingDrawer/index.vue | 3 +- apps/admin/src/locales/en.json | 39 +++++++++++++++++++ apps/admin/src/locales/zh.json | 39 +++++++++++++++++++ 11 files changed, 110 insertions(+), 23 deletions(-) diff --git a/apps/admin/src/layouts/header/components/CollapseButton.vue b/apps/admin/src/layouts/header/components/CollapseButton.vue index bd95b89..831d494 100644 --- a/apps/admin/src/layouts/header/components/CollapseButton.vue +++ b/apps/admin/src/layouts/header/components/CollapseButton.vue @@ -1,8 +1,10 @@ diff --git a/apps/admin/src/layouts/header/components/FullScreenButton.vue b/apps/admin/src/layouts/header/components/FullScreenButton.vue index c7ac1d2..a5af44e 100644 --- a/apps/admin/src/layouts/header/components/FullScreenButton.vue +++ b/apps/admin/src/layouts/header/components/FullScreenButton.vue @@ -2,10 +2,11 @@ import IconButtonWithToolTip from "~/layouts/header/components/IconButtonWithToolTip.vue"; const { toggle: toggleFullScreen } = useFullscreen(); +const { t } = useI18n();