Skip to content

Commit 05a4d25

Browse files
committed
fix: review fixes
1 parent 827fffe commit 05a4d25

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ import './TenantCpu.scss';
3030
const b = cn('tenant-cpu');
3131

3232
const cpuTabs = [
33-
{id: TENANT_CPU_TABS_IDS.nodes, title: 'Top Nodes'},
34-
{id: TENANT_CPU_TABS_IDS.shards, title: 'Top Shards'},
35-
{id: TENANT_CPU_TABS_IDS.queries, title: 'Top Queries'},
33+
{id: TENANT_CPU_TABS_IDS.nodes, title: i18n('title_top-nodes')},
34+
{id: TENANT_CPU_TABS_IDS.shards, title: i18n('title_top-shards')},
35+
{id: TENANT_CPU_TABS_IDS.queries, title: i18n('title_top-queries')},
3636
];
3737

3838
const NodesModeIds = {
@@ -65,10 +65,10 @@ export function TenantCpu({tenantName, additionalNodesProps}: TenantCpuProps) {
6565
const nodesModeControl = (
6666
<SegmentedRadioGroup value={nodesMode} onUpdate={setNodesMode}>
6767
<SegmentedRadioGroup.Option value={NodesModeIds.load}>
68-
By Load
68+
{i18n('action_by-load')}
6969
</SegmentedRadioGroup.Option>
7070
<SegmentedRadioGroup.Option value={NodesModeIds.pools}>
71-
By Pool Usage
71+
{i18n('action_by-pool-usage')}
7272
</SegmentedRadioGroup.Option>
7373
</SegmentedRadioGroup>
7474
);

src/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@
4040
"storage.db-storage-title": "Database storage",
4141
"storage.db-storage-description": "Size of data stored in distributed storage with all overheads for redundancy",
4242
"executed-last-hour": "executed in the last hour",
43-
"column-header.process": "Process"
43+
"column-header.process": "Process",
44+
"title_top-nodes": "Top Nodes",
45+
"title_top-shards": "Top Shards",
46+
"title_top-queries": "Top Queries",
47+
"action_by-load": "By Load",
48+
"action_by-pool-usage": "By Pool Usage"
4449
}

0 commit comments

Comments
 (0)