diff --git a/src/components/StatusView.vue b/src/components/StatusView.vue index f507ffa..965686c 100644 --- a/src/components/StatusView.vue +++ b/src/components/StatusView.vue @@ -1,6 +1,6 @@ @@ -73,7 +125,7 @@ defineExpose({ refresh })
-

{{ section.title }}

+

{{ translateSectionTitle(section.title) }}

{{ item.key }} diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 152a10a..c57485d 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -129,6 +129,17 @@ export default { connecting: 'Connecting...', error: 'Error: {error}', noConnection: 'No connection', + sectionServer: 'Server', + sectionClients: 'Clients', + sectionMemory: 'Memory', + sectionPersistence: 'Persistence', + sectionStats: 'Stats', + sectionReplication: 'Replication', + sectionCpu: 'CPU', + sectionModules: 'Modules', + sectionErrorstats: 'Errorstats', + sectionCluster: 'Cluster', + sectionKeyspace: 'Keyspace', }, db: { label: 'DB', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 78f369e..10f3d51 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -129,6 +129,17 @@ export default { connecting: '连接中...', error: '错误: {error}', noConnection: '无连接', + sectionServer: '服务器', + sectionClients: '客户端', + sectionMemory: '内存', + sectionPersistence: '持久化', + sectionStats: '统计', + sectionReplication: '复制', + sectionCpu: 'CPU', + sectionModules: '模块', + sectionErrorstats: '错误统计', + sectionCluster: '集群', + sectionKeyspace: '键空间', }, db: { label: '数据库',