From c95d61397d1ede8d03db5d15f9b6c7dbd703c33f Mon Sep 17 00:00:00 2001 From: John Niang Date: Thu, 12 Dec 2024 18:46:01 +0800 Subject: [PATCH] Refine English translation again and again (#7353) --- frontend/src/components/app-status/index.vue | 10 +- .../src/components/table-setting/index.vue | 2 +- frontend/src/lang/modules/en.ts | 144 +++++++++--------- frontend/src/lang/modules/tw.ts | 4 +- frontend/src/lang/modules/zh.ts | 4 +- frontend/src/routers/modules/host.ts | 2 +- frontend/src/views/database/mysql/index.vue | 2 +- .../src/views/database/postgresql/index.vue | 2 +- .../database/postgresql/remote/index.vue | 2 +- frontend/src/views/database/redis/index.vue | 2 +- .../src/views/database/redis/remote/index.vue | 2 +- frontend/src/views/home/index.vue | 14 +- frontend/src/views/home/status/index.vue | 3 +- .../src/views/host/terminal/command/index.vue | 2 +- frontend/src/views/toolbox/clam/index.vue | 4 +- .../src/views/toolbox/clam/record/index.vue | 2 +- .../src/views/toolbox/clam/status/index.vue | 2 +- frontend/src/views/toolbox/ftp/index.vue | 6 +- .../src/views/toolbox/supervisor/index.vue | 8 +- .../views/toolbox/supervisor/status/index.vue | 2 +- .../website/config/basic/proxy/file/index.vue | 2 +- .../website/config/basic/proxy/index.vue | 2 +- .../config/basic/redirect/file/index.vue | 2 +- .../website/config/basic/redirect/index.vue | 2 +- 24 files changed, 121 insertions(+), 106 deletions(-) diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue index 4371ca39b..31ad2a7ff 100644 --- a/frontend/src/components/app-status/index.vue +++ b/frontend/src/components/app-status/index.vue @@ -6,7 +6,7 @@
{{ data.app }} - {{ $t('app.version') }}:{{ data.version }} + {{ $t('app.version') }}{{ $t('commons.colon') }}{{ data.version }}
@@ -217,13 +217,13 @@ const onOperate = async (operation: string) => { const getTitle = (key: string) => { switch (key) { case 'openresty': - return i18n.global.t('website.website'); + return i18n.global.t('website.website', 2); case 'mysql': - return 'MySQL ' + i18n.global.t('menu.database'); + return 'MySQL ' + i18n.global.t('menu.database').toLowerCase(); case 'postgresql': - return 'PostgreSQL ' + i18n.global.t('menu.database'); + return 'PostgreSQL ' + i18n.global.t('menu.database').toLowerCase(); case 'redis': - return 'Redis ' + i18n.global.t('menu.database'); + return 'Redis ' + i18n.global.t('menu.database').toLowerCase(); } }; diff --git a/frontend/src/components/table-setting/index.vue b/frontend/src/components/table-setting/index.vue index 8b16ad611..ff6f53c20 100644 --- a/frontend/src/components/table-setting/index.vue +++ b/frontend/src/components/table-setting/index.vue @@ -1,6 +1,6 @@