Skip to content

Commit

Permalink
fix: db resource quota i18n (#4865)
Browse files Browse the repository at this point in the history
* fix: db resource quota i18n

* fix: db resource quota i18n
  • Loading branch information
zijiren233 authored Jul 9, 2024
1 parent 02a7510 commit c4af244
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/providers/dbprovider/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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).",
Expand Down Expand Up @@ -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:",
Expand Down
3 changes: 3 additions & 0 deletions frontend/providers/dbprovider/public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"Copy Failed": "复制失败",
"Copy Success": "复制成功",
"Covering Risks": "覆盖风险",
"cpu": "CPU",
"CPU": "CPU",
"Create DB": "新建数据库",
"Creating": "创建中",
Expand Down Expand Up @@ -152,6 +153,7 @@
"Manual Backup Tip": "建议在业务低峰期备份实例。备份期间,请勿执行DDL操作,避免锁表导致备份失败。若数据量较大,花费的时问可能较长,请耐心等待。点击 [开始备份] 后,将在1分钟后开始备份。",
"Max Replicas": "实例数最大为: ",
"Max Storage": "磁盘容量最大为: ",
"memory": "内存",
"Memory": "内存",
"migrate": {
"Incremental migration prompt information": "如果需要数据库增量同步,可以开启\"持续迁移\",默认是关闭。",
Expand Down Expand Up @@ -244,6 +246,7 @@
"Start Up": "启动",
"Starting": "启动中",
"Status": "状态",
"storage": "磁盘",
"Storage": "磁盘",
"Storage Cannot Empty": "容量不能为空",
"Storage Range": "容量范围: ",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ${t('common.Surplus')}: ${(limit - used).toFixed(2)} ${unit}`;
<MyTooltip key={item.type} label={item.tip} placement={'top-end'} lineHeight={1.7}>
<Flex alignItems={'center'}>
<Box flex={'0 0 60px'} textTransform={'capitalize'}>
{t(item.type === 'cpu' ? 'CPU' : item.type)}
{t(item.type)}
</Box>
<Progress
flex={'1 0 0'}
Expand Down

0 comments on commit c4af244

Please sign in to comment.