export default {
  knowledge: {
    title: '📚 Knowledge Base',
    add: '+ New Knowledge',
    tab: {
      library: 'Library',
      // inbox = pending items (candidate + pending_review); library is published-only (F-260616-02 decision a)
      inbox: 'Pending',
    },
    searchPlaceholder: 'Search title, tags, content...',
    categoryAll: 'All',
    emptyInbox: '✅ No pending items',
    emptyLibrary: '📭 No matching knowledge',
    edit: '✏️ Edit',
    publish: 'Publish',
    reject: 'Reject',
    archive: 'Archive',
    // ⑤ Operation feedback toast
    savedToast: 'Saved',
    publishedToast: 'Published to library',
    rejectedToast: 'Rejected',
    archivedToast: 'Archived',
    createdToast: 'Created, moved to pending',
    reuseCount: '🔄 Reused {n} times',
    confidenceBadge: 'Confidence: {label}',
    contentLabel: 'Content',
    tagsLabel: 'Tags',
    tagsNone: 'None',
    tagsPlaceholder: 'comma separated',
    traceTitle: '🔍 Provenance',
    traceMethod: 'Origin',
    traceSource: 'Source conversation',
    traceTime: 'Created at',
    originExtracted: '🤖 Extracted by AI',
    originManual: '✍️ Manually added',
    originUnknown: '—',
    reasoningLabel: '🤖 AI Reasoning',
    refTitle: '🔄 References ({n})',
    refEmpty: 'Not referenced yet',
    loadMore: 'Load more ({n} left)',
    lifecycleTitle: '📅 Lifecycle',
    detailEmptyHint: 'Select a knowledge on the left to view its full lifecycle',
    createTitle: 'New Knowledge',
    kindLabel: 'Type',
    titleLabel: 'Title',
    titlePlaceholder: 'Short title',
    contentPlaceholder: 'Reusable content',
    tagsFieldLabel: 'Tags (comma separated)',
    tagsFieldPlaceholder: 'Go, concurrency, context',
    confidenceLabel: 'Confidence',
    confidenceNone: 'Not set',
    create: 'Create',
    timeline: {
      extracted: 'AI extracted',
      created: 'Manually added',
      published: 'Approved',
      archived: 'Archived',
      enterReview: 'Entered review',
      referenced: 'Referenced',
      statusChanged: 'Status → {to}',
      summarySource: 'Source: {title}',
      summaryConv: 'Conversation: {title}',
    },
    status: {
      candidate: 'Pending',
      pending_review: 'Reviewing',
      published: 'Published',
      archived: 'Archived',
    },
    confidence: {
      high: 'High',
      medium: 'Medium',
      low: 'Low',
    },
    kind: {
      review_rule: 'Review Rule',
      prompt_template: 'Prompt Template',
      pitfall: 'Pitfall',
      architecture_pattern: 'Architecture Pattern',
      diagnosis: 'Diagnosis',
      deployment_note: 'Deployment Note',
      workflow_optimization: 'Workflow Optimization',
    },
    // Error fallbacks (user-visible via state.error)
    err: {
      loadFailed: 'Failed to load knowledge base',
      loadInboxFailed: 'Failed to load inbox',
      searchFailed: 'Search failed',
      createFailed: 'Failed to create knowledge',
      updateStatusFailed: 'Failed to update status',
      archiveFailed: 'Failed to archive',
      saveFailed: 'Failed to save',
      loadConfigFailed: 'Failed to load config',
      saveConfigFailed: 'Failed to save config',
      extractFailed: 'Extraction failed',
    },
  },
}
