Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

20.6 KB
Raw Blame
import { consulUiMessages } from "./consulUi";

export const consul = {
  ...consulUiMessages,
  ui: {
    ...consulUiMessages.ui,
    hide: "隐藏",
    script: "脚本",
    atomicTransaction: "单事务原子执行",
    nonAtomicBatches: "跨 {count} 个批次不具备整体原子性",
    batchOperation: "批次 {batch} · OpIndex {op}",
    operationTotals: "成功 {succeeded} · 冲突 {conflicted} · 跳过 {skipped} · 失败 {failed}",
    deleteOperationTotals: "成功 {succeeded} · 冲突 {conflicted} · 失败 {failed}",
    clientSideMigration: "DBX 会从源连接读取后写入目标连接;这不是 Consul 原生跨 Datacenter 复制。",
    copy: "复制",
    copied: "已复制",
    copyFailed: "复制失败",
    sessionProtected: "受 Session 保护",
    sessionProtectedHint: "为避免破坏分布式锁,编辑与删除已禁用。",
    previousPage: "上一页",
    nextPage: "下一页",
    pageStatus: "第 {page} / {pages} 页 · 共 {total} 条",
    searchAllServices: "全局搜索服务",
    searchAllNodes: "全局搜索节点",
    searchLocalServices: "搜索本地 Agent 服务",
    query: "查询",
    searchHealthChecks: "搜索检查名称、ID、节点、服务、输出或备注",
    allCheckTypes: "全部检查类型",
    clearFilters: "清除过滤",
    healthResultCount: "显示 {filtered} / {total} 个检查",
    unknown: "未知",
    peeringPending: "等待中",
    peeringEstablishing: "正在建立",
    peeringActive: "已连接",
    peeringFailing: "连接异常",
    peeringDeleting: "正在删除",
    peeringTerminated: "已终止",
    refresh: "刷新",
    cancel: "取消",
    create: "创建",
    update: "更新",
    save: "保存",
    delete: "删除",
    edit: "编辑",
    apply: "应用",
    close: "关闭",
    bundleFileType: "DBX Consul KV 数据包",
    sourceKeyMissingModifyIndex: "源 Key 没有 ModifyIndex",
    transactionRejected: "Consul 拒绝了该事务",
    overview: "集群概览",
    capabilities: "能力探测",
    probeLoading: "加载中",
    probeReady: "可用",
    probeForbidden: "无权限",
    probeUnsupported: "不支持",
    probeError: "错误",
    autopilotHealth: "Autopilot 健康状态",
    services: "服务",
    nodes: "节点",
    service: "服务",
    node: "节点",
    catalogServices: "Catalog 服务",
    catalogNodes: "Catalog 节点",
    noVisibleServices: "没有可见服务",
    noVisibleNodes: "没有可见节点",
    noMatchingServices: "没有匹配的服务",
    noMatchingNodes: "没有匹配的节点",
    agentTarget: "Agent 目标:{target}",
    agentTargetVerifying: "正在校验 Agent 目标",
    unknownWritesDisabled: "未知,写操作已禁用",
    targetAgent: "目标 Agent",
    agentWriteReady: "可操作",
    agentReadOnly: "只读",
    agentWriteBlocked: {
      connectionUnavailable: "连接配置不可用,请重新连接后再操作。",
      readOnly: "当前连接处于只读状态,无法注销服务。",
      transport: "使用传输层的连接不支持 Agent 写操作,请直接连接目标 Agent。",
      targetRequired: "请在编辑连接中填写「Agent 目标节点」和「Agent 目标地址」。节点须与当前 Agent 一致,地址须与连接地址匹配。",
      identityUnavailable: "无法获取 Agent 身份,写操作已禁用。请检查连接和 Agent 读取权限后刷新。",
      nodeMismatch: "配置的 Agent 目标节点与当前 Agent 不一致,请检查连接设置。",
      directAddressRequired: "Agent 写操作要求使用 IP 或 localhost 直连,不支持域名或负载均衡地址。",
      addressMismatch: "Agent 目标地址与连接地址不匹配,请检查连接设置。",
      invalidAddress: "Consul 连接地址无效,请检查连接设置。",
    },
    register: "注册",
    registrationHint: "HTTP Agent 注册仅作用于目标 Agent 的运行时,不会修改其持久化配置文件。",
    name: "名称",
    port: "端口",
    tags: "标签(逗号分隔)",
    registerOn: "注册到 {node}",
    catalogInstances: "Catalog 实例",
    nodeServices: "节点服务",
    serviceId: "服务 ID",
    localAgentServices: "本地 Agent 服务",
    enableMaintenance: "启用维护模式",
    disableMaintenance: "停用维护模式",
    deregister: "注销",
    deregisterService: "从 {node} 注销本地服务 {id}?",
    deregistering: "正在注销",
    deregisterServiceHint: "这会移除服务注册及关联检查,Catalog 将随后同步。服务进程不会停止,应用再次注册后可能重新出现。",
    deregisterServiceSucceeded: "已从 {node} 注销服务 {id}。Catalog 同步可能稍有延迟;若应用再次注册,服务可能重新出现。",
    deregisterRefreshFailed: "服务已注销,但刷新失败,请手动刷新",
    maintenanceReason: "DBX 用户请求",
    kind: "类型",
    serviceKind: "服务类型(ServiceKind)",
    standard: "标准",
    metadata: "元数据",
    nodeMeta: "节点元数据",
    serviceMeta: "服务元数据",
    nodeId: "节点 ID",
    serviceWeights: "通过 / 警告权重",
    taggedAddresses: "标记地址(TaggedAddresses)",
    enableTagOverride: "允许覆盖标签(EnableTagOverride)",
    agent: "Agent",
    writeOperation: "写操作",
    localServiceDetails: "本地服务详情",
    agentIdentityRequestTimedOut: "加载 Agent 身份信息超时。",
    localServicesRequestTimedOut: "加载本地 Agent 服务超时。",
    localChecksRequestTimedOut: "加载本地 Agent 检查超时。",
    healthChecks: "健康检查",
    state: "状态",
    nodeName: "节点名称",
    allStates: "全部状态",
    passing: "通过",
    warning: "警告",
    critical: "严重",
    watchingIndex: "正在监视索引 {index}",
    checkRegistrationHint: "Agent 检查仅注册在 {node} 的运行时中,不会持久化到 Agent 配置文件。",
    type: "类型",
    arguments: "参数",
    containerId: "容器 ID",
    endpoint: "端点",
    interval: "间隔",
    timeout: "超时",
    commandArguments: "命令参数",
    clusterHealth: "集群健康状态",
    nodeHealth: "节点健康状态:{node}",
    serviceHealth: "服务健康状态:{service}",
    noMatchingHealthChecks: "没有匹配的健康检查",
    serviceInstances: "服务实例",
    localAgentChecks: "本地 Agent 检查",
    maintenance: "维护中",
    ttlPass: "TTL 通过",
    ttlWarn: "TTL 警告",
    ttlFail: "TTL 失败",
    deregisterCheck: "从 {node} 注销检查 {id}?",
    checkDetails: "{check} 详情",
    checkId: "检查 ID",
    notes: "备注",
    output: "输出",
    definition: "定义",
    indexes: "CreateIndex / ModifyIndex",
    sessionsAndLocks: "会话和锁",
    scope: "Consul 作用域",
    tools: "Consul 工具",
    loading: "加载中...",
    noResources: "没有资源",
    capability: "能力:{status}",
    capabilitySupported: "支持",
    capabilityUnsupported: "不支持",
    capabilityDisabled: "未启用",
    capabilityForbidden: "无权限",
    capabilityUnknown: "未知",
    applyScope: "应用作用域",
    impactAclFiltered: "Consul 返回了 ACL 过滤结果,删除已阻止。",
    impactUnavailable: "无法完整枚举:{resources}",
    impactResource: {
      services: "服务",
      nodes: "节点",
      kvKeys: "KV Key",
      healthChecks: "健康检查",
      sessions: "Session",
      configEntries: "配置条目",
      intentions: "Intention",
      peerings: "Peering",
      namespaces: "Namespace",
      aclTokens: "ACL Token",
      aclPolicies: "ACL Policy",
      aclRoles: "ACL Role",
      aclAuthMethods: "ACL Auth Method",
      aclBindingRules: "ACL Binding Rule",
    },
    reveal: "显示",
    copyOnce: "复制一次",
    datacenter: "数据中心",
    agentNode: "Agent 节点",
    agentAddress: "Agent 地址",
    version: "版本",
    mode: "模式",
    server: "服务端",
    client: "客户端",
    leader: "领导节点",
    raftPeers: "Raft 对等节点",
    membersAlive: "存活成员",
    members: "成员",
    address: "地址",
    status: "状态",
    alive: "存活",
    leaving: "离开中",
    failed: "故障",
    tokens: "令牌",
    policies: "策略",
    roles: "角色",
    authMethods: "认证方式",
    bindingRules: "绑定规则",
    templatedPolicies: "模板策略",
    viewOrEdit: "查看或编辑",
    cloneToken: "克隆令牌",
    deleteAndInspectReferences: "检查引用后删除",
    editResource: "编辑 {kind}",
    createResource: "新建 {kind}",
    knownImpact: "已知影响:{tokens} 个令牌、{roles} 个角色、{bindingRules} 条绑定规则",
    incomplete: "(不完整)",
    reviewAclChanges: "确认 ACL 变更",
    deleteResource: "删除 {label}",
    tokenReferences: "令牌引用:{tokens} · 角色引用:{roles} · 绑定规则引用:{bindingRules}",
    impactBlocked: "影响范围不完整或已被 ACL 过滤,禁止删除。",
    cloneTokenDescription: "克隆令牌的说明",
    sessions: "会话",
    sessionDescription: "会话是 Consul 分布式锁使用的租约型契约。带 TTL 的会话需要续租;无 TTL 会话会持续存在,直到主动销毁或关联检查失效。",
    createSession: "创建会话",
    searchSessions: "搜索会话名称、ID、节点或检查项",
    sessionResultCount: "显示 {filtered} / {total} 个会话",
    noMatchingSessions: "没有匹配的会话",
    allSessionTypes: "全部会话类型",
    ttlSessions: "TTL 会话",
    persistentSessions: "无 TTL 会话",
    allBehaviors: "全部失效行为",
    aclFilteredSessions: "会话列表已被 ACL 过滤",
    sessionRequestTimedOut: "加载会话超时,请检查 Consul 连接后重试。",
    complete: "完整",
    lock: "锁",
    lockManagement: "KV 锁管理",
    lockIndex: "锁索引 {index}",
    lockDelay: "锁延迟",
    lockDelayHint: "范围 0s–60s;会话失效后延迟其他会话重新获取锁。",
    nodeOptional: "节点(可选)",
    behavior: "失效行为",
    behaviorRelease: "释放锁(release)",
    behaviorDelete: "删除 Key(delete)",
    behaviorHint: "release 会保留 Key 并释放锁;delete 会在会话失效时删除所持 Key。",
    releaseLocks: "释放锁(release)",
    deleteKeys: "删除 Key(delete)",
    deleteBehaviorWarning: "delete 行为会在会话失效时删除它持有的所有 Key。确定继续吗?",
    checks: "关联检查",
    nodeChecks: "节点检查",
    serviceChecks: "服务检查",
    nodeCheckShort: "节点",
    serviceCheckShort: "服务",
    serviceChecksPlaceholder: "service:api:health{'@'}namespace-a",
    serviceChecksHint: "多个检查 ID 用逗号分隔;作用域检查可写为 ID{'@'}命名空间。",
    lockHint: "先检查 Key,再选择会话执行获取或释放。",
    key: "Key",
    inspectKey: "检查 Key",
    keyExists: "Key 已存在",
    keyNotFound: "Key 不存在",
    keyUnlocked: "Key 当前未被会话持有",
    keyHeldBy: "由会话 {session} 持有",
    locked: "已锁定",
    sessionValue: "会话 {id}",
    modifyIndexValue: "ModifyIndex {index}",
    createIndex: "CreateIndex",
    modifyIndexLabel: "ModifyIndex",
    selectSession: "选择会话",
    sessionId: "会话 ID",
    value: "值",
    releaseMatchingSession: "释放",
    acquire: "获取",
    unnamedSession: "未命名会话",
    heldKeys: "持有的 Key",
    heldKeysIncomplete: "结果不完整或已被 ACL 过滤",
    stop: "停止",
    renewNow: "立即续租",
    autoRenew: "自动续租",
    autoRenewPageHint: "仅在当前连接和页面保持活跃时自动续租。",
    noRenewRequired: "无需续租",
    noTtl: "无 TTL",
    ttlOptional: "TTL(可选)",
    ttlRangeHint: "留空表示持久会话;填写时范围为 10s–24h。",
    invalidSessionTtl: "TTL 必须留空,或填写 10s–24h 的有效时长。",
    invalidLockDelay: "锁延迟必须填写 0s–60s 的有效时长。",
    destroy: "销毁",
    noHeldKeys: "没有持有的 Key",
    noVisibleSessions: "没有可见会话",
    destroySessionImpact: "销毁会话 {id}?行为:{behavior}。持有的 Key({count}):{keys}",
    sessionImpactIncomplete: "会话影响范围不完整或已被 ACL 过滤,已阻止销毁。",
    adminPartition: "管理分区",
    namespace: "命名空间",
    default: "默认",
    enterpriseCapability: "Enterprise 能力:{status}。生命周期操作不可用。",
    namespaces: "命名空间",
    inspectImpactAndDelete: "检查影响并删除",
    configEntries: "配置条目",
    intentions: "服务意图",
    discoveryChain: "服务发现链",
    peering: "对等连接",
    exportedServices: "导出服务",
    configEntryKind: "配置条目类型",
    loadKind: "加载类型",
    newJson: "新建 JSON",
    modifyIndex: "ModifyIndex {index}",
    rawJson: "原始 JSON",
    newIntention: "新建服务意图",
    sourceService: "源服务",
    destinationService: "目标服务",
    check: "检查",
    matchSource: "匹配源服务",
    matchDestination: "匹配目标服务",
    allowed: "允许",
    denied: "拒绝",
    matchedIntentions: "匹配到 {count} 条服务意图",
    details: "详情",
    serviceName: "服务名称",
    compile: "编译",
    defaultProtocol: "默认协议",
    configuredDatacenter: "配置的数据中心",
    start: "起点",
    next: "下一跳:{nodes}",
    terminalTarget: "终点 / 目标",
    upstreamTargets: "上游目标({count})",
    peerName: "对等连接名称",
    peeringToken: "用于建立连接的对等令牌",
    generateToken: "生成令牌",
    establish: "建立",
    editExportedServices: "编辑 exported-services 条目",
    serviceMeshConfigEntry: "服务网格配置条目",
    applyWithCas: "使用 CAS 应用",
    reviewMeshChanges: "确认服务网格变更",
    deleteConfig: "删除 {kind}/{name}?",
    deleteIntention: "删除服务意图 {id}?",
    deleteIntentionExact: "删除服务意图 {source} -> {destination}?",
    deletePeering: "删除对等连接 {name}?",
    permissions: "{count} 条权限",
    actionRule: "动作规则",
    preparedQueries: "预设查询",
    events: "事件",
    coordinates: "网络坐标",
    queryName: "查询名称",
    targetService: "目标服务",
    targetServiceValue: "目标服务:{service}",
    cancelEdit: "取消编辑",
    execute: "执行",
    explain: "说明",
    eventName: "事件名称",
    payload: "负载内容",
    fire: "触发",
    deletePreparedQuery: "删除预设查询 {id}?",
    preparedQueriesDescription: "保存在 Consul 中、可重复使用的服务发现查询。执行会解析符合条件的健康服务实例,说明会展示最终生效的查询。简易编辑器只修改名称和目标服务,并保留 Consul 中已有的高级字段。",
    eventsDescription: "通过 Consul Gossip 分发的轻量、尽力而为消息,适合临时诊断和通知;它不是持久化消息队列。",
    coordinatesDescription: "Consul 估算的只读网络坐标,用于比较节点间的网络距离;它不是地理位置坐标。",
    noPreparedQueries: "暂无预设查询",
    noEvents: "暂无近期事件",
    noCoordinates: "暂无网络坐标",
    queryExecutionResult: "执行结果 · {count} 个实例 · {datacenter}",
    noQueryNodes: "没有服务实例符合该查询",
    queryExplanation: "生效的查询",
    eventNodeFilter: "节点正则(可选)",
    eventServiceFilter: "服务正则(可选)",
    eventTagFilter: "标签正则(可选)",
    eventPayloadBytes: "负载 {count} / 100 字节",
    segment: "网络分段",
    error: "误差",
    adjustment: "校正值",
    height: "高度",
    operatorReadOnly: "运维(只读)",
    snapshot: "快照",
    snapshotRestore: "恢复快照",
    targetDatacenter: "目标数据中心",
    restoreSnapshot: "恢复快照",
    autopilotUpdate: "Autopilot 更新",
    cleanupDeadServers: "清理失效服务端",
    updateAutopilot: "更新 Autopilot",
    raftOperations: "Raft 操作",
    serverId: "服务端 ID",
    peerAddress: "对等节点地址(仅移除时需要)",
    reenterIdAddress: "重新输入 ID 或地址",
    transferLeader: "转移 Leader",
    removePeer: "移除对等节点",
    gossipKeyring: "Gossip 密钥环",
    operation: "操作",
    install: "安装",
    use: "使用",
    remove: "移除",
    gossipKey: "Gossip 密钥",
    changeKeyring: "修改密钥环",
    licenseUpdate: "许可证更新",
    license: "许可证",
    updateLicense: "更新许可证",
    watch: "监视",
    watchPaused: "监视已暂停",
    pauseWatch: "暂停监视",
    startWatch: "启动监视",
  },
  tools: {
    search: "全文搜索",
    searchTitle: "搜索 Consul KV",
    searchQuery: "输入要查找的内容",
    prefixOptional: "前缀(可选)",
    searchAll: "Key 和值",
    searchKeys: "仅 Key",
    searchValues: "仅值",
    caseSensitive: "区分大小写",
    scanned: "已扫描 {count} 个 Key",
    searchLimited: "为保护连接,本次结果已受限。",
    noSearchResults: "没有匹配的 Key",
    searchSummary: "已扫描 {scanned} 个 Key,匹配 {matched} 个",
    exportSearchResults: "导出结果",
    searchResultsFileType: "Consul KV 搜索结果",
    searchResultsExported: "已导出 {count} 条搜索结果",
    exportPrefix: "导出",
    prefix: "前缀",
    emptyPrefixAll: "留空则导出全部可访问 Key",
    exportLimitHint: "导出会保留当前作用域及安全导入所需的 Key 元数据。",
    exported: "已导出 {count} 个 Key",
    import: "导入",
    importTitle: "导入 Consul KV 数据包",
    invalidBundle: "该文件不是有效的 DBX Consul KV 数据包",
    importApplied: "已导入 {count} 个 Key",
    migrate: "同步",
    migrateTitle: "迁移 Consul KV",
    sourcePrefix: "源前缀",
    targetConnection: "目标连接",
    selectTarget: "选择目标连接",
    targetReadOnly: "目标连接为只读,无法写入。",
    conflictPolicy: "冲突策略",
    policyAbort: "遇到冲突即终止",
    policySkip: "跳过冲突项",
    policyCas: "使用 CAS",
    bundleSummary: "{count} 个 Key · 数据中心 {dc} · 命名空间 {ns} · 管理分区 {partition}",
    creates: "新建 {count}",
    updates: "更新 {count}",
    unchanged: "未变更 {count}",
    skipped: "跳过 {count}",
    conflicts: "冲突 {count}",
    loadPreview: "加载预览",
    loadingPreview: "正在加载预览...",
    apply: "应用",
    preview: "预览",
    deletePrefix: "前缀删除",
    deletePrefixTitle: "删除 Consul KV 前缀",
    deletePrefixPlaceholder: "输入要删除的前缀",
    deletePrefixWarning: "此操作会删除该前缀下所有可见 Key。请先核对预览,再执行确认。",
    candidates: "候选项 {count}",
    lockedCount: "已锁定 {count}",
    filtered: "已过滤",
    complete: "完整",
    confirmDeletePrefix: "删除已确认的 Key",
    prefixDeleted: "已删除 {count} 个 Key",
    operation: { create: "新建", update: "更新", unchanged: "未变更", skipped: "已跳过", conflict: "冲突", locked: "已锁定", succeeded: "成功", conflicted: "冲突", failed: "失败" },
  },
  prefixPlaceholder: "Key 前缀,例如 app/ 或 services/",
  newKey: "新建 Key",
  loadingKeys: "正在加载 Key...",
  empty: "未找到 Key",
  loadMore: "加载更多",
  selectKey: "选择一个 Key 查看其值",
  loadingValue: "正在加载值...",
  notFound: "未找到 Key",
  edit: "编辑",
  editKey: "编辑 Key",
  delete: "删除",
  deleteTitle: "删除 Consul KV Key",
  keyLabel: "键(Key)",
  keyPlaceholder: "path/to/key",
  keyRequired: "Key 不能为空",
  rootReadonly: "根前缀不能修改,请输入具体 Key 路径。",
  saved: "Key 已保存",
  deleted: "Key 已删除",
  base64Readonly: "请在 Base64 模式下编辑二进制值。",
  rename: "重命名",
  clone: "克隆",
  copyKey: "复制 Key",
  export: "导出",
  value: "值",
  valueContent: "值",
  format: "格式",
  metadata: "KV 元数据",
  prettyJson: "格式化",
  invalidJson: "JSON 格式无效",
  summarySize: "大小",
  conflict: "该 Key 自加载后已发生变化,请刷新后重试。",
  keyAlreadyExists: "同名 Key 已存在,请使用其他名称或编辑现有 Key。",
  aclFiltered: "部分 Consul KV Key 已被 ACL 策略过滤。",
  locked: "该 Key 正由 Consul Session 持有,不能编辑或删除。",
  valueTooLarge: "Consul KV 值不能超过 512 KiB。",
  watchKey: "监视",
  stopWatching: "停止",
  workspace: {
    kv: "键值存储",
    services: "服务",
    health: "健康检查",
    sessions: "会话",
    scope: "作用域",
    mesh: "服务网格",
    tools: "工具",
    operator: "运维",
    acl: "访问控制",
    partitions: "管理分区",
    capability: {},
  },
};