From 0126da47782b90c98feeb9fef2e57e47ac5df9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=87=95=E5=8D=9A=E6=96=87?= <349952469@qq.com> Date: Wed, 6 Mar 2024 11:43:27 +0800 Subject: [PATCH] feat(projects): globalSearch add i18n --- .../modules/global-search/components/search-footer.vue | 8 +++++--- .../modules/global-search/components/search-modal.vue | 6 +++--- src/layouts/modules/global-search/index.vue | 3 ++- src/locales/langs/en-us.ts | 4 ++++ src/locales/langs/zh-cn.ts | 4 ++++ src/typings/app.d.ts | 4 ++++ 6 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/layouts/modules/global-search/components/search-footer.vue b/src/layouts/modules/global-search/components/search-footer.vue index 056c7bd28..ec5d810a3 100644 --- a/src/layouts/modules/global-search/components/search-footer.vue +++ b/src/layouts/modules/global-search/components/search-footer.vue @@ -1,4 +1,6 @@ @@ -6,16 +8,16 @@ defineOptions({ name: 'SearchFooter' });
- 确认 + {{ $t('common.confirm') }} - 切换 + {{ $t('common.switch') }} - 关闭 + {{ $t('common.close') }}
diff --git a/src/layouts/modules/global-search/components/search-modal.vue b/src/layouts/modules/global-search/components/search-modal.vue index c3cc546f2..7259f9350 100644 --- a/src/layouts/modules/global-search/components/search-modal.vue +++ b/src/layouts/modules/global-search/components/search-modal.vue @@ -94,16 +94,16 @@ onKeyStroke('ArrowDown', handleDown); @after-leave="handleClose" > - + - 取消 + {{ $t('common.cancel') }}
- +