From 168a6b440f1cb3a2fe8664fb75b55eff6e11d5fa Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sun, 9 Jun 2024 22:37:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(sj=5F1.0.0):=20=E9=A6=96=E9=A1=B5=E9=87=8D?= =?UTF-8?q?=E8=AF=95tab=E7=9A=84=E5=A4=B1=E8=B4=A5=E6=80=BB=E9=87=8F?= =?UTF-8?q?=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 64 ++++++++++++++--------------- src/locales/langs/zh-cn.ts | 4 +- src/typings/app.d.ts | 1 + src/views/home/modules/task-tab.vue | 6 ++- 4 files changed, 40 insertions(+), 35 deletions(-) diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 26ba58f..cb0a70b 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -58,7 +58,6 @@ const local: App.I18n.Schema = { update: 'Update', updateSuccess: 'Update Success', updateFailed: 'Update Failed', - userCenter: 'User Center', downloadFail: 'File download failed', success: 'Success', fail: 'Fail', @@ -90,13 +89,13 @@ const local: App.I18n.Schema = { disable: 'Disable' }, systemTaskType: { - retry: 'Retry task', - callback: 'Callback task', - job: 'Job task', + retry: 'Retry Task', + callback: 'Callback Task', + job: 'Job Task', workflow: 'Workflow' }, routeKey: { - routeLabel: 'Route key', + routeLabel: 'Route Key', routeForm: 'Please enter route key', items: { consistentHash: 'Consistent hash', @@ -106,7 +105,7 @@ const local: App.I18n.Schema = { } }, blockStrategy: { - label: 'Block strategy', + label: 'Block Strategy', form: 'Please enter block strategy', items: { discard: 'Discard', @@ -115,14 +114,14 @@ const local: App.I18n.Schema = { } }, executorType: { - label: 'Executor type', + label: 'Executor Type', form: 'Please enter executor type', items: { java: 'Java' } }, taskType: { - label: 'Task type', + label: 'Task Type', form: 'Please enter task type', items: { cluster: 'Cluster', @@ -140,7 +139,7 @@ const local: App.I18n.Schema = { } }, taskBatchStatus: { - label: 'Task batch status', + label: 'Task Batch Status', form: 'Please enter task batch status', items: { waiting: 'Waiting', @@ -152,7 +151,7 @@ const local: App.I18n.Schema = { } }, taskStatus: { - label: 'Task status', + label: 'Task Status', form: 'Please enter task status', items: { running: 'Running', @@ -163,7 +162,7 @@ const local: App.I18n.Schema = { } }, jobOperationReason: { - label: 'Job operation reason', + label: 'Job Operation Reason', form: 'Please enter job operation reason', items: { none: 'None', @@ -183,8 +182,8 @@ const local: App.I18n.Schema = { workflowDecisionFailed: 'Workflow decision failed' } }, - updateDt: 'updated time', - createDt: 'created time' + updateDt: 'Updated Time', + createDt: 'Created Time' }, request: { logout: 'Logout user after request failed', @@ -296,13 +295,13 @@ const local: App.I18n.Schema = { document_antd: 'Ant Design Vue Document', about: 'About', pods: 'Online Machine', - namespace: 'namespace', - notify: 'notify', - notify_recipient: 'Notify recipient', - notify_scene: 'Notify scene', - retry: 'Retry task', - retry_task: 'Retry task', - retry_scene: 'Retry scene', + namespace: 'Namespace', + notify: 'Notify', + notify_recipient: 'Notify Recipient', + notify_scene: 'Notify Scene', + retry: 'Retry Task', + retry_task: 'Retry Task', + retry_scene: 'Retry Scene', retry_log: 'Retry Log', 'retry_dead-letter': 'Retry Dead Letter', user: 'User', @@ -332,7 +331,7 @@ const local: App.I18n.Schema = { }, login: { common: { - loginOrRegister: 'Login / Register', + loginOrRegister: 'Login/Register', userNamePlaceholder: 'Please enter user name', phonePlaceholder: 'Please enter phone number', codePlaceholder: 'Please enter verification code', @@ -348,8 +347,8 @@ const local: App.I18n.Schema = { }, pwdLogin: { title: 'Password Login', - rememberMe: 'Remember me', - forgetPassword: 'Forget password?', + rememberMe: 'Remember Me', + forgetPassword: 'Forget Password?', register: 'Register', otherAccountLogin: 'Other Account Login', otherLoginMode: 'Other Login Mode', @@ -409,7 +408,8 @@ const local: App.I18n.Schema = { year: 'Year Round' }, rank: { - title: 'Failure ranking' + title: 'Failure Ranking', + titleRetry: 'Total Amount Ranking' }, task: { title: 'List of scenes', @@ -483,11 +483,11 @@ const local: App.I18n.Schema = { retryConfig: 'RetryConfig', form: { groupName: 'Please enter group name', - token: 'Please enter Token', + token: 'Please enter token', groupStatus: 'Please select group status', description: 'Please enter description', idGeneratorMode: 'Please select ID generator mode', - groupPartition: 'Please select Group partition', + groupPartition: 'Please select group partition', initScene: 'Initialized scene', collapseCommon: 'Common config', collapseRetry: 'Retry config', @@ -834,12 +834,12 @@ const local: App.I18n.Schema = { oldPassword: 'Old Password', newPassword: 'New Password', form: { - role: 'Please enter Role', - password: 'Please enter Password', - username: 'Please enter Username', - checkPassword: 'Please enter Confirm Password', - permissions: 'Please select Group', - namespaceIds: 'Please select Namespaces', + role: 'Please enter role', + password: 'Please enter password', + username: 'Please enter username', + checkPassword: 'Please enter confirm password', + permissions: 'Please select group', + namespaceIds: 'Please select namespaces', oldPassword: 'Please enter old password', newPassword: 'Please enter new password' }, diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index 72f94ed..4a408d7 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -293,7 +293,6 @@ const local: App.I18n.Schema = { document_unocss: 'UnoCSS文档', document_naive: 'Naive UI文档', document_antd: 'Ant Design Vue文档', - 'user-center': '个人中心', about: '关于', pods: '在线机器', namespace: '命名空间', @@ -420,7 +419,8 @@ const local: App.I18n.Schema = { year: '全年' }, rank: { - title: '失败总量排名' + title: '失败总量排名', + titleRetry: '任务量排名' }, task: { title: '场景列表', diff --git a/src/typings/app.d.ts b/src/typings/app.d.ts index 93f864f..6d61178 100644 --- a/src/typings/app.d.ts +++ b/src/typings/app.d.ts @@ -580,6 +580,7 @@ declare namespace App { }; rank: { title: string; + titleRetry: string; }; task: { title: string; diff --git a/src/views/home/modules/task-tab.vue b/src/views/home/modules/task-tab.vue index 90c6901..6d9b37f 100644 --- a/src/views/home/modules/task-tab.vue +++ b/src/views/home/modules/task-tab.vue @@ -164,7 +164,11 @@ getGroupNames();
-

{{ $t('page.home.retryTab.rank.title') }}

+

+ {{ + taskType === 'RETRY' ? $t('page.home.retryTab.rank.titleRetry') : $t('page.home.retryTab.rank.title') + }} +