From b6da26891b409a2fdf9c64a3bb90b728cd83edb4 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 30 Oct 2024 14:44:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/layout/index.vue | 6 +- core/core-frontend/src/locales/en.ts | 57 +++++++++ core/core-frontend/src/locales/tw.ts | 56 +++++++++ core/core-frontend/src/locales/zh-CN.ts | 56 +++++++++ .../template/component/DeCategoryChange.vue | 19 ++- .../template/component/DeTemplateImport.vue | 43 ++++--- .../template/component/DeTemplateItem.vue | 7 +- .../template/component/DeTemplateList.vue | 8 +- .../src/views/template/index.vue | 117 +++++++++++------- de-xpack | 2 +- 10 files changed, 291 insertions(+), 80 deletions(-) diff --git a/core/core-frontend/src/layout/index.vue b/core/core-frontend/src/layout/index.vue index 7b97369391..80bed9b17f 100644 --- a/core/core-frontend/src/layout/index.vue +++ b/core/core-frontend/src/layout/index.vue @@ -9,6 +9,7 @@ import CollapseBar from './components/CollapseBar.vue' import { ElContainer } from 'element-plus-secondary' import { useRoute } from 'vue-router' import { XpackComponent } from '@/components/plugin' +import { useI18n } from '@/hooks/web/useI18n' const route = useRoute() const systemMenu = computed(() => route.path.includes('system')) const settingMenu = computed(() => route.path.includes('sys-setting')) @@ -18,20 +19,21 @@ const isCollapse = ref(false) const setCollapse = () => { isCollapse.value = !isCollapse.value } +const { t } = useI18n()