SPB Git

Repository Public

base.ts 20.0 KB 203 lines typescript

1import type { Shape } from "../types";2import type { base as frBase } from "../fr/base";34export const base: Shape<typeof frBase> = {5  common: {6    loading: "Loading…", copy: "Copy", copied: "Copied to clipboard", copyFailed: "Copy failed", close: "Close", cancel: "Cancel",7    dismiss: "Dismiss", on: "On", off: "Off", retry: "Retry", refresh: "Refresh", loadMore: "Show more", apply: "Apply",8    continue: "Continue", save: "Save", delete: "Delete", edit: "Edit", create: "Create", add: "Add", remove: "Remove", confirm: "Confirm",9    search: "Search", filter: "Filter", all: "All", none: "None", yes: "Yes", no: "No", back: "Back", open: "Open", details: "Details",10    actions: "Actions", name: "Name", state: "State", node: "Node", nodes: "Nodes", type: "Type", description: "Description", created: "Created", updated: "Updated",11    by: "by", from: "From", to: "To", view: "View", reset: "Reset", export: "Export", download: "Download", optional: "optional", unknown: "Unknown",12    notObserved: "Not observed", never: "Never", now: "Now", today: "Today", saved: "Saved", deleted: "Deleted", utc: "UTC", localTime: "local time",13  },14  nav: {15    overview: "Overview", nodes: "Nodes", services: "Services", models: "AI Models", jobs: "Jobs", network: "Network", storage: "Storage",16    alerts: "Alerts", maintenance: "Maintenance", activity: "Activity", audit: "Audit", settings: "Settings",17  },18  shell: {19    home: "home", mainNav: "Main navigation", bottomNav: "Quick navigation", more: "More", skip: "Skip to content",20    offlineBanner: "Real-time stream interrupted: the data on screen may be behind. Reconnecting automatically.",21    group: { observe: "Observe", operate: "Operate", govern: "Govern" },22    conn: {23      label: "Real-time stream", live: "Live", connecting: "Connecting…", reconnecting: "Reconnecting…", offlineSince: "Offline since {time}", closed: "Stopped",24      lastEvent: "Last event received at {time} ({topic})", help: "State of the connection to the server event stream",25    },26    cluster: {27      title: "Global cluster state", ok: "Nominal", warning: "Degraded", critical: "Critical", nodes: "{fresh}/{total} nodes fresh", stale: "{count} stale",28      offline: "{count} offline", maintenance: "{count} in maintenance", notAvailable: "Cluster state not available yet", unknown: "Cluster state unavailable",29    },30    search: { open: "Open search and commands", placeholder: "Search or run a command…" },31    palette: {32      title: "Search and commands", goTo: "Go to", commands: "Commands", results: "Results", opsMode: "Open operations-centre mode",33      searching: "Searching…", noResults: "No result for “{query}”", searchNotAvailable: "Search is not available on this server yet. Commands still work.",34      searchFailed: "Search failed. Commands still work.", hintMove: "navigate", hintOpen: "open",35      kind: { node: "Node", service: "Service", alert: "Alert", action: "Action", incident: "Incident", job: "Job", inference_server: "Inference server", maintenance_window: "Maintenance window", maintenance_note: "Maintenance note" },36    },37    notif: { label: "Firing alerts", labelCount: "Firing alerts: {count}", firing: "Firing alerts", none: "No alert is firing.", all: "View all alerts" },38    account: {39      label: "Account of {name}", profile: "Profile", security: "Passkeys and sessions", toEnglish: "Switch to English", toFrench: "Passer en français",40      toLight: "Light theme", toDark: "Dark theme", signOut: "Sign out",41    },42  },43  states: {44    freshness: { fresh: "Fresh", stale: "Stale", offline: "Offline" },45    availability: {46      available: "Available", unavailable: "Unavailable", unsupported: "Unsupported", permission_denied: "Agent access denied", stale: "Stale value",47      offline: "Offline", not_observed: "Not observed",48    },49    severity: { info: "Info", warning: "Warning", critical: "Critical" },50    service: { online: "Online", stopped: "Stopped", errored: "Errored", unknown: "Unknown" },51    action: {52      pending_approval: "Pending approval", queued: "Queued", dispatched: "Dispatched", running: "Running", succeeded: "Succeeded", failed: "Failed",53      cancelled: "Cancelled", timed_out: "Timed out", rejected: "Rejected", expired: "Expired",54    },55    job: { queued: "Queued", running: "Running", succeeded: "Succeeded", failed: "Failed", cancelled: "Cancelled", timed_out: "Timed out" },56    alert: { pending: "Pending", firing: "Firing", acknowledged: "Acknowledged", resolved: "Resolved" },57    incident: { open: "Open", mitigated: "Mitigated", resolved: "Resolved" },58    maintenance: { scheduled: "Scheduled", in_progress: "In progress", completed: "Completed", cancelled: "Cancelled" },59    category: { planned: "Planned", emergency: "Emergency", update: "Update", hardware: "Hardware", inspection: "Inspection" },60    recurrence: { none: "None", daily: "Daily", weekly: "Weekly", monthly: "Monthly" },61    role: { owner: "Owner", admin: "Admin", operator: "Operator", viewer: "Viewer" },62    criticality: { low: "Low", medium: "Medium", high: "High", critical: "Critical" },63    health: { ok: "Healthy", failing: "Failing", unknown: "Unknown", failed: "Failed", degraded: "Degraded", down: "Down", up: "Up", maintenance: "Maintenance" },64    outcome: { success: "Success", denied: "Denied", failure: "Failure" },65    nodeKind: { mac: "Mac", linux: "Linux", nas: "NAS" },66    manager: { pm2: "PM2", launchd: "launchd", systemd: "systemd", docker: "Docker" },67  },68  errors: {69    correlation: "Correlation ID", copyCorrelation: "Copy correlation ID", reference: "Reference: {id}",70    requestFailed: "The request failed", rateLimited: "Too many requests. Try again in a moment.", stepUpCancelled: "Passkey verification cancelled: the operation was not performed.",71    notAvailable: { title: "Not available yet", body: "This part of the API is not in service on this server yet. No data is shown rather than inventing some.", meta: "Server answer: 501 not_implemented" },72    unavailable: { title: "Service temporarily unavailable", body: "A server dependency (database, ingest or orchestrator) is not responding. Data cannot be loaded for now." },73    frozen: { title: "Emergency stop engaged", body: "The orchestrator is frozen: no command is issued to agents until the owner lifts the freeze." },74    forbidden: { title: "Access denied", body: "Your role does not allow viewing this resource.", bodyPermission: "You are missing the permission {permission}.", askAdmin: "An administrator can grant it in Settings → Policies." },75    network: { title: "Server unreachable", body: "The request did not reach the server. Check your connection; the application will retry." },76    notFound: { title: "Not found", body: "This resource does not exist, or is not visible to you." },77    generic: { title: "Something went wrong", body: "The operation did not complete." },78    pageNotFound: { title: "Page not found", body: "This address does not match any Command Center screen.", home: "Back to the overview" },79  },80  ui: {81    table: { selectAll: "Select all", selectRow: "Select row", sortBy: "Sort by {column}", empty: "No rows." },82    combobox: { selected: "Selection: {label}", remove: "Remove {item}", placeholder: "Choose…", none: "No match" },83    chart: {84      aria: "Chart: {title}", legend: "Legend", noData: "No data for this period.", noValue: "no data", time: "Timestamp", showChart: "Chart", showTable: "Table",85      range: "min {min} · max {max}", summary: "{label}: last value {last}, minimum {min}, average {avg}, maximum {max}.", summaryEmpty: "{label}: no data.",86      keyboardHelp: "Left and right arrows move through points, Shift moves by ten, Home and End jump to the ends.",87    },88    stale: { body: "Data may be behind.", since: "Last successful update at {time}.", refetchFailed: "Refresh failed: the data shown is the last received." },89    stamp: { updated: "Updated at", never: "Never updated" },90    qr: { tooLong: "Link too long for a QR code." },91    range: {92      label: "Period", "1h": "1h", "24h": "24h", "7d": "7d", "30d": "30d", custom: "Custom", from: "Start", to: "End", invalid: "End must be after start.", zone: "Time zone: {zone}",93      long: { "1h": "Last hour", "24h": "Last 24 hours", "7d": "Last 7 days", "30d": "Last 30 days" },94    },95    schema: {96      required: "This field is required.", min: "Minimum value: {limit}.", max: "Maximum value: {limit}.", minLength: "At least {limit} characters.", maxLength: "At most {limit} characters.",97      pattern: "Invalid format.", integer: "A whole number is expected.", number: "A number is expected.", enum: "Value not allowed.", json: "Invalid JSON.", choose: "Choose…",98      listHint: "One value per line.", jsonHint: "JSON value.",99    },100    log: { search: "Search in output", matches: { one: "{count} matching line", other: "{count} matching lines" }, copy: "Copy output", truncated: "Output truncated by the server (size limit)." },101  },102  auth: {103    title: "Sign in", lead: "Use the passkey stored on this device or in your password manager.", signIn: "Sign in with a passkey",104    noPassword: "No password: access relies on passkeys only.", help: "No account yet? Access is by invitation from an administrator. Lost your passkey? An administrator can issue a recovery link.",105    unsupported: "This browser does not support passkeys (WebAuthn). Use a recent browser.", footer: "MacLustr Command Center · restricted access",106    autofill: { label: "Passkey", hint: "Optional: place the cursor here to pick a passkey offered by the browser.", placeholder: "Choose a passkey…" },107    error: {108      cancelled: "Sign-in cancelled or timed out. No passkey was presented.", rejected: "This passkey was not accepted. It may have been removed from the account.",109      rateLimited: "Too many attempts. Wait a minute before trying again.", security: "The browser refused the operation for this site.", disabled: "This account cannot sign in (disabled).",110      generic: "Sign-in failed. Try again.",111    },112  },113  stepup: {114    title: "Confirm with your passkey", body: "This sensitive operation requires a verification less than five minutes old.", why: "Your request will resume automatically after the verification.",115    verify: "Verify with passkey", cancelled: "Verification cancelled or timed out.", failed: "Verification failed.",116  },117  setup: {118    title: "Activate your access", lead: "{inviter} invites you to join the Command Center.", abandon: "Abandon this invitation",119    steps: { label: "Steps", identity: "Identity", passkey: "Passkey" },120    identity: { heading: "Your invitation", invitedBy: "Invited by", name: "Name", handle: "Handle", role: "Role", purpose: "Purpose", expires: "Setup session valid until" },121    purpose: { new_account: "Creating a new account", link: "Applying to an existing account", recovery: "Recovering an account" },122    roleHelp: {123      owner: "every right, including critical actions and the emergency stop", admin: "manages users, agents, rules and high-criticality actions",124      operator: "day-to-day operations: acknowledging alerts, maintenance, low and medium actions", viewer: "read-only, without private data or logs",125    },126    profile: {127      name: "Display name", handle: "Handle", handleHint: "2 to 32 characters: lowercase letters, digits, dot, dash, underscore.", handleInvalid: "Invalid handle.",128      handleTaken: "This handle is already taken.", nameInvalid: "Enter a name of 1 to 80 characters.",129    },130    passkey: {131      title: "Create your passkey", lead: "Last step: your device will create a passkey bound to this account and this site.",132      point1: "The key stays on your device or in your manager; the server only receives a public key.",133      point2: "A local verification (Touch ID, Face ID, PIN) is requested at every sign-in.", point3: "You can add more passkeys in Settings so you do not depend on a single device.",134      create: "Create my passkey",135    },136    link: {137      title: "Apply the invitation to your account", lead: "{inviter} offers a new role on your existing account.", signInFirst: "First sign in to the account the invitation targets.",138      signedInAs: "Signed in as {name} (@{handle}), current role: {role}.", confirm: "I confirm applying the role {role} to my account @{handle}.", apply: "Apply to my account",139      stepUpNote: "A passkey verification may be requested again. Accounts are never merged implicitly.",140    },141    done: { title: "Access activated", body: "Welcome {name}. Your role: {role}.", continue: "Open the Command Center", recovery: "Tip: add a second passkey in Settings → Security. If you lose access, an administrator can issue a recovery link." },142    dead: {143      what: "What now?", signIn: "Go to sign-in", goneTitle: "Invitation expired or already used", goneBody: "An invitation link works only once and for a limited time. Ask the person who invited you for a new link.",144      noneTitle: "No invitation in progress", noneBody: "This page opens from an invitation link. If you already have an account, sign in.",145      rateTitle: "Too many attempts", rateBody: "Wait a minute, then ask for a new link if this one no longer works.", errorTitle: "Setup is not possible right now",146      errorBody: "The server could not process the invitation. The link may have been consumed: ask for a new one if the problem persists.",147    },148    error: {149      cancelled: "Creation cancelled or timed out. You can start the passkey creation again.", duplicate: "This device already holds a passkey for this account.", passkey: "The passkey could not be created.",150      conflict: "Conflict: this handle or passkey already exists.", wrongAccount: "This invitation targets another account than the one signed in.", generic: "The operation failed.",151    },152  },153  metrics: {154    cpu_usage: "CPU usage", cpu_user: "CPU user", cpu_system: "CPU system", load_1: "Load 1 min", load_5: "Load 5 min", load_15: "Load 15 min",155    mem_used: "Memory used", mem_total: "Installed memory", mem_wired: "Wired memory", mem_compressed: "Compressed memory", mem_pressure_level: "Memory pressure",156    mem_available_percent: "Memory available", swap_used: "Swap used", swap_total: "Swap allocated", disk_used: "Disk used", disk_total: "Volume size",157    disk_read: "Disk read", disk_write: "Disk write", net_rx: "Network receive", net_tx: "Network transmit", net_errors: "Network errors", net_latency: "Latency",158    net_loss: "Packet loss", gpu_usage: "GPU usage", gpu_mem_used: "GPU memory", thermal_pressure: "Thermal pressure", thermal_temp: "Temperature",159    power_draw: "Power draw", battery_charge: "Battery charge", uptime: "Uptime", procs_count: "Processes", agent_cpu: "Agent CPU", agent_rss: "Agent memory",160    family: { cpu: "Processor", memory: "Memory", disk: "Disk", network: "Network", gpu: "GPU", thermal: "Thermal and power", system: "System", agent: "Agent" },161  },162  actions: {163    target: "Target", criticality: "Criticality", type: "Action type", timeout: "Maximum duration", params: "Parameters", justification: "Justification",164    justificationRequired: "Required for this action type; it is recorded in the audit log.", justificationOptional: "Optional; it is recorded in the audit log.",165    confirmLabel: "Confirmation: type the alias of the target", confirmHint: "Target shown: {target}. The server verifies what you type.", submit: "Run action", submitForApproval: "Request approval",166    unavailable: "This action type is not enabled.", unknownType: "Action type {type} is missing from the server catalog.", lacking: "Missing permissions: {permissions}. The server will refuse the request.",167    overrideMaintenance: "Run although the node is in maintenance mode", overrideMaintenanceHint: "Explicit override, recorded in the audit log.", 168    types: {169      inventory_refresh: "Refresh inventory", diagnostic_run: "Run diagnostic", service_health_check: "Check service health", service_logs_tail: "Read the log tail",170      service_restart: "Restart service", service_start: "Start service", service_stop: "Stop service", agent_restart: "Restart agent", cache_purge: "Purge a cache",171      node_maintenance_set: "Set maintenance mode", job_run: "Run a job", job_cancel: "Cancel a job", model_server_start: "Start model server", model_server_stop: "Stop model server",172      deploy_release: "Deploy a release", system_update_schedule: "Schedule a system update", system_reboot: "Reboot node", system_shutdown: "Shut down node",173    },174    lock: { node: "the node", service: "the service", job: "the job", none: "none" },175    requirements: {176      title: "What the server will require", prechecks: "Server-side pre-checks on submission (known target, agent online, declared capability, node not in maintenance).",177      stepUp: "Passkey verification less than 5 minutes old.", justification: "Written justification.", confirmation: "Typing the alias of the target.",178      approval: "Approval by a second person before execution.", lock: "Exclusive lock on {scope} while running.",179    },180    toast: { created: "Action started: {title}", pendingApproval: "Request sent: pending approval" },181    disabled: { noRead: "Missing permission: actions.read.", notAvailable: "The action catalog is not available on this server yet.", catalogError: "The action catalog could not be loaded.", unknown: "Action type missing from the catalog." },182    error: {183      precheck_failed: "Pre-check refused by the server", confirmation_mismatch: "The confirmation does not match the alias of the target.", justification_required: "A justification is required.",184      agent_offline: "The agent of the target node is offline or revoked.", capability_missing: "The agent does not declare the capability required for this action.", node_in_maintenance: "The target node is in maintenance mode.",185      action_unavailable: "This action type is not enabled.", target_locked: "Another action holds the lock of this target.", idempotency_conflict: "This submission was already sent with different content. Close the dialog and start again.",186      orchestrator_frozen: "Emergency stop engaged: no command is issued.", forbidden: "Insufficient permission", step_up_required: "Passkey verification cancelled: nothing was started.",187      not_implemented: "Actions are not available on this server yet.", network: "Server unreachable: nothing proves the request left. Retrying resends the same request (same idempotency key).",188      validation_failed: "Invalid request.", rate_limited: "Too many requests. Try again in a moment.", viewHolder: "View the running action",189    },190    view: {191      title: "Action", details: "Request", progress: "Progress", output: "Output", result: "Result", node: "Node", requestedBy: "Requested by", someone: "unknown", none: "none", notYet: "not yet",192      deadline: "Deadline", job: "Linked job", streaming: "Streaming live", noOutputYet: "No output yet.", noOutput: "This action produced no output.",193      outputForbidden: "Reading the output requires the permission logs.read.", outputError: "The output could not be loaded.",194      outcomeUnknown: "Outcome unknown", outcomeUnknownBody: "The command was delivered to the agent, but no result came back before the deadline. It may have run, partially or not at all. It is never re-issued automatically: check the real state of the target before running it again.",195      cancel: "Cancel action", cancelTitle: "Cancel this action?", cancelBody: "An action already delivered to the agent may still complete. Cancelling is a request.", cancelSent: "Cancellation requested", cancelRequested: "Cancellation requested at {time}.",196      pendingApprovalBody: "This critical action awaits approval by a second person.", approverNote: "You can approve it if you are not the requester.", notApprover: "You do not have the permission actions.approve.",197      approve: "Approve", reject: "Reject", approveTitle: "Approve the action", rejectTitle: "Reject the action", decisionBody: "{type} on {target}", comment: "Comment", reason: "Reason for rejection",198      approved: "Action approved", rejected: "Action rejected", rejectionReason: "Reason for rejection:",199      step: { created: "Requested by {name} ({via})", awaitingApproval: "Awaiting approval", approved: "Approved by {name}", rejected: "Rejected", queued: "Queued", started: "Execution started", finished: "Finished: {state}" },200    },201  },202};203
Files main
Menu

Theme