From dbe62082ff2f40c735a966e70b010b9a424be5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:49:37 +0800 Subject: [PATCH] style: Adjusted some English layouts (#7305) --- .../src/components/system-upgrade/index.vue | 2 +- frontend/src/lang/modules/en.ts | 9 + frontend/src/lang/modules/tw.ts | 9 + frontend/src/lang/modules/zh.ts | 9 + frontend/src/views/cronjob/index.vue | 17 +- frontend/src/views/cronjob/operate/index.vue | 165 +++++++++--------- frontend/src/views/toolbox/clam/index.vue | 4 +- .../src/views/toolbox/clam/operate/index.vue | 157 ++++++++--------- 8 files changed, 194 insertions(+), 178 deletions(-) diff --git a/frontend/src/components/system-upgrade/index.vue b/frontend/src/components/system-upgrade/index.vue index 8e5cd76d8..719de29e7 100644 --- a/frontend/src/components/system-upgrade/index.vue +++ b/frontend/src/components/system-upgrade/index.vue @@ -17,7 +17,7 @@
- {{ isProductPro && globalStore.isIntl ? $t('license.pro') : $t('license.community') }} + {{ $t(globalStore.isIntl || !isProductPro ? 'license.community' : 'license.pro') }} {{ version }} diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index ff5550974..1ad2a2e2b 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -295,6 +295,14 @@ const message = { time: 'time(s)', core: 'core(s)', millisecond: 'millisecond(s)', + secondUnit: 's', + minuteUnit: 'min', + hourUnit: 'h', + dayUnit: 'd', + weekUnit: 'w', + monthUnit: 'm', + yearUnit: 'y', + millisecondUnit: 'ms', }, operate: { down: 'Stop', @@ -921,6 +929,7 @@ const message = { per: 'Every ', handle: '', day: 'day(s)', + dayUnit: 'd', monday: 'Monday', tuesday: 'Tuesday', wednesday: 'Wednesday', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 75663245d..dcdfd80be 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -289,6 +289,14 @@ const message = { time: '次', core: '核', millisecond: '毫秒', + secondUnit: '秒', + minuteUnit: '分鐘', + hourUnit: '小時', + dayUnit: '天', + weekUnit: '周', + monthUnit: '月', + yearUnit: '年', + millisecondUnit: '毫秒', }, operate: { down: '停止', @@ -876,6 +884,7 @@ const message = { per: '每', handle: '執行', day: '日', + dayUnit: '日', monday: '周一', tuesday: '周二', wednesday: '周三', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index dc486ee8d..1ee435c22 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -289,6 +289,14 @@ const message = { time: '次', core: '核', millisecond: '毫秒', + secondUnit: '秒', + minuteUnit: '分钟', + hourUnit: '小时', + dayUnit: '天', + weekUnit: '周', + monthUnit: '月', + yearUnit: '年', + millisecondUnit: '毫秒', }, operate: { down: '停止', @@ -877,6 +885,7 @@ const message = { per: '每', handle: '执行', day: '日', + dayUnit: '日', monday: '周一', tuesday: '周二', wednesday: '周三', diff --git a/frontend/src/views/cronjob/index.vue b/frontend/src/views/cronjob/index.vue index ada16a5b8..cecee672b 100644 --- a/frontend/src/views/cronjob/index.vue +++ b/frontend/src/views/cronjob/index.vue @@ -55,7 +55,7 @@ - + - + - +