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。

19.7 KB
Raw Blame
// Canonical English messages and key schema for Consul's advanced workspaces.
// Operator confirmation phrases are checked verbatim by the backend; keep them in English in every locale.
export const consulUiMessages = {
  ui: {
    unknown: "Unknown",
    peeringPending: "Pending",
    peeringEstablishing: "Establishing",
    peeringActive: "Active",
    peeringFailing: "Failing",
    peeringDeleting: "Deleting",
    peeringTerminated: "Terminated",
    refresh: "Refresh",
    cancel: "Cancel",
    create: "Create",
    update: "Update",
    save: "Save",
    delete: "Delete",
    edit: "Edit",
    apply: "Apply",
    close: "Close",
    hide: "Hide",
    reveal: "Reveal",
    copy: "Copy",
    copied: "Copied",
    copyFailed: "Copy failed",
    copyOnce: "Copy once",
    sessionProtected: "Protected by Session",
    sessionProtectedHint: "Editing and deletion are disabled to protect this distributed lock.",
    atomicTransaction: "Atomic transaction",
    nonAtomicBatches: "Non-atomic across {count} batches",
    batchOperation: "Batch {batch} · OpIndex {op}",
    operationTotals: "Succeeded {succeeded} · Conflicted {conflicted} · Skipped {skipped} · Failed {failed}",
    deleteOperationTotals: "Succeeded {succeeded} · Conflicted {conflicted} · Failed {failed}",
    clientSideMigration: "DBX reads from the source and writes to the target. This is not native Consul cross-Datacenter replication.",
    bundleFileType: "DBX Consul KV Bundle",
    sourceKeyMissingModifyIndex: "Source key has no ModifyIndex",
    transactionRejected: "Consul rejected the transaction",
    overview: "Cluster overview",
    capabilities: "Capabilities",
    probeLoading: "Loading",
    probeReady: "Ready",
    probeForbidden: "Forbidden",
    probeUnsupported: "Unsupported",
    probeError: "Error",
    autopilotHealth: "Autopilot health",
    datacenter: "Datacenter",
    agentNode: "Agent node",
    agentAddress: "Agent address",
    version: "Version",
    mode: "Mode",
    server: "Server",
    client: "Client",
    leader: "Leader",
    raftPeers: "Raft peers",
    membersAlive: "Members alive",
    members: "Members",
    node: "Node",
    address: "Address",
    status: "Status",
    alive: "alive",
    leaving: "leaving",
    failed: "failed",
    previousPage: "Previous page",
    nextPage: "Next page",
    pageStatus: "{page} / {pages} · {total} total",
    searchAllServices: "Search all services",
    searchAllNodes: "Search all nodes",
    searchLocalServices: "Search local Agent services",
    query: "Query",
    searchHealthChecks: "Search check name, ID, node, service, output, or notes",
    allCheckTypes: "All check types",
    clearFilters: "Clear filters",
    healthResultCount: "{filtered} of {total} checks",
    services: "Services",
    nodes: "Nodes",
    service: "Service",
    catalogServices: "Catalog services",
    catalogNodes: "Catalog nodes",
    noVisibleServices: "No visible services",
    noVisibleNodes: "No visible nodes",
    noMatchingServices: "No matching services",
    noMatchingNodes: "No matching nodes",
    agentTarget: "Agent target: {target}",
    agentTargetVerifying: "Verifying Agent target",
    unknownWritesDisabled: "unknown - writes disabled",
    targetAgent: "the target Agent",
    agentWriteReady: "Writable",
    agentReadOnly: "Read-only",
    agentWriteBlocked: {
      connectionUnavailable: "Connection configuration is unavailable. Reconnect before writing.",
      readOnly: "This connection is read-only. Service deregistration is disabled.",
      transport: "Agent writes are unavailable through Transport Layers. Connect directly to the target Agent.",
      targetRequired: "Edit the connection and configure the Agent target node and address. The node must match the current Agent, and the address must match the connection endpoint.",
      identityUnavailable: "Unable to read the Agent identity. Writes are disabled. Check the connection and Agent read permissions, then refresh.",
      nodeMismatch: "The configured target node does not match the current Agent. Check the connection settings.",
      directAddressRequired: "Agent writes require a direct IP or localhost endpoint. DNS and load-balanced addresses are not supported.",
      addressMismatch: "The Agent target address does not match the connection endpoint. Check the connection settings.",
      invalidAddress: "The Consul connection address is invalid. Check the connection settings.",
    },
    register: "Register",
    registrationHint: "HTTP Agent registrations belong to the target Agent runtime and do not modify its persistent configuration files.",
    name: "Name",
    id: "ID",
    port: "Port",
    tags: "Tags (comma-separated)",
    registerOn: "Register on {node}",
    catalogInstances: "Catalog instances",
    nodeServices: "Node services",
    serviceId: "Service ID",
    localAgentServices: "Local Agent services",
    enableMaintenance: "Enable maintenance",
    disableMaintenance: "Disable maintenance",
    deregister: "Deregister",
    deregisterService: "Deregister local service {id} from {node}?",
    deregistering: "Deregistering",
    deregisterServiceHint: "This removes the service registration and associated checks. The Catalog will sync afterward. The service process keeps running and may register itself again.",
    deregisterServiceSucceeded: "Service {id} was deregistered from {node}. Catalog synchronization may take a moment; the service may reappear if the application registers it again.",
    deregisterRefreshFailed: "Service deregistered, but refreshing failed. Refresh manually",
    maintenanceReason: "DBX user request",
    kind: "Kind",
    serviceKind: "ServiceKind",
    standard: "standard",
    metadata: "Metadata",
    nodeMeta: "Node meta",
    serviceMeta: "Service meta",
    nodeId: "Node ID",
    serviceWeights: "Passing / Warning",
    taggedAddresses: "TaggedAddresses",
    enableTagOverride: "EnableTagOverride",
    agent: "Agent",
    watch: "Watch",
    writeOperation: "Write operation",
    localServiceDetails: "Local service details",
    agentIdentityRequestTimedOut: "Loading Agent identity timed out.",
    localServicesRequestTimedOut: "Loading local Agent services timed out.",
    localChecksRequestTimedOut: "Loading local Agent checks timed out.",
    healthChecks: "Health checks",
    state: "State",
    nodeName: "Node name",
    allStates: "All states",
    passing: "Passing",
    warning: "Warning",
    critical: "Critical",
    watchPaused: "Watch paused",
    watchingIndex: "Watching index {index}",
    pauseWatch: "Pause watch",
    startWatch: "Start watch",
    checkRegistrationHint: "Agent checks are runtime registrations on {node} and are not persisted to Agent configuration files.",
    type: "Type",
    ttl: "TTL",
    http: "HTTP",
    tcp: "TCP",
    grpc: "gRPC",
    docker: "Docker",
    script: "Script",
    arguments: "Arguments",
    containerId: "Container ID",
    endpoint: "Endpoint",
    interval: "Interval",
    timeout: "Timeout",
    commandArguments: "Command arguments",
    clusterHealth: "Cluster health",
    nodeHealth: "Node health: {node}",
    serviceHealth: "Service health: {service}",
    noMatchingHealthChecks: "No matching health checks",
    serviceInstances: "Service instances",
    localAgentChecks: "Local Agent checks",
    maintenance: "maintenance",
    ttlPass: "TTL pass",
    ttlWarn: "TTL warn",
    ttlFail: "TTL fail",
    deregisterCheck: "Deregister check {id} from {node}?",
    checkDetails: "{check} details",
    checkId: "Check ID",
    notes: "Notes",
    output: "Output",
    definition: "Definition",
    indexes: "CreateIndex / ModifyIndex",
    sessionsAndLocks: "Sessions and locks",
    sessions: "Sessions",
    sessionDescription: "A Session is a lease-like contract used by Consul KV locks. TTL Sessions require renewal; Sessions without TTL remain until explicitly destroyed or invalidated by their checks.",
    createSession: "Create Session",
    searchSessions: "Search Session name, ID, node, or check",
    sessionResultCount: "Showing {filtered} of {total} Sessions",
    noMatchingSessions: "No matching Sessions",
    allSessionTypes: "All Session types",
    ttlSessions: "TTL Sessions",
    persistentSessions: "No-TTL Sessions",
    allBehaviors: "All behaviors",
    aclFilteredSessions: "The Session list was filtered by ACLs",
    sessionRequestTimedOut: "Loading Sessions timed out. Check the Consul connection and try again.",
    complete: "Complete",
    lock: "Lock",
    lockManagement: "KV lock management",
    lockIndex: "LockIndex {index}",
    lockDelay: "Lock delay",
    lockDelayHint: "0s–60s; delays reacquisition after invalidation.",
    nodeOptional: "Node (optional)",
    behavior: "Behavior",
    behaviorRelease: "release",
    behaviorDelete: "delete",
    behaviorHint: "release keeps held keys; delete removes them when the Session expires.",
    releaseLocks: "Release locks",
    deleteKeys: "Delete keys",
    deleteBehaviorWarning: "Behavior=delete removes every key held by this Session when it is invalidated. Continue?",
    checks: "Checks",
    nodeChecks: "Node checks",
    serviceChecks: "Service checks",
    nodeCheckShort: "Node",
    serviceCheckShort: "Service",
    serviceChecksPlaceholder: "service:api:health{'@'}namespace-a",
    serviceChecksHint: "Comma-separated check IDs; use ID{'@'}namespace for a scoped check.",
    lockHint: "Inspect the key, select a Session, then acquire or release the advisory lock.",
    key: "Key",
    inspectKey: "Inspect key",
    keyExists: "Key exists",
    keyNotFound: "Key does not exist",
    keyUnlocked: "Key is not currently held",
    keyHeldBy: "Held by Session {session}",
    locked: "Locked",
    sessionValue: "Session {id}",
    modifyIndexValue: "ModifyIndex {index}",
    createIndex: "CreateIndex",
    modifyIndexLabel: "ModifyIndex",
    selectSession: "Select a Session",
    sessionId: "Session ID",
    value: "Value",
    releaseMatchingSession: "Release",
    acquire: "Acquire",
    unnamedSession: "Unnamed Session",
    heldKeys: "Held keys",
    heldKeysIncomplete: "Results are incomplete or ACL-filtered",
    stop: "Stop",
    renewNow: "Renew now",
    autoRenew: "Auto renew",
    autoRenewPageHint: "Auto renewal runs only while this connection and page remain active.",
    noRenewRequired: "No renewal needed",
    noTtl: "No TTL",
    ttlOptional: "TTL (optional)",
    ttlRangeHint: "Leave empty for a persistent Session, or use 10s–24h.",
    invalidSessionTtl: "TTL must be empty or a valid duration from 10s to 24h.",
    invalidLockDelay: "Lock delay must be a valid duration from 0s to 60s.",
    destroy: "Destroy",
    noHeldKeys: "No held keys",
    noVisibleSessions: "No visible Sessions",
    destroySessionImpact: "Destroy Session {id}? Behavior: {behavior}. Held keys ({count}): {keys}",
    sessionImpactIncomplete: "Session impact is incomplete or ACL-filtered. Destruction is blocked.",
    tokens: "Tokens",
    policies: "Policies",
    roles: "Roles",
    authMethods: "Auth Methods",
    bindingRules: "Binding Rules",
    templatedPolicies: "Templated Policies",
    capability: "Capability: {status}",
    capabilitySupported: "Supported",
    capabilityUnsupported: "Unsupported",
    capabilityDisabled: "Disabled",
    capabilityForbidden: "No permission",
    capabilityUnknown: "Unknown",
    loading: "Loading...",
    viewOrEdit: "View or edit",
    cloneToken: "Clone token",
    deleteAndInspectReferences: "Delete and inspect references",
    noResources: "No resources",
    editResource: "Edit {kind}",
    createResource: "Create {kind}",
    knownImpact: "Known impact: {tokens} tokens, {roles} roles, {bindingRules} binding rules",
    incomplete: "(incomplete)",
    reviewAclChanges: "Review ACL changes",
    deleteResource: "Delete {label}",
    tokenReferences: "Token references: {tokens} · Role references: {roles} · Binding rule references: {bindingRules}",
    impactBlocked: "Impact is incomplete or ACL-filtered. Deletion is blocked.",
    cloneTokenDescription: "Description for cloned token",
    scope: "Consul scope",
    adminPartition: "Admin Partition",
    namespace: "Namespace",
    default: "default",
    applyScope: "Apply scope",
    enterpriseCapability: "Enterprise capability: {status}. Lifecycle actions are unavailable.",
    namespaces: "Namespaces",
    inspectImpactAndDelete: "Inspect impact and delete",
    impactAclFiltered: "Consul reports ACL-filtered results; deletion is blocked.",
    impactUnavailable: "Could not enumerate: {resources}",
    impactResource: {
      services: "Services",
      nodes: "Nodes",
      kvKeys: "KV keys",
      healthChecks: "Health checks",
      sessions: "Sessions",
      configEntries: "Config entries",
      intentions: "Intentions",
      peerings: "Peerings",
      namespaces: "Namespaces",
      aclTokens: "ACL tokens",
      aclPolicies: "ACL policies",
      aclRoles: "ACL roles",
      aclAuthMethods: "ACL auth methods",
      aclBindingRules: "ACL binding rules",
    },
    configEntries: "Config Entries",
    intentions: "Intentions",
    discoveryChain: "Discovery Chain",
    peering: "Peering",
    exportedServices: "Exported Services",
    configEntryKind: "Config entry kind",
    loadKind: "Load kind",
    newJson: "New JSON",
    modifyIndex: "ModifyIndex {index}",
    rawJson: "Raw JSON",
    newIntention: "New intention",
    sourceService: "Source service",
    destinationService: "Destination service",
    check: "Check",
    matchSource: "Match source",
    matchDestination: "Match destination",
    allowed: "Allowed",
    denied: "Denied",
    matchedIntentions: "Matched {count} intention(s)",
    details: "Details",
    serviceName: "Service name",
    compile: "Compile",
    defaultProtocol: "default protocol",
    configuredDatacenter: "configured datacenter",
    start: "Start",
    next: "Next: {nodes}",
    terminalTarget: "Terminal / target",
    upstreamTargets: "Upstream targets ({count})",
    peerName: "Peer name",
    peeringToken: "Peering token to establish",
    generateToken: "Generate token",
    establish: "Establish",
    editExportedServices: "Edit exported-services entry",
    serviceMeshConfigEntry: "Service Mesh config entry",
    applyWithCas: "Apply with CAS",
    reviewMeshChanges: "Review Service Mesh changes",
    deleteConfig: "Delete {kind}/{name}?",
    deleteIntention: "Delete intention {id}?",
    deleteIntentionExact: "Delete intention {source} -> {destination}?",
    deletePeering: "Delete peering {name}?",
    permissions: "{count} permissions",
    actionRule: "action rule",
    tools: "Consul tools",
    preparedQueries: "Prepared queries",
    events: "Events",
    coordinates: "Network coordinates",
    queryName: "Query name",
    targetService: "Target service",
    targetServiceValue: "Target service: {service}",
    cancelEdit: "Cancel edit",
    execute: "Execute",
    explain: "Explain",
    eventName: "Event name",
    payload: "Payload",
    fire: "Fire",
    deletePreparedQuery: "Delete prepared query {id}?",
    preparedQueriesDescription: "Reusable service-discovery queries stored in Consul. Execute resolves matching healthy service instances; Explain shows the effective query. The simple editor changes only the name and target service, preserving advanced fields already stored by Consul.",
    eventsDescription: "Lightweight, best-effort messages distributed through Consul gossip. Events are transient diagnostics or notifications, not a durable message queue.",
    coordinatesDescription: "Read-only network coordinates estimated by Consul to compare network proximity. They are not geographic locations.",
    noPreparedQueries: "No prepared queries",
    noEvents: "No recent events",
    noCoordinates: "No network coordinates",
    queryExecutionResult: "Execution result · {count} instances · {datacenter}",
    noQueryNodes: "No service instances matched this query",
    queryExplanation: "Effective query",
    eventNodeFilter: "Node regex (optional)",
    eventServiceFilter: "Service regex (optional)",
    eventTagFilter: "Tag regex (optional)",
    eventPayloadBytes: "Payload {count} / 100 bytes",
    segment: "Segment",
    error: "Error",
    adjustment: "Adjustment",
    height: "Height",
    operatorReadOnly: "Operator (read-only)",
    snapshot: "Snapshot",
    snapshotRestore: "Snapshot restore",
    targetDatacenter: "Target Datacenter",
    restoreSnapshot: "Restore snapshot",
    restoreSnapshotConfirmation: "RESTORE SNAPSHOT {datacenter}",
    autopilotUpdate: "Autopilot update",
    cleanupDeadServers: "Cleanup dead servers",
    updateAutopilot: "Update Autopilot",
    updateAutopilotConfirmation: "UPDATE AUTOPILOT",
    raftOperations: "Raft operations",
    serverId: "Server ID",
    peerAddress: "Peer address (remove only)",
    reenterIdAddress: "Re-enter ID or address",
    transferLeader: "Transfer leader",
    removePeer: "Remove peer",
    gossipKeyring: "Gossip keyring",
    operation: "Operation",
    install: "Install",
    use: "Use",
    remove: "Remove",
    gossipKey: "Gossip key",
    changeKeyring: "Change keyring",
    changeKeyringConfirmation: "CHANGE KEYRING",
    licenseUpdate: "License update",
    license: "License",
    updateLicense: "Update license",
    updateLicenseConfirmation: "UPDATE LICENSE",
  },
  tools: {
    search: "Search",
    searchTitle: "Search Consul KV",
    searchQuery: "Text to find",
    prefixOptional: "Prefix (optional)",
    searchAll: "Keys and values",
    searchKeys: "Keys only",
    searchValues: "Values only",
    caseSensitive: "Case-sensitive",
    scanned: "Scanned {count} keys",
    searchLimited: "Results are limited to protect the connection.",
    noSearchResults: "No matching keys",
    searchSummary: "{matched} matches from {scanned} scanned keys",
    exportSearchResults: "Export results",
    searchResultsFileType: "Consul KV search results",
    searchResultsExported: "Exported {count} search results",
    exportPrefix: "Export prefix",
    prefix: "Prefix",
    emptyPrefixAll: "Leave empty for all accessible keys",
    exportLimitHint: "Exports include the current scope and preserve the key metadata needed for safe import.",
    exported: "Exported {count} keys",
    import: "Import",
    importTitle: "Import Consul KV bundle",
    invalidBundle: "This file is not a valid DBX Consul KV bundle",
    importApplied: "Imported {count} keys",
    migrate: "Migrate",
    migrateTitle: "Migrate Consul KV",
    sourcePrefix: "Source prefix",
    targetConnection: "Target connection",
    selectTarget: "Select a target connection",
    targetReadOnly: "The target connection is read-only.",
    conflictPolicy: "Conflict policy",
    policyAbort: "Abort on conflict",
    policySkip: "Skip conflicts",
    policyCas: "Use CAS",
    bundleSummary: "{count} keys · Datacenter {dc} · Namespace {ns} · Partition {partition}",
    creates: "Create {count}",
    updates: "Update {count}",
    unchanged: "Unchanged {count}",
    skipped: "Skipped {count}",
    conflicts: "Conflicts {count}",
    loadPreview: "Load preview",
    loadingPreview: "Loading preview...",
    apply: "Apply",
    preview: "Preview",
    deletePrefix: "Delete prefix",
    deletePrefixTitle: "Delete Consul KV prefix",
    deletePrefixPlaceholder: "Prefix to delete",
    deletePrefixWarning: "This operation deletes every visible key under the prefix. Review the preview before confirming.",
    candidates: "Candidates {count}",
    lockedCount: "Locked {count}",
    filtered: "filtered",
    complete: "complete",
    confirmDeletePrefix: "Delete confirmed keys",
    prefixDeleted: "Deleted {count} keys",
    operation: { create: "Create", update: "Update", unchanged: "Unchanged", skipped: "Skipped", conflict: "Conflict", locked: "Locked", succeeded: "Succeeded", conflicted: "Conflicted", failed: "Failed" },
  },
} as const;

type LocalizedMessages<T> = { [Key in keyof T]: T[Key] extends string ? string : LocalizedMessages<T[Key]> };

export type ConsulMessages = LocalizedMessages<typeof consulUiMessages>;