diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 05c3c949..e7c59619 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -58,7 +58,7 @@ export default { } }, - // 导入 + // 组件 components: { UploadModal:{ uploadTitle:'Data Import', @@ -88,6 +88,23 @@ export default { codeSmsSend: 'Successfully sent, please pay attention to checking the SMS', }, + // 布局 + loayouts: { + rightContent: { + fullscreen: "Full Screen", + logout: "Logout", + profile: "Profile", + settings: "Settings", + }, + tabs: { + reload: "Refresh current", + more: "More Options", + closeCurrent: "Close Current", + closeOther: "Close Other", + closeAll: "Close All", + } + }, + // 页面 views: { index: { diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 3df3b9c1..baf8a8d8 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -58,7 +58,7 @@ export default { } }, - // 导入 + // 组件 components: { UploadModal:{ uploadTitle:'数据导入', @@ -88,6 +88,23 @@ export default { codeSmsSend: '发送成功,请注意查看短信', }, + // 布局 + loayouts: { + rightContent: { + fullscreen: "全屏显示", + logout: "退出登录", + profile: "个人中心", + settings: "个人设置", + }, + tabs: { + reload: "刷新当前", + more: "更多选项", + closeCurrent: "关闭当前", + closeOther: "关闭其他", + closeAll: "关闭全部", + } + }, + // 页面 views: { index: { diff --git a/src/layouts/components/RightContent.vue b/src/layouts/components/RightContent.vue index 78972327..924416c5 100644 --- a/src/layouts/components/RightContent.vue +++ b/src/layouts/components/RightContent.vue @@ -50,7 +50,7 @@ function fnChangeLocale(e: any) { - + diff --git a/src/layouts/components/Tabs.vue b/src/layouts/components/Tabs.vue index df9df2d5..371cac10 100644 --- a/src/layouts/components/Tabs.vue +++ b/src/layouts/components/Tabs.vue @@ -3,6 +3,8 @@ import IconFont from '@/components/IconFont/index.vue'; import { computed, watch } from 'vue'; import { useRouter } from 'vue-router'; import useTabsStore from '@/store/modules/tabs'; +import useI18n from '@/hooks/useI18n'; +const { t } = useI18n(); const tabsStore = useTabsStore(); const router = useRouter(); @@ -126,7 +128,7 @@ watch(router.currentRoute, v => tabsStore.tabOpen(v), { immediate: true });