From 7641a6fb91a09920d9b4302d474f72313804114f Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 30 Mar 2023 20:28:52 +0800 Subject: [PATCH] feat: i18n sync --- src/locales/lang/en/action.ts | 3 ++- src/locales/lang/zh-CN/action.ts | 3 ++- src/views/infra/codegen/index.vue | 2 +- src/views/mp/mpuser/index.vue | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/locales/lang/en/action.ts b/src/locales/lang/en/action.ts index fdff0fc..83227e1 100644 --- a/src/locales/lang/en/action.ts +++ b/src/locales/lang/en/action.ts @@ -7,5 +7,6 @@ export default { delete: 'Delete', detail: 'Detail', export: 'Export', - import: 'Import' + import: 'Import', + sync: 'Sync' } diff --git a/src/locales/lang/zh-CN/action.ts b/src/locales/lang/zh-CN/action.ts index debae9e..3d2dfcf 100644 --- a/src/locales/lang/zh-CN/action.ts +++ b/src/locales/lang/zh-CN/action.ts @@ -7,5 +7,6 @@ export default { delete: '删除', detail: '详情', export: '导出', - import: '导入' + import: '导入', + sync: '同步' } diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index 0887a72..2dcd2db 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -15,7 +15,7 @@ { icon: IconEnum.DOWNLOAD, label: '生成', auth: 'infra:codegen:download', onClick: handleGenTable.bind(null, record) }, { icon: IconEnum.RESET, - label: '同步', + label: t('action.sync'), auth: 'infra:codegen:update', popConfirm: { title: '确认要强制同步' + record.tableName + '表结构吗?', diff --git a/src/views/mp/mpuser/index.vue b/src/views/mp/mpuser/index.vue index b663411..02a8665 100644 --- a/src/views/mp/mpuser/index.vue +++ b/src/views/mp/mpuser/index.vue @@ -3,7 +3,7 @@