const en = {
  common: {
    auto: "Auto",
    manual: "Manual",
    cancel: "Cancel",
    retry: "Retry",
    load: "Load",
    loading: "Loading...",
    running: "Running...",
    creating: "Creating...",
    processing: "Processing",
    getStarted: "Get Started",
    next: "Next",
    skip: "Skip",
    exportMd: "Export MD",
    confidence: "Confidence",
    status: "Status",
    title: "Title",
    summary: "Summary",
    source: "Source",
    type: "Type",
    accepted: "Accepted",
    rejected: "Rejected",
    pending: "Pending",
    completed: "Completed",
    failed: "Failed",
    save: "Save",
    saving: "Saving...",
    delete: "Delete",
  },
  nav: {
    dashboard: "Dashboard",
    assistant: "Strategic Assistant",
    workbench: "Decision Workbench",
    simulation: "Simulation",
    debate: "Debate Center",
    evidence: "Intelligence",
    predictions: "Predictions",
    monitoring: "Monitoring",
    providers: "Providers",
    sources: "Sources",
    agents: "Agents",
    batch: "Batch Tasks",
  },
  layout: {
    platform: "Decision Intelligence Platform",
    systemOnline: "System Online",
    user: "User",
    collapseSidebar: "Collapse sidebar",
    expandSidebar: "Expand sidebar",
  },
  notifications: {
    title: "Notifications",
    empty: "No notifications yet",
    open: "Open",
  },
  language: {
    switchToEnglish: "Switch to English",
    switchToChinese: "Switch to Chinese",
  },
  dashboard: {
    welcome: "Welcome to 明鉴",
    tagline: "Evidence-driven intelligence platform — see clearly, judge wisely",
    taglineSubtitle: "Monitor predictions, track accuracy, and manage strategic intelligence at a glance.",
    activeSessions: "Active Sessions",
    strategicAnalyses: "strategic analyses",
    predictionAccuracy: "Prediction Accuracy",
    queueHealth: "Queue Health",
    pendingItems: "pending items",
    watchRules: "Watch Rules",
    activeMonitors: "active monitors",
    quickActions: "Quick Actions",
    newAnalysis: "New Analysis",
    newAnalysisDescription: "Start a new strategic analysis with real-time evidence gathering",
    runSimulation: "Run Simulation",
    runSimulationDescription: "Execute scenario simulations with branching and comparison",
    startDebate: "Start Debate",
    startDebateDescription: "Initiate multi-agent debate for decision validation",
    predictionScoreboard: "Prediction Scoreboard",
    totalHypotheses: "Total Hypotheses",
    confirmed: "Confirmed",
    refuted: "Refuted",
    pending: "Pending",
    vsHuman: "vs Human",
    recentSessions: "Recent Sessions",
    viewAll: "View all",
    noSessions: "No sessions yet",
    noSessionsDescription: "Start a new strategic analysis to see your sessions here",
    brier: "Brier",
    sessionName: "Session Name",
    createdAt: "Created At",
  },
  assistant: {
    title: "Strategic Assistant",
    subtitle: "AI-powered analysis with multi-agent debate and evidence synthesis",
    missionInput: "Mission Input",
    topicPlaceholder: "Enter your analysis topic...",
    quickStartExamples: "Quick Start Examples",
    domain: "Domain",
    autoDetect: "Auto-detect",
    corporate: "Corporate",
    military: "Military",
    ticks: "Ticks",
    subjectName: "Subject Name",
    subjectPlaceholder: "Optional subject name",
    runAnalysis: "Run Analysis",
    recentSessions: "Recent Sessions",
    noSessions: "No sessions yet",
    process: "Process",
    reasoning: "Reasoning",
    sources: "Sources",
    panel: "Panel",
    debate: "Debate",
    liveReasoning: "Live Reasoning",
    waitingForAnalysis: "Waiting for analysis",
    waitingForAnalysisDescription: "Run an analysis to see the AI reasoning process in real-time",
    noSources: "No sources yet",
    noSourcesDescription: "Sources will appear here as the AI gathers evidence",
    panelDiscussion: "Panel Discussion",
    noPanelDiscussion: "No panel discussion yet",
    noPanelDiscussionDescription: "Panel members will discuss findings during analysis",
    debateTrace: "Debate Trace",
    noDebate: "No debate yet",
    noDebateDescription: "Debate rounds will appear when AI models discuss the analysis",
    analysisComplete: "Analysis Complete",
    keyFindings: "Key Findings",
    simulation: "Simulation",
    verdict: "Verdict",
    step: "Step",
    recommendation: "Recommendation",
    round: "Round",
    roleAdvocate: "Advocate",
    roleChallenger: "Challenger",
    roleArbitrator: "Arbitrator",
    onboardingTitle: "Welcome to PlanAgent",
    onboardingSubtitle: "Your AI-powered decision intelligence platform",
    onboardingEnterTopic: "Enter Your Topic",
    onboardingEnterTopicDesc: "Describe the strategic question you want to analyze",
    onboardingAiAnalysis: "AI Analysis",
    onboardingAiAnalysisDesc: "Watch as AI agents gather evidence and analyze in real-time",
    onboardingDebate: "Multi-Agent Debate",
    onboardingDebateDesc: "Expert agents debate different perspectives",
    onboardingInsights: "Get Insights",
    onboardingInsightsDesc: "Receive comprehensive analysis with recommendations",
    exampleTaiwan: "Analyze Taiwan Strait developments over the next 3 years",
    exampleEv: "Assess investment opportunities in the EV industry",
    exampleSemiconductor: "Analyze global semiconductor supply chain risks",
    exampleMiddleEast: "Assess geopolitical risks in the Middle East",
    sessionDetail: "Session Detail",
    backToAnalysis: "Back to Analysis",
    dailyBriefs: "Daily Briefs",
    recentRuns: "Recent Runs",
    noDailyBriefs: "No daily briefs yet",
    noRecentRuns: "No analysis runs yet",
    createdAt: "Created",
    sessionInfo: "Session Info",
    topic: "Topic",
    autoRefresh: "Auto Refresh",
    enabled: "Enabled",
    disabled: "Disabled",
    clickSessionToView: "Click a session on the left to view details",
    runResult: "Analysis Result",
    briefSummary: "Brief Summary",
    debateVerdict: "Debate Verdict",
    sseError: "Analysis stream error",
    analysisCompleteToast: "Analysis complete",
    viewFullDebate: "View Full Debate",
    confidence: "Confidence",
    actionRecommendations: "Action Recommendations",
    actionItems: "Action Items",
    recommendations: "Recommendations",
    riskFactors: "Risk Factors",
    alternativeScenarios: "Alternative Scenarios",
    expectedOutcome: "Expected Outcome",
    debateDetails: "Debate Details",
    winningArguments: "Winning Arguments",
    decisiveEvidence: "Decisive Evidence",
    minorityOpinion: "Minority Opinion",
    conditions: "Conditions",
    latestReport: "Latest Report",
    keyPoints: "Key Points",
    ingestStarted: "Ingest Complete",
    simulationStarted: "Simulation Complete",
    reanalyze: "Re-analyze",
    pause: "Pause",
    resume: "Resume",
    paused: "Paused",
    streaming: "Streaming",
    eventsPending: "events pending",
    applyAll: "Apply All",
    applyAllImmediately: "Apply all events immediately",
    playSequential: "Play Sequential",
    playOneByOne: "Play one event per second",
    discard: "Discard",
    discardAndContinue: "Discard cached events and continue",
    compactMode: "Compact Mode",
    defaultMode: "Default Mode",
    viewHistory: "View History",
    viewDetails: "View Details",
    viewSources: "View Sources",
  },
  process: {
    analysisProcess: "Analysis Process",
    analysisComplete: "Analysis complete",
    show: "Show",
    hide: "Hide",
    modelOutput: "Model Output",
    details: "details",
    sources: "Sources",
    multiAgentDebate: "Multi-Agent Debate",
    debateDescription: "AI models debating different perspectives",
    round: "Round",
    confidence: "Confidence",
    arguments: "Arguments",
    rebuttals: "Rebuttals",
    processingAnalysis: "Processing analysis...",
    stages: {
      ingest: "Data Collection",
      extract: "Information Extraction",
      analyze: "Deep Analysis",
      simulate: "Scenario Simulation",
      debate: "Multi-Agent Debate",
      synthesis: "Report Synthesis",
    },
    roleDescriptions: {
      advocate: "Supporting the analysis",
      challenger: "Questioning assumptions",
      arbitrator: "Making final judgment",
    },
  },
  simulation: {
    title: "Simulation",
    subtitle: "Run and analyze scenario simulations with branching",
    newSimulation: "New Simulation",
    createNewSimulation: "Create New Simulation",
    domain: "Domain",
    corporate: "Corporate",
    military: "Military",
    timeSteps: "Time Steps",
    createAndRun: "Create & Run",
    simulationRuns: "Simulation Runs",
    ticks: "ticks",
    noSimulations: "No simulations yet",
    noSimulationsDescription: "Create a new simulation to get started",
    kpiComparator: "KPI Comparator",
    overall: "Overall",
    timeline: "Timeline",
    geoAssets: "Geo Assets",
    selectRun: "Select a simulation run",
    selectRunDescription: "Choose a simulation from the list to view its workbench and analysis results",
    actorTemplate: "Actor Template",
  },
  evidence: {
    title: "Intelligence Center",
    subtitle: "Browse evidence, claims, knowledge graph, and source reputation",
    evidence: "Evidence",
    claims: "Claims",
    knowledgeGraph: "Knowledge Graph",
    sourceReputation: "Source Reputation",
    calibration: "Calibration",
    statement: "Statement",
    confidence: "Confidence",
    status: "Status",
    noEvidence: "No evidence yet",
    noEvidenceDescription: "Evidence will appear here as the system ingests data",
    noClaims: "No claims yet",
    noClaimsDescription: "Claims will be extracted from evidence automatically",
    searchPlaceholder: "Search knowledge graph...",
    searchResults: "Search Results",
    nodes: "nodes",
    edges: "edges",
    reputation: "Reputation",
    confirmed: "Confirmed",
    refuted: "Refuted",
    noReputation: "No reputation data",
    noReputationDescription: "Source reputation will be tracked as evidence is validated",
    totalHypotheses: "Total Hypotheses",
    accuracy: "Accuracy",
    brierScore: "Brier Score",
    vsHuman: "vs Human",
    loadingCalibration: "Loading calibration data...",
  },
  debate: {
    title: "Debate Center",
    subtitle: "View multi-agent debate traces and verdicts",
    loadDebate: "Load Debate",
    debateIdPlaceholder: "Enter debate ID...",
    debateNotFound: "Debate not found",
    trigger: "Trigger",
    rounds: "Rounds",
    finalVerdict: "Final Verdict",
    outcome: "Outcome",
    confidence: "Confidence",
    winningArgs: "Winning Args",
    winningArguments: "Winning Arguments",
    minorityOpinion: "Minority Opinion",
    round: "Round",
    enterDebateId: "Enter a debate ID",
    enterDebateIdDescription: "Load a debate to view the full multi-agent discussion trace",
    position: "Position",
    arguments: "Arguments",
    rebuttals: "Rebuttals",
    advocate: "Advocate",
    challenger: "Challenger",
    arbitrator: "Arbitrator",
    recentDebates: "Recent Debates",
    total: "debates",
    inProgress: "Debate in Progress",
    roundProgress: "Round {round}/4",
    roleAdvocate: "Advocate",
    roleChallenger: "Challenger",
    roleArbitrator: "Arbitrator",
    speaking: "{role} speaking...",
    verdictPending: "Awaiting verdict...",
    startLiveDebate: "Start Live Debate",
    interrupt: "Interrupt",
    interruptPlaceholder: "Enter your supplementary info or direction correction...",
    interruptType: "Interrupt Type",
    supplementaryInfo: "Supplementary Info",
    directionCorrection: "Direction Correction",
    newEvidence: "New Evidence",
    generalInterrupt: "General Comment",
    interruptSuccess: "Interrupt submitted, will be injected in the next debate round",
    interruptFailed: "Failed to submit interrupt",
    alreadyInterrupted: "Interrupted",
    viewReplay: "View Replay",
    replay: "Debate Replay",
    replayLoading: "Loading replay...",
    replayError: "Failed to load replay",
    roundLabel: "Round {round}",
    interruptEvent: "Interrupt Event",
    positionChange: "Position Change",
    stanceSupport: "Support",
    stanceOppose: "Oppose",
    stanceNeutral: "Neutral",
  },
  welcome: {
    open: "Open welcome guide",
    title: "Welcome to PlanAgent",
    subtitle: "Your AI-Powered Decision Intelligence Platform",
    strategicAssistant: "Strategic Assistant",
    strategicAssistantDescription: "Enter any topic and get real-time AI analysis with multi-agent debate",
    scenarioSimulation: "Scenario Simulation",
    scenarioSimulationDescription: "Run what-if simulations with branching timelines and KPI tracking",
    evidenceIntelligence: "Evidence Intelligence",
    evidenceIntelligenceDescription: "Gather, verify, and synthesize evidence from multiple sources",
    step1Title: "Welcome to 明鉴",
    step1Description: "Evidence-driven decision intelligence platform to help you see clearly and decide wisely",
    step2Title: "Core Features",
    step2Description: "Strategic Assistant, Debate System, Scenario Simulation — integrated decision support",
    step3Title: "9 AI Agents",
    step3Description: "Comprehensive analysis from different roles and perspectives",
    step4Title: "Real-time Monitoring",
    step4Description: "Continuous evidence collection and analysis updates, stay informed",
    step5Title: "Quick Start",
    step5Description: "Choose an example question to experience the power of 明鉴",
    agentsTitle: "Agent Introduction",
    previousStep: "Previous",
    nextStep: "Next",
    skipGuide: "Skip",
    finishGuide: "Get Started",
    stepProgress: "Step",
  },
  predictions: {
    title: "Predictions",
    subtitle: "Track prediction version evolution",
    series: "Prediction Series",
    versions: "Versions",
    timeline: "Timeline",
    probability: "Probability",
    confidence: "Confidence",
    triggerType: "Trigger Type",
    status: "Status",
    noPredictions: "No predictions yet",
    versionHistory: "Version History",
  },
  workbench: {
    title: "Decision Workbench",
    subtitle: "Unified decision workspace",
    description: "Review the current recommendation, confidence, evidence, forecasts, and risk posture in one place.",
    selectSession: "Select session",
    selectSessionPlaceholder: "Choose a session...",
    currentRecommendation: "Current Recommendation",
    keyFindings: "Key Findings",
    riskFactors: "Risk Factors",
    recommendations: "Recommendations",
    evidenceStrength: "Evidence Strength",
    evidenceCount: "Evidence",
    claimsCount: "Claims",
    confidence: "Confidence",
    evidenceItems: "evidence items",
    claimItems: "claim items",
    integratedConfidence: "integrated confidence",
    decisiveEvidence: "Decisive Evidence",
    predictionTimeline: "Prediction Timeline",
    versions: "versions",
    alternativeScenarios: "Alternative Scenarios",
    decisionActions: "Decision Actions",
    adoptRecommendation: "Adopt Recommendation",
    deferAction: "Defer Action",
    needMoreInfo: "Need More Info",
    adopt: "Adopted",
    defer: "Deferred",
    needMoreInfoDecision: "Needs More Info",
    adopted: "Adopted",
    deferred: "Deferred",
    needsMoreInfo: "Needs More Info",
    adoptedToast: "Decision marked as adopted",
    deferredToast: "Decision marked as deferred",
    moreInfoToast: "Decision marked as needing more information",
    savingDecision: "Saving...",
    decisionSaveFailed: "Failed to save decision",
    decisionNote: "Decisions are written to the user decision record and can later be updated with outcomes for closed-loop tracking.",
    noSessions: "No sessions yet",
    noSessionsDescription: "Run an analysis in Strategic Assistant to populate the workbench.",
    noFindings: "No findings available.",
    noRisks: "No risk factors available.",
    noRecommendations: "No recommendations available.",
    noPredictions: "No prediction versions available.",
    noScenarios: "No alternative scenarios available.",
    loadFailed: "Failed to load workbench data",
    refreshAdvice: "Refresh Advice",
    refreshInProgress: "Refreshing...",
    refreshComplete: "Advice Updated",
    lastRefresh: "Last refresh",
    reAnalyze: "Re-analyze",
  },
  monitoring: {
    title: "Monitoring",
    subtitle: "Real-time system monitoring",
    watchRules: "Watch Rules",
    recentChanges: "Recent Changes",
    revisionJobs: "Revision Jobs",
    predictions: "Prediction Stats",
    eventFeed: "Event Feed",
    noEvents: "No events yet",
    healthy: "Healthy",
    unhealthy: "Unhealthy",
    lastPoll: "Last Poll",
    failures: "Failures",
    active: "Active",
    superseded: "Superseded",
    verified: "Verified",
    calibration: "Calibration Overview",
    ruleAccuracyDistribution: "Rule Accuracy Distribution",
    sourceTrustDistribution: "Source Trust Distribution",
    avgCalibrationScore: "Average Calibration Score",
    avgTrust: "Average Trust",
    high: "High",
    medium: "Medium",
    low: "Low",
  },
  commandPalette: {
    title: "Command Palette",
    description: "Search for a command or page...",
    placeholder: "Type a command or search...",
    empty: "No results found",
    navigation: "Navigation",
    actions: "Actions",
    recent: "Recent",
    toggleTheme: "Toggle Theme",
    switchLanguage: "Switch Language",
    currentDark: "Current: Dark",
    currentLight: "Current: Light",
    currentSystem: "Current: System",
  },
  providers: {
    title: "Model Providers",
    subtitlePrefix: "Configure AI model access",
    configured: "configured",
    providers: "providers",
    configuredBadge: "Configured",
    notConfiguredBadge: "Not configured",
    editHint: "Click to configure",
    apiFormat: "API Format",
    openaiCompatible: "OpenAI compatible",
    anthropicNative: "Anthropic native",
    model: "Model",
    apiKeyPlaceholder: "Enter API Key...",
    getApiKey: "Get API Key",
    chooseModelPlaceholder: "Choose an available model after testing",
    modelInputPlaceholder: "Available models load after testing",
    testToLoadModels: "Enter API Key and click \"Test connection\" to auto-load available models",
    testing: "Testing connection...",
    testConnection: "Test connection",
    connectionSuccess: "Connection succeeded",
    latency: "Latency",
    modelsAvailable: "models available",
    connectionFailed: "Connection failed",
    customProvider: "Custom Provider",
    customProviderDescription: "Enter any Base URL + API Key",
    customProviderSubtitle: "Use any OpenAI-compatible or Anthropic-format endpoint",
    providerName: "Provider Name",
    providerNamePlaceholder: "Example: My Local LLM / Internal Model",
    requiredFields: "Please enter provider name, Base URL, and API Key",
    deleteConfirmPrefix: "Delete configuration for",
    saveFailed: "Save failed",
    hintTitle: "Tip:",
    hint: "Configure just one provider to start. Unconfigured slots will automatically fall back to configured providers. All providers use OpenAI-compatible format (/chat/completions), and Anthropic also supports native format. You can also add any compatible endpoint with Custom Provider.",
  },
  agent: {
    title: "Agent Work Panel",
    newsAgent: "News Agent",
    socialAgent: "Social Agent",
    dataAgent: "Data Agent",
    webAgent: "Web Agent",
    searching: "Searching",
    completed: "Completed",
    failed: "Failed",
    collectedItems: "items collected",
    clickToExpand: "Click to view details",
  },
  update: {
    newResults: "New analysis results available",
    predictionUpdated: "Prediction updated",
    debateCompleted: "New debate completed",
    viewNow: "View Now",
    dismiss: "Dismiss",
  },
  sources: {
    title: "Data Sources",
    subtitle: "View source reputation scores and manage custom data sources",
    reputation: "Reputation Scores",
    customSources: "Custom Sources",
    sourceName: "Name",
    sourceType: "Type",
    endpointUrl: "Endpoint URL",
    reputationScore: "Reputation Score",
    noiseRate: "Noise Rate",
    addSource: "Add Source",
    editSource: "Edit Source",
    deleteSource: "Delete Source",
    deleteConfirm: "Are you sure you want to delete this source?",
    noSources: "No custom sources yet",
    noSourcesDescription: "Add custom data sources to extend data collection",
    noReputation: "No reputation data",
    noReputationDescription: "Source reputation will be tracked as data is validated",
    namePlaceholder: "Enter source name",
    endpointPlaceholder: "Enter endpoint URL",
    configJson: "Config JSON (optional)",
    configPlaceholder: '{"key": "value"}',
    configInvalid: "Invalid JSON format",
    enabled: "Enabled",
    disabled: "Disabled",
    searchPlaceholder: "Search sources...",
  },
  agents: {
    title: "Agent Management",
    subtitle: "View system default agents and manage custom agent roles",
    defaultAgents: "Default Agents",
    defaultAgentsDescription: "Built-in system agent roles, not editable",
    customAgents: "Custom Agents",
    customAgentsDescription: "Create and manage custom agent roles",
    addAgent: "Add Agent",
    editAgent: "Edit Agent",
    deleteConfirm: "Are you sure you want to delete this custom agent?",
    noCustomAgents: "No custom agents yet",
    noCustomAgentsDescription: "Add custom agents to extend analysis capabilities",
    agentName: "Chinese Name",
    agentNameEn: "English Name",
    agentIcon: "Icon Emoji",
    agentDescription: "Description",
    priority: "Priority",
    priorityHigh: "High Priority",
    priorityLow: "Low Priority",
    roleKey: "Role Key",
    iconPlaceholder: "e.g. 🔍",
    namePlaceholder: "e.g. Industry Analyst",
    nameEnPlaceholder: "e.g. Industry Analyst",
    descriptionPlaceholder: "Enter agent description...",
    customBadge: "Custom",
    defaultBadge: "Default",
    agentsCount: "agents",
  },
  batch: {
    title: "Batch Tasks",
    subtitle: "Submit multiple proposals for parallel debate evaluation",
    newBatch: "New Batch Task",
    createNewBatch: "Create Batch Task",
    batchTitle: "Task Title",
    batchTitlePlaceholder: "Enter batch task title...",
    decisionPoint: "Decision Point",
    decisionPointPlaceholder: "Describe the decision to be made...",
    proposals: "Proposals",
    addProposal: "Add Proposal",
    proposalTitle: "Proposal Title",
    proposalTitlePlaceholder: "Enter proposal title...",
    proposalDescription: "Proposal Description",
    proposalDescriptionPlaceholder: "Describe the proposal in detail...",
    removeProposal: "Remove",
    submit: "Submit Batch Task",
    submitting: "Submitting...",
    progress: "Progress",
    completed: "Completed",
    failed: "Failed",
    pending: "Pending",
    processing: "Processing",
    cancelled: "Cancelled",
    partial: "Partial",
    cancel: "Cancel Task",
    cancelConfirm: "Are you sure you want to cancel this batch task? Sub-tasks that haven't started will be cancelled.",
    cancelSuccess: "Batch task cancelled",
    cancelFailed: "Cancel failed",
    submitSuccess: "Batch task submitted",
    submitFailed: "Submit failed",
    subTaskResults: "Sub-task Results",
    verdict: "Verdict",
    confidence: "Confidence",
    resultSummary: "Result Summary",
    errorMessage: "Error Message",
    noBatches: "No batch tasks yet",
    noBatchesDescription: "Create a batch task to evaluate multiple proposals simultaneously",
    viewDetail: "View Detail",
    batchHistory: "Task History",
    progressOverview: "Progress Overview",
    proposalCount: "proposals",
    atLeastOneProposal: "At least one proposal is required",
    titleRequired: "Task title is required",
    decisionPointRequired: "Decision point is required",
    proposalTitleRequired: "Proposal title is required",
    proposalDescRequired: "Proposal description is required",
  },
} as const;

export default en;
