From c4af244fa180b58a9b3068b94ebf7d9d92c42dbf Mon Sep 17 00:00:00 2001 From: zijiren <84728412+zijiren233@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:08:10 +0800 Subject: [PATCH] fix: db resource quota i18n (#4865) * fix: db resource quota i18n * fix: db resource quota i18n --- frontend/providers/dbprovider/public/locales/en/common.json | 3 +++ frontend/providers/dbprovider/public/locales/zh/common.json | 3 +++ .../providers/dbprovider/src/components/QuotaBox/index.tsx | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/providers/dbprovider/public/locales/en/common.json b/frontend/providers/dbprovider/public/locales/en/common.json index 96ecea95acc..08bb660f198 100644 --- a/frontend/providers/dbprovider/public/locales/en/common.json +++ b/frontend/providers/dbprovider/public/locales/en/common.json @@ -70,6 +70,7 @@ "Copy Failed": "Copy Failed", "Copy Success": "Copy succeeded", "Covering Risks": "Coverage Risks", + "cpu": "CPU", "CPU": "CPU", "Create DB": "Create New Database", "Creating": "Creating", @@ -152,6 +153,7 @@ "Manual Backup Tip": "Tip: Backup during off-peak hours. Avoid DDL operations to prevent locking. Be patient if data size is large. Backup starts 1 min after confirmation.", "Max Replicas": "Max Replicas: ", "Max Storage": "Max Storage: ", + "memory": "Memory", "Memory": "Memory", "migrate": { "Incremental migration prompt information": "Enable \\\"Continuous Migration\\\" for incremental DB sync (disabled by default).", @@ -243,6 +245,7 @@ "Start Up": "Launch", "Starting": "Starting", "Status": "Status", + "storage": "Storage", "Storage": "Storage", "Storage Cannot Empty": "Please specify storage size", "Storage Range": "Storage capacity:", diff --git a/frontend/providers/dbprovider/public/locales/zh/common.json b/frontend/providers/dbprovider/public/locales/zh/common.json index daafa6c470a..f76b6216521 100644 --- a/frontend/providers/dbprovider/public/locales/zh/common.json +++ b/frontend/providers/dbprovider/public/locales/zh/common.json @@ -70,6 +70,7 @@ "Copy Failed": "复制失败", "Copy Success": "复制成功", "Covering Risks": "覆盖风险", + "cpu": "CPU", "CPU": "CPU", "Create DB": "新建数据库", "Creating": "创建中", @@ -152,6 +153,7 @@ "Manual Backup Tip": "建议在业务低峰期备份实例。备份期间,请勿执行DDL操作,避免锁表导致备份失败。若数据量较大,花费的时问可能较长,请耐心等待。点击 [开始备份] 后,将在1分钟后开始备份。", "Max Replicas": "实例数最大为: ", "Max Storage": "磁盘容量最大为: ", + "memory": "内存", "Memory": "内存", "migrate": { "Incremental migration prompt information": "如果需要数据库增量同步,可以开启\"持续迁移\",默认是关闭。", @@ -244,6 +246,7 @@ "Start Up": "启动", "Starting": "启动中", "Status": "状态", + "storage": "磁盘", "Storage": "磁盘", "Storage Cannot Empty": "容量不能为空", "Storage Range": "容量范围: ", diff --git a/frontend/providers/dbprovider/src/components/QuotaBox/index.tsx b/frontend/providers/dbprovider/src/components/QuotaBox/index.tsx index d8dd46522ef..9be7a20b941 100644 --- a/frontend/providers/dbprovider/src/components/QuotaBox/index.tsx +++ b/frontend/providers/dbprovider/src/components/QuotaBox/index.tsx @@ -63,7 +63,7 @@ ${t('common.Surplus')}: ${(limit - used).toFixed(2)} ${unit}`; - {t(item.type === 'cpu' ? 'CPU' : item.type)} + {t(item.type)}