import { workflowEditorEnglish } from "./workflowEditorEn";

export const englishResources = {
  translation: {
    app: {
      title: "Kent",
      subtitle: "Workflow remote control",
      home: "Home",
      back: "Back",
      forward: "Forward",
      toggleTheme: "Toggle theme",
      backHome: "Back to Home",
      update: {
        available: "Update",
        installing: "Updating…",
        installingPercent: "Updating… {{percent}}%",
        retry: "Retry",
        installAria: "Install the available update and restart",
        dismiss: "Not now",
      },
      version: "Version",
      auth: "Auth",
      unknown: "Unknown",
      available: "Available",
      unavailable: "Unavailable",
      none: "None",
      close: "Close",
      popOut: "Open in new window",
      popOutError: "Could not open the pop-out window",
      inboxPrevious: "Previous inbox item",
      inboxNext: "Next inbox item",
      invalidNativeDialogTitle: "Invalid native dialog",
      invalidNativeDialogBody:
        "This dialog link is missing required delete context. Close it and try again from the main window.",
      resizeSidebar: "Resize sidebar",
      cancel: "Cancel",
      confirm: "Confirm",
      retry: "Try again",
      collapse: "Collapse",
      expand: "Expand",
      loadingMore: "Loading more",
      disconnected: "Server disconnected. Cached data remains visible; mutations are disabled.",
      connected: "Connected",
      reconnecting: "Reconnecting",
      readOnly: "Read-only until connection returns.",
      attention: {
        open: "Open",
        questionTitle: "Question",
        approvalTitle: "Action required",
        interruptedRunTitle: "Run interrupted",
        questionFallback: "question from agent",
        approvalFallback: "action required",
        interruptedRunFallback: "run interrupted",
        permissionDeniedTitle: "Native notifications are disabled",
        permissionDeniedBody: "Kent will keep attention notifications inside the app.",
      },
    },
    startup: {
      loadingTitle: "Connecting to Kent service",
      loadingBody: "Checking readiness and authentication state.",
      readyTitle: "Kent service ready",
      errorTitle: "Startup blocked",
      updateTitle: "Update Kent",
      unknownTitle: "Unexpected startup failure",
      unknownBody: "Check local GUI logs and retry after the service is healthy.",
      unknownFailure: "Unknown startup failure",
      readinessFailed: "Readiness check failed.",
      clientProtocol: "Client protocol {{protocol}}.",
      serverProtocol: "Server protocol {{protocol}}.",
      updateSameBuild: "Update Kent CLI/service and desktop app from the same build.",
    },
    serverSetup: {
      title: "Kent needs a running server",
      body: "The desktop app connects to the Kent server, which installs separately. Follow the setup guide to install and start it, then check again.",
      checkAgain: "Check again",
      openDocs: "Open setup guide",
      detailLabel: "Connection error",
    },
    home: {
      title: "Projects",
      emptyTitle: "No projects yet",
      emptyBody: "Create or attach a workspace to start tracking workflow tasks.",
      projectsPane: "Projects",
      attentionPane: "Inbox",
      newProject: "New Project",
      createProject: "Create project",
      projectName: "Project name",
      projectKey: "Project key",
      workspaceRoot: "Workspace root",
      chooseWorkspace: "Choose workspace",
      workspacePickerError: "Workspace picker failed",
      workspacePlanError: "Workspace check failed",
      projectCreateWindowError: "Project creation window failed",
      workspaceSelectionRequired: "Choose an existing project",
      workspaceSelectionRequiredBody:
        "This workspace is already linked to Kent projects. Open one from the project list instead of creating another.",
      boundWorkspace: "Workspace already belongs to a project. Opening existing project.",
      unboundWorkspace: "Workspace is unbound. Create a project before opening board.",
      noAttentionBody: "Blocked tasks and approvals will appear here.",
      primaryWorkspace: "Primary workspace",
      openProject: "Open project",
      editProject: "Edit {{name}}",
    },
    projectEdit: {
      title: "Project",
      loadingTitle: "Loading project",
      missingProject: "Project edit data is unavailable.",
      back: "Back",
      name: "Name",
      taskKey: "Task key",
      defaultWorkspace: "Default workspace",
      default: "Default",
      makeDefault: "Make default",
      makeDefaultWorkspace: "Make {{path}} the default workspace",
      saveName: "Save",
      saveDefault: "Save default",
      workspaces: "Workspaces",
      workspacesHelp:
        "Folders on the server where work happens, usually repositories. Tasks can each start in a different workspace. One primary workspace is the default.",
      attachWorkspace: "Attach workspace",
      chooseWorkspace: "Choose workspace to attach",
      noWorkspaces: "No workspaces linked to this project.",
      filesStayOnDisk: "Files stay on disk",
      workspaceAlreadyLinked: "Workspace is already linked to this project.",
      workspaceAttached: "Workspace linked.",
      workspaceUnlinked: "Workspace unlinked.",
      projectSaved: "Project saved.",
      defaultWorkspaceSaved: "Default workspace saved.",
      workspaceUnlinkBlocked: "Workspace cannot be unlinked yet.",
      unlinkWindowError: "Workspace unlink window failed",
      unlinkWorkspace: "Unlink {{path}}",
      unlinkTitle: "Unlink workspace?",
      unlinkBody:
        "This removes the workspace from Kent app state only. Files stay on disk, completed history remains readable, and active work blocks unlink.",
      unlinkConfirm: "Unlink workspace",
      deleteProject: "Delete project",
      deleteTitle: "Delete project?",
      deleteBody:
        "Delete this Kent project and its tasks/sessions from Kent. Workspace files, repos, worktrees, and reusable workflows stay on disk.",
      deleteConfirm: "Delete project",
      deleteBlocked: "Project cannot be deleted yet.",
      deleteDeleted: "Project deleted",
      deleteWindowError: "Project delete window failed",
      deleteCommittedNotifyError:
        "Project was deleted, but the main window could not be updated: {{message}}",
      deleteCommittedCloseError: "Project was deleted, but this dialog could not close: {{message}}",
    },
    board: {
      title: "Workflow board",
      menu: "Board menu",
      workflowPicker: "Workflows",
      newTask: "New Task",
      backlog: "Backlog",
      done: "Done",
      noWorkflowTitle: "No workflows yet",
      noWorkflowBody: "Set up a valid project workflow from CLI, agent, or API before creating tasks.",
      dropToStart: "Drop here to start automation",
      expandColumn: "Expand {{name}}",
      taskCount: "{{count}} tasks",
      workspace: "Workspace",
      resume: "Resume",
      interrupt: "Interrupt",
      detail: "Open task detail",
      dropRejected: "Task drop ignored",
      dropRejectedBody: "This card cannot be dropped here.",
      loadFailed: "Board refresh failed",
      cardsLoadFailed: "Task cards failed to load",
      navigationFailed: "Board navigation failed",
      startFailed: "Task start failed",
      moveFailed: "Task move failed",
      moveRunInterrupted: "Workflow run interrupted",
      moveRunInterruptedBody: "A run for task {{taskID}} stopped after the move. Open the task for details or resume it.",
      deleteTask: "Delete",
      deleteTaskTitle: "Delete task?",
      deleteTaskBody: "This will permanently delete this task and all associated task data.",
      deleteTaskConfirm: "Delete",
      deleteTaskWindowError: "Task delete failed",
      deleteTaskWindowCloseError: "Task deleted, but closing the window failed",
      rollbackStartTitle: "Rollback and start the agent?",
      rollbackStartBody: "Code and task changes are not rolled back",
      rollbackStartConfirm: "Rollback and start agent",
      missingInputsTitle: "Submit missing inputs",
      missingInputsBody: "Provide replacement transition output values before overriding this transition.",
      missingInputsConfirm: "Submit and start agent",
      interruptFailed: "Task interrupt failed",
      resumeFailed: "Task resume failed",
      deleteFailed: "Task delete failed",
      invalidWorkflow: "Workflow validation blocks automation. Backlog tasks and comments remain available.",
      workflowIssues: "Workflow issues",
      invalidWorkflowUnknown: "Workflow must be fixed before automation can run.",
      editWorkflow: "Edit workflow {{name}}",
      horizontalScroll: "Board horizontal scroll",
    },
    workflowEditor: workflowEditorEnglish,
    workflowLibrary: {
      title: "Workflow Library",
      homeIslandTitle: "Workflows",
      loadFailed: "Workflows failed to load",
      emptyTitle: "No workflows yet",
      emptyBody: "Create a reusable workflow definition, then link it to projects when they need it.",
      createWorkflow: "Create workflow",
      newWorkflow: "New workflow",
      createFailed: "Workflow creation failed",
      creating: "Creating workflow",
      name: "Workflow name",
      namePlaceholder: "Delivery",
      description: "Description",
      descriptionPlaceholder: "What this workflow is used for",
      linkWorkflow: "Link workflow",
      link: "Link",
      select: "Select",
      linkFailed: "Workflow link failed",
      linked: "Linked to this project",
      defaultLinked: "Default workflow",
      selected: "Selected workflow",
      reusableDefinition: "Reusable workflow definition",
      edit: "Edit",
      delete: "Delete",
    },
    task: {
      title: "Task",
      identifier: "ID",
      shortId: "Task {{id}}",
      body: "Details",
      description: "Description",
      bodyPlaceholder: "Describe task details in Markdown",
      newTitle: "Create Backlog task",
      newWindowError: "Create task window failed",
      editTitle: "Edit Backlog task",
      name: "Title",
      create: "Create task",
      save: "Save changes",
      saveTitle: "Save title",
      project: "Project",
      properties: "Properties",
      sourceWorkspace: "Source workspace",
      onlyOneWorkspaceLinked: "Only one workspace is linked right now.",
      workspace: "Workspace",
      workflow: "Workflow",
      source: "Source",
      sourceWorkspaceLocked: "Source workspace locked after start.",
      validationError: "Task validation failed",
      start: "Start task",
      cancel: "Cancel task",
      cancelConfirmTitle: "Cancel task?",
      comments: "Comments",
      inbox: "Inbox",
      noInbox: "No current Inbox blockers.",
      addComment: "Add comment",
      editComment: "Edit comment",
      submitComment: "Submit comment",
      saveComment: "Save comment",
      deleteComment: "Delete comment",
      commentSaveFailed: "Comment save failed",
      commentDeleteFailed: "Comment delete failed",
      commentBody: "Comment",
      activity: "Activity",
      activityCount: "{{count}} activity items",
      noActivityTitle: "No activity yet",
      noCommentsTitle: "No comments yet",
      runs: "Runs",
      sessions: "Sessions",
      transitions: "Transitions",
      openInCli: "Open in CLI",
      openScript: "Open script",
      scriptPathUnavailable: "No script path is available.",
      cliCommandCopied: "Copied command to clipboard",
      cliCommandUnavailable: "No task session is available yet.",
      question: "Question",
      interrupted: "Interrupted",
      copyInterruptionDetail: "Copy interruption details",
      interruptionDetailCopied: "Copied interruption details",
      interruptionDetailCopyFailed: "Could not copy interruption details",
      answer: "Answer",
      answerPlaceholder: "Type answer or commentary",
      submitAnswer: "Submit answer",
      optionNumber: "Option number",
      recommended: "Recommended",
      neitherOption: "Neither",
      approval: "Approval",
      approve: "Approve",
      approvalSnapshot: "Approval snapshot",
      unavailableSnapshot: "Approval snapshot fields unavailable from server.",
      outputValues: "Output values",
      outputValueCopied: "Copied {{name}} to clipboard",
      outputValueCopyFailed: "Could not copy {{name}}",
      targetUnavailable: "Target unavailable",
      targetNodes: "Target nodes",
      commentary: "Commentary",
      staleApproval: "Stale",
      staleApprovalBody: "Workflow changed since this approval was prepared.",
      status: "Status",
      pathUnavailable: "Path unavailable",
      noDescription: "No description.",
    },
    states: {
      loading: "Loading",
      empty: "Empty",
      error: "Error",
    },
    form: {
      required: "Required",
      serverError: "Request failed",
      projectNameLength: "Use 1-80 visible characters.",
      noEdgeWhitespace: "Remove whitespace at start or end.",
      singleLine: "Use one line.",
      projectKeyLength: "Use 2-8 characters.",
      noWhitespace: "Remove whitespace.",
      projectKeyStartsWithLetter: "Start with A-Z.",
      projectKeySymbols: "Use A-Z and 0-9 only.",
    },
  },
};
