import type { I18nKeys } from './zh';

export const en: Record<I18nKeys, string> = {
  // Mode selection
  subtitle: 'Choose Connection Mode',
  localTitle: 'Local Mode',
  localDesc: 'Run MindOS on this machine, requires Node.js',
  localSub: 'Recommended: personal use or development',
  remoteTitle: 'Remote Mode',
  remoteDesc: 'Connect to a remote MindOS server',
  remoteSub: 'Recommended: team collaboration or server deployment',
  // Remote connection screen
  connectServer: 'Connect to Server',
  recentServers: 'Recent Servers',
  orConnect: 'or connect to a new server',
  serverAddress: 'Server Address',
  testConnection: 'Test Connection',
  password: 'Password',
  enterPassword: 'Enter server password',
  connect: 'Connect',
  hint: '💡 Find your server address and password in <strong>MindOS Settings</strong> on the host machine.',
  switchLocal: '← Switch to Local Mode',
  switchRemote: '← Switch to Remote Mode',
  forgot: 'Forget',
  // Connection states
  connecting: 'Connecting...',
  online: '✓ Online',
  passwordRequired: 'Password required',
  notMindos: '⚠ Not a MindOS server',
  cannotReach: 'Cannot reach server',
  incorrectPassword: 'Incorrect password',
  connectionFailed: 'Connection failed',
  connected: 'Connected!',
  // Setup / CLI missing
  missingCli: '📦 MindOS CLI Not Found',
  missingCliDesc: 'Install MindOS CLI with one click to use local mode (requires Node.js ≥18).',
  installBtn: 'Install MindOS CLI',
  retryLocal: 'Start Local Mode',
  // Bundled runtime incomplete (packaged Desktop)
  bundledIncomplete: '⚠️ Built-in Runtime Incomplete',
  bundledIncompleteDesc: 'The built-in MindOS runtime is missing or corrupted. Please reinstall the Desktop application.',
  retryCheck: 'Retry Check',
  // Build section
  cliInstalled: '🔨 MindOS CLI Installed',
  cliInstalledDesc: 'MindOS CLI is installed but not yet built. Click below to build automatically:',
  buildBtn: 'Build MindOS',
  building: 'Building...',
  buildingDesc: '⏳ Building MindOS, please wait (approx. 1–3 min)...',
  buildSuccess: '✅ Built successfully!',
  retryBuild: 'Retry Build',
  buildFailed: '❌ Build failed',
  buildError: '❌ Build error',
  // Install flow
  installing: 'Installing...',
  installingDesc: '⏳ Downloading and installing, please wait (approx. 1–2 min)...',
  installSuccess: '✅ Installed successfully!',
  retryInstall: 'Retry Install',
  installFailed: '❌ Installation failed',
  installError: '❌ Installation error',
  // Environment check
  checking: '🔍 Checking...',
  missingNode: '❌ Node.js not found',
  envReady: '✅ Environment ready! Starting...',
  missingCliStill: '❌ MindOS CLI not found',
  // SSH tunnel
  sshTab: '🔒 SSH Tunnel',
  httpTab: '🌐 Direct',
  sshHost: 'SSH Host',
  sshPort: 'MindOS Port',
  sshConnect: 'Connect',
  sshConnecting: 'Establishing tunnel...',
  sshSuccess: '✓ Tunnel established',
  sshFailed: 'Tunnel failed',
  sshNoConfig: '💡 Hosts from ~/.ssh/config will appear as suggestions',
  sshNoSsh: 'SSH not available',
  sshSelectHost: 'user@hostname or SSH alias',
  cancel: 'Cancel',
  sshPassphrase: 'SSH Key Passphrase',
  sshEnterPassphrase: 'Enter SSH key passphrase',
  sshRememberPassphrase: 'Remember passphrase',
  sshPassphraseNeeded: 'Key passphrase required',
  sshPassphraseWrong: 'Incorrect passphrase, try again',
  sshAddingKey: 'Verifying passphrase...',
  // Toolbar (theme / language)
  themeTooltipLight: 'Theme: light',
  themeTooltipDark: 'Theme: dark',
  langTooltipZh: 'Language: Chinese',
  langTooltipEn: 'Language: English',
};
