import { TranslationKeys } from './types';

export const en: TranslationKeys = {
  // Navbar
  'navbar.features': 'Features',
  'navbar.benchmark': 'Benchmark',
  'navbar.quickstart': 'Quick Start',
  'navbar.docs': 'Docs',
  'navbar.getStarted': 'Get Started',

  // Hero
  'hero.title': 'AI Code Review',
  'hero.titleHighlight': 'Validated on Millions of Real-World Tasks',
  'hero.description': 'Open Code Review brings Alibaba\'s battle-tested code review Agent into your workflow. Connect any LLM, keep data fully private, and get review comments developers actually adopt.',
  'hero.pill1': 'Adoption Rate > 30%',
  'hero.pill2': 'Data Stays Local',
  'hero.pill3': 'Token Cost Only 1/5',
  'hero.cta1': 'Quick Start',
  'hero.cta2': 'View Benchmark',
  'hero.users': '20K+ Active Users',
  'hero.openSource': 'Fully Open Source',
  'hero.terminal': 'ocr terminal',
  'hero.badgeLabel': 'Benchmark #1',

  // Highlights
  'highlights.stat1Label': 'Active Users',
  'highlights.stat1Value': '20K+',
  'highlights.stat1Caption': 'Battle-tested inside Alibaba Group',
  'highlights.stat2Label': 'Real-World Tasks',
  'highlights.stat2Value': '1M+',
  'highlights.stat2Caption': 'Code review tasks executed',
  'highlights.stat3Label': 'Token Cost',
  'highlights.stat3Caption': 'vs. generic Agent + Skills',
  'highlights.stat4Label': 'AACR-Bench',
  'highlights.stat4Caption': 'SEM.F1 benchmark score',

  // Why Section
  'why.sectionLabel': 'Use Cases',
  'why.title': 'Who Is Open Code Review For?',
  'why.case1Title': 'Individual Developers',
  'why.case1Desc': 'Embed Open Code Review in your local AI-assisted development workflow for instant, high-quality code review feedback.',
  'why.case2Title': 'Platform Teams',
  'why.case2Desc': 'Seamlessly integrate into your internal systems with full control over data flow and review policies.',
  'why.case3Title': 'ML Researchers',
  'why.case3Desc': 'Use as a code quality verifier in RL training pipelines, providing reliable reward signals for code generation models.',

  // Features Section
  'features.sectionBadge': 'Core Features',
  'features.title': 'An Agent System Purpose-Built for Code Review',
  'features.subtitle': 'An AI Agent that reads files, searches the codebase, cross-references context, and applies fine-grained rules for deep review.',
  'features.feat1Title': 'Hybrid Architecture: Deterministic + Agent',
  'features.feat1Desc': 'Decouples deterministic engineering (task splitting, file filtering, line-number positioning, rule routing, async scheduling) from LLM Agent reasoning (risk detection, context exploration, issue classification) — engineering modules handle certainty, Agents handle semantics, optimizing quality, token cost, and speed.',
  'features.feat2Title': 'Precise Comment Positioning & Reflection',
  'features.feat2Desc': 'An independent line-level comment positioning module with a 3-tier progressive LLM strategy pinpoints each comment to exact line numbers. A separate reflection module intercepts hallucinations and knowledge drift early.',
  'features.feat3Title': 'Multi-Model Protocol Support',
  'features.feat3Desc': 'Supports both Anthropic Messages API and OpenAI Chat Completions API. Connect custom model endpoints.',
  'features.feat4Title': 'Dynamic Concurrent Processing',
  'features.feat4Desc': 'Dynamically splits sub-tasks for parallel review with configurable goroutine workers (default 8). Even large changesets complete quickly.',
  'features.feat5Title': 'Smart Memory Compression',
  'features.feat5Desc': 'Purpose-built memory compression for code review with 3-tier partitioning (frozen/compress/active) context management, breaking token limits for deep review.',
  'features.feat6Title': 'Built-in Review Rules',
  'features.feat6Desc': 'Review rules validated through massive real-world scenarios, covering 10+ languages including Java, TypeScript, Go, Python, Kotlin, C++, C, with specialized rules for NPE, thread safety, XSS, SQL injection, and more.',

  // Benchmark Section
  'benchmark.sectionLabel': 'Open Benchmark',
  'benchmark.title': 'Cross-Validated by 80+ Senior Engineers',
  'benchmark.subtitle': 'A real-world CodeReview benchmark cross-annotated by 80+ senior engineers. Open Code Review leads across F1, Precision, and Recall over generic Agent approaches.',
  'benchmark.legendOcr': 'Open Code Review',
  'benchmark.legendClaude': 'Claude Code + Skills (Generic)',
  'benchmark.colRank': 'Rank',
  'benchmark.colModel': 'Model',
  'benchmark.colSource': 'Source',
  'benchmark.colVersion': 'Version',
  'benchmark.footer': 'Benchmark cross-annotated by 80+ senior engineers · Semantic F1 metric',

  // QuickStart Section
  'quickstart.sectionLabel': 'Quick Start',
  'quickstart.title': 'Up and Running in Minutes',
  'quickstart.subtitle': 'No complex configuration. No third-party accounts needed beyond your chosen LLM provider.',
  'quickstart.step1Title': 'Install',
  'quickstart.step1Desc': 'One-command global install via npm.',
  'quickstart.step1Label1': 'Install',
  'quickstart.step1Label2': 'Verify Installation',
  'quickstart.step2Title': 'Configure',
  'quickstart.step2Desc': 'Configure your LLM info. Supports Anthropic and OpenAI-compatible protocols. Config file at ~/.opencodereview/config.json.',
  'quickstart.step2Label1': 'Configure LLM',
  'quickstart.step2Label2': 'Configure Language (default English)',
  'quickstart.step2Label3': 'Verify Configuration',
  'quickstart.step3Title': 'Run Review',
  'quickstart.step3Desc': 'Start your first code review.',
  'quickstart.zeroCfgTitle': 'Already using Claude Code? Zero extra config',
  'quickstart.zeroCfgDesc': 'If you\'ve already configured Claude Code environment variables (ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN / ANTHROPIC_MODEL), Open Code Review reads them automatically — no additional setup needed.',
  'quickstart.copy': 'Copy',

  // Docs Page
  'docs.toc': 'Table of Contents',
  'docs.overview': 'Overview',
  'docs.install': 'Install',
  'docs.config': 'ocr config',
  'docs.review': 'ocr review',
  'docs.viewer': 'ocr viewer',
  'docs.env': 'Claude Code Integration',

  'docs.overviewTitle': 'Overview',
  'docs.overviewDesc': '(short <code>ocr</code>) is an AI-powered code review CLI tool.',
  'docs.overviewFeatures': 'Core Features:',
  'docs.overviewFeat1': 'Supports workspace changes, branch diff, and single-commit review modes',
  'docs.overviewFeat2': 'Supports LLM services with Anthropic and OpenAI-compatible protocols',
  'docs.overviewFeat3': 'Concurrent review with customizable timeouts',
  'docs.overviewFeat4': 'Output format supports text and json',
  'docs.overviewFeat5': 'Zero config for Claude Code users',
  'docs.overviewFeat6': 'WebUI viewer for visualizing review results',

  'docs.installTitle': 'Install',
  'docs.installLabel': 'Install',
  'docs.installVerifyLabel': 'Verify Installation',

  'docs.configTitle': 'Configuration & Verification',
  'docs.configDesc': 'Manage CLI configuration settings, stored in <code>~/.opencodereview/config.json</code>.',
  'docs.configCommand': 'Command',
  'docs.configExample': 'Example',
  'docs.configKeys': 'Supported Config Keys',
  'docs.configKeyUrl': 'API URL',
  'docs.configKeyToken': 'API Key',
  'docs.configKeyModel': 'Model Name',
  'docs.configKeyAnthropic': 'Use Anthropic SDK',
  'docs.configKeyExtraBody': 'Vendor-specific request body fields (JSON)',
  'docs.configKeyLanguage': 'Output Language',
  'docs.configKeyTelemetry': 'Telemetry',
  'docs.configVerify': 'Verify Configuration',
  'docs.configVerifyDesc': 'Run this command after configuration to test the LLM connection and confirm settings are correct.',

  'docs.reviewTitle': 'ocr review',
  'docs.reviewDesc': '<code>ocr review</code> is the core command for initiating AI code review.',
  'docs.reviewModes': 'Review Modes',
  'docs.reviewWorkspace': 'Workspace Mode (Default)',
  'docs.reviewWorkspaceDesc': 'Reviews staged + unstaged + untracked changes in the current workspace.',
  'docs.reviewBranch': 'Branch Diff Mode',
  'docs.reviewBranchDesc': 'Reviews the diff between two refs (based on merge-base).',
  'docs.reviewCommit': 'Single Commit Mode',
  'docs.reviewCommitDesc': 'Reviews a specific commit (diff against its parent).',
  'docs.reviewAdvanced': 'Advanced Usage',
  'docs.reviewBackground': 'Review with Requirement Context',
  'docs.reviewBackgroundDesc': 'Provide the requirement context (including important boundaries) to improve review quality.',
  'docs.reviewJson': 'JSON Output',
  'docs.reviewJsonDesc': 'Output results in structured JSON format for programmatic processing.',
  'docs.reviewAgent': 'Agent Mode',
  'docs.reviewAgentDesc': 'Output only the final summary without execution process, suitable for automation pipelines.',
  'docs.reviewFlags': 'Flag Reference',
  'docs.reviewFlagCol1': 'Flag',
  'docs.reviewFlagCol2': 'Description',
  'docs.reviewFlagCol3': 'Default',
  'docs.reviewFlag1Desc': 'Specify commit hash to review',
  'docs.reviewFlag2Desc': 'Start ref (diff origin)',
  'docs.reviewFlag3Desc': 'Target ref (diff endpoint)',
  'docs.reviewFlag4Desc': 'Output format: text or json',
  'docs.reviewFlag5Desc': 'Git repository root',
  'docs.reviewFlag5Default': 'Current dir',
  'docs.reviewFlag6Desc': 'Path to review rules JSON file',
  'docs.reviewFlag6Default': 'Built-in',
  'docs.reviewFlag7Desc': 'Max concurrent file reviews',
  'docs.reviewFlag8Desc': 'Single task timeout (minutes)',
  'docs.reviewFlag9Desc': 'Output audience: human (show process) or agent (summary only)',
  'docs.reviewNote': 'Note: <code>--from/--to</code> and <code>--commit</code> cannot be used together. When specifying <code>--from</code>, <code>--to</code> must also be specified.',

  'docs.viewerTitle': 'ocr viewer',
  'docs.viewerDesc': 'Starts a WebUI session viewer for browsing review results in a web interface.',
  'docs.viewerNote': 'After running, a local HTTP server starts providing a visual interface for browsing review results.',

  'docs.envTitle': 'Claude Code Integration',
  'docs.envDesc': 'If you are already a Claude Code user with the following environment variables configured, Open Code Review will recognize them automatically — no extra configuration needed:',
  'docs.envNote': 'You can also use <code>ocr config</code> to override or supplement these settings.',
  'docs.copy': 'Copy',

  // QuickStart code comments
  'quickstart.commentReview': '# Review current changes',
  'quickstart.commentBranch': '# Review diff between branches',
  'quickstart.commentCommit': '# Review a specific commit',
  'quickstart.commentEnvAuto': '# Open Code Review auto-detects these variables',
};
