cdadfbe5e4
- stream.ts: streamGroups, streamConsumers, streamGroupCreate, streamGroupDestroy, streamAck - IPC: redis:streamGroups, streamConsumers, streamGroupCreate, streamGroupDestroy, streamAck - Preload bridge + types for all new methods - StreamEditor.vue: collapsible consumer groups panel - XINFO GROUPS table with name/consumers/pending/last-delivered-id - Click group to expand XINFO CONSUMERS - Create group dialog (name, start ID, MKSTREAM) - Destroy group with confirm - i18n keys (zh-CN + en) - P1 complete!
242 lines
6.3 KiB
TypeScript
242 lines
6.3 KiB
TypeScript
// src/renderer/src/i18n/locales/zh-CN.ts
|
||
export default {
|
||
common: {
|
||
ok: '确定',
|
||
cancel: '取消',
|
||
save: '保存',
|
||
delete: '删除',
|
||
edit: '编辑',
|
||
add: '添加',
|
||
refresh: '刷新',
|
||
search: '搜索',
|
||
confirm: '确认',
|
||
success: '成功',
|
||
error: '错误',
|
||
loading: '加载中...',
|
||
noData: '暂无数据',
|
||
},
|
||
app: {
|
||
title: 'JRedisDesktop',
|
||
subtitle: '现代 Redis 桌面管理器',
|
||
placeholder: '选择或创建连接开始使用',
|
||
},
|
||
tab: {
|
||
close: '关闭',
|
||
closeOthers: '关闭其他',
|
||
closeRight: '关闭右侧',
|
||
closeLeft: '关闭左侧',
|
||
},
|
||
connection: {
|
||
title: '连接',
|
||
new: '新建连接',
|
||
edit: '编辑连接',
|
||
name: '名称',
|
||
host: '主机',
|
||
port: '端口',
|
||
password: '密码',
|
||
username: '用户名',
|
||
tls: '启用 TLS',
|
||
tlsCaPath: 'CA 证书',
|
||
tlsCertPath: '客户端证书',
|
||
tlsKeyPath: '客户端私钥',
|
||
tlsRejectUnauthorized: '验证服务器证书',
|
||
sentinel: 'Sentinel 哨兵模式',
|
||
sentinelHost: '哨兵主机',
|
||
sentinelPort: '哨兵端口',
|
||
sentinelMasterName: 'Master 名称',
|
||
sentinelNodePassword: '哨兵密码',
|
||
cluster: 'Cluster 集群模式',
|
||
ssh: 'SSH 隧道',
|
||
sshHost: 'SSH 主机',
|
||
sshPort: 'SSH 端口',
|
||
sshUsername: 'SSH 用户名',
|
||
sshPassword: 'SSH 密码',
|
||
sshPrivateKey: '私钥路径',
|
||
sshPassphrase: '私钥密码',
|
||
selectFile: '选择文件',
|
||
connect: '连接',
|
||
disconnect: '断开',
|
||
deleteConfirm: '删除此连接?',
|
||
testSuccess: '连接成功',
|
||
testFailed: '连接失败',
|
||
connected: '已连接',
|
||
disconnected: '未连接',
|
||
search: '搜索连接...',
|
||
noMatch: '无匹配连接',
|
||
noConnections: '暂无连接',
|
||
import: '导入',
|
||
export: '导出',
|
||
testConnection: '测试连接',
|
||
create: '创建',
|
||
save: '保存',
|
||
},
|
||
key: {
|
||
title: '键',
|
||
filter: '过滤键...',
|
||
loadMore: '加载更多...',
|
||
count: '{n} 个键',
|
||
deleteConfirm: '删除键 "{key}"?',
|
||
deleted: '键已删除',
|
||
rename: '重命名',
|
||
renameTitle: '重命名键',
|
||
newName: '新名称',
|
||
renamed: '键已重命名',
|
||
copyName: '复制键名',
|
||
copied: '已复制',
|
||
ttl: 'TTL',
|
||
ttlTitle: '设置 TTL',
|
||
ttlHint: '-1 = 永不过期, 0 = 立即过期',
|
||
ttlUpdated: 'TTL 已更新',
|
||
exists: '键已存在',
|
||
batchDelete: '删除选中',
|
||
batchConfirm: '删除 {n} 个键?',
|
||
batchDeleted: '已删除 {n} 个键',
|
||
selected: '已选 {n} 项',
|
||
selectKey: '选择一个键查看详情',
|
||
unsupported: '类型 "{type}" 查看器尚未实现',
|
||
patternPlaceholder: '键模式 (例如 user:*)',
|
||
switchTree: '切换到树状视图',
|
||
switchList: '切换到列表视图',
|
||
},
|
||
types: {
|
||
string: '字符串',
|
||
hash: '哈希',
|
||
list: '列表',
|
||
set: '集合',
|
||
zset: '有序集合',
|
||
stream: '流',
|
||
},
|
||
editor: {
|
||
save: '保存',
|
||
cancel: '取消',
|
||
edit: '编辑',
|
||
saved: '已保存',
|
||
push: '推入',
|
||
addField: '添加字段',
|
||
addMember: '添加成员',
|
||
addEntry: '添加条目',
|
||
filter: '过滤...',
|
||
refresh: '刷新',
|
||
elements: '{n} 个元素',
|
||
members: '{n} 个成员',
|
||
empty: '空',
|
||
field: '字段',
|
||
value: '值',
|
||
score: '分数',
|
||
member: '成员',
|
||
remove: '移除',
|
||
removed: '已移除',
|
||
added: '已添加',
|
||
trim: '裁剪',
|
||
trimConfirm: '裁剪流?',
|
||
entryId: 'ID (使用 * 自动生成)',
|
||
fields: '字段',
|
||
maxLength: '最大长度',
|
||
consumerGroups: '消费者组',
|
||
group: '组名',
|
||
consumers: '消费者',
|
||
pending: '待处理',
|
||
createGroup: '创建组',
|
||
destroyGroup: '删除组',
|
||
groupName: '组名称',
|
||
startId: '起始 ID',
|
||
mkstream: '自动创建流',
|
||
ack: 'ACK',
|
||
ackConfirm: '确认 ACK 选中的条目?',
|
||
noGroups: '暂无消费者组',
|
||
},
|
||
cli: {
|
||
title: 'CLI',
|
||
welcome: 'Redis CLI - 在下方输入命令',
|
||
placeholder: '输入 Redis 命令...',
|
||
stopSubscribe: '停止订阅',
|
||
stopMonitor: '停止监控',
|
||
subscribed: '已订阅,等待消息...',
|
||
monitoring: '监控中,等待命令...',
|
||
subscribedTo: '已订阅频道: {channels}',
|
||
txStarted: '已开启事务,输入命令入队...',
|
||
txQueued: '已入队',
|
||
txExecuted: '事务已执行',
|
||
txDiscarded: '事务已取消',
|
||
txQueue: '队列 ({n})',
|
||
txPrompt: 'tx>',
|
||
},
|
||
slowlog: {
|
||
title: '慢日志',
|
||
time: '时间',
|
||
duration: '耗时',
|
||
command: '命令',
|
||
},
|
||
memory: {
|
||
title: '内存分析',
|
||
scan: '开始扫描',
|
||
pause: '暂停',
|
||
resume: '继续',
|
||
stop: '停止',
|
||
scanning: '扫描中...',
|
||
paused: '已暂停',
|
||
noData: '暂无数据',
|
||
key: '键名',
|
||
size: '大小',
|
||
type: '类型',
|
||
totalSize: '总大小',
|
||
minSize: '最小大小 (KB)',
|
||
sortAsc: '升序',
|
||
sortDesc: '降序',
|
||
scanned: '已扫描 {n} 个',
|
||
},
|
||
commandLog: {
|
||
title: '命令日志',
|
||
time: '时间',
|
||
command: '命令',
|
||
duration: '耗时',
|
||
connection: '连接',
|
||
onlyWrite: '仅写操作',
|
||
clear: '清空',
|
||
empty: '暂无命令记录',
|
||
},
|
||
updater: {
|
||
checking: '正在检查更新...',
|
||
available: '发现新版本 {version}',
|
||
notAvailable: '已是最新版本',
|
||
downloading: '正在下载... {percent}%',
|
||
downloaded: '更新已下载,重启安装?',
|
||
install: '立即重启',
|
||
later: '稍后',
|
||
error: '更新失败: {message}',
|
||
},
|
||
status: {
|
||
title: '状态',
|
||
database: '数据库',
|
||
keys: '键数',
|
||
refresh: '刷新',
|
||
connecting: '连接中...',
|
||
error: '错误: {error}',
|
||
noConnection: '无连接',
|
||
sectionServer: '服务器',
|
||
sectionClients: '客户端',
|
||
sectionMemory: '内存',
|
||
sectionPersistence: '持久化',
|
||
sectionStats: '统计',
|
||
sectionReplication: '复制',
|
||
sectionCpu: 'CPU',
|
||
sectionModules: '模块',
|
||
sectionErrorstats: '错误统计',
|
||
sectionCluster: '集群',
|
||
sectionKeyspace: '键空间',
|
||
},
|
||
db: {
|
||
label: '数据库',
|
||
},
|
||
settings: {
|
||
title: '设置',
|
||
theme: '主题',
|
||
themeDark: '深色',
|
||
themeLight: '浅色',
|
||
themeSystem: '跟随系统',
|
||
language: '语言',
|
||
scanCount: 'SCAN 每次数量',
|
||
fontSize: '字体大小',
|
||
},
|
||
}
|