<?php
/**
 * lang/en.php — English translations. Array key => text.
 */
return array(
    // App
    'app.name'    => 'kamiquery',
    'app.tagline' => 'Your AI, one question away',

    // Navigation / layout
    'nav.chat'      => 'KamiChat',
    'nav.code'      => 'KamiCode',
    'nav.admin'     => 'Admin',
    'nav.history'   => 'History',
    'nav.profile'   => 'Profile',
    'nav.logout'    => 'Sign out',
    'nav.new_chat'  => 'New chat',
    'theme.light'   => 'Light mode',
    'theme.dark'    => 'Dark mode',
    'theme.toggle'  => 'Toggle theme',
    'lang.label'    => 'Language',
    'sidebar.toggle'=> 'Collapse / expand menu',
    'menu.preferences' => 'Preferences',
    'menu.sessions'    => 'Sessions',
    'menu.invites'     => 'Invitations',
    'menu.api'         => 'API',

    // Admin
    'admin.back'          => 'Back to app',
    'admin.menu_config'   => 'Configuration',
    'admin.menu_usage'    => 'Spend',
    'admin.menu_models'   => 'Models',
    'admin.menu_users'    => 'Users',
    'admin.menu_plans'    => 'Plans',

    // Common
    'common.back'   => 'Back',
    'common.save'   => 'Save',
    'common.cancel' => 'Cancel',
    'common.generate' => 'Generate',

    // Users
    'user.title'        => 'Users',
    'user.new'          => 'New user',
    'user.add'          => 'Add user',
    'user.edit'         => 'Edit user',
    'user.invalid'      => 'Check the fields: name, valid email and a password of 8+ characters.',
    'user.plan'         => 'Plan',
    'user.no_plan'      => 'No plan',
    'user.is_admin'     => 'Administrator',
    'user.is_org'       => 'Organization',
    'user.max_accounts' => 'Max accounts',
    'user.belongs_org'  => 'org:',
    'user.state'        => 'Status',
    'user.active'       => 'Active',
    'user.suspended'    => 'Suspended',
    'user.suspend'      => 'Suspend',
    'user.activate'     => 'Reactivate',
    'user.delete'       => 'Delete',
    'user.delete_confirm' => 'Delete this user? This cannot be undone.',
    'user.danger'       => 'Actions',
    'user.password_new' => 'New password',
    'user.password_keep'=> 'Leave blank to keep it',
    'user.tab_data'     => 'Data',
    'user.tab_usage'    => 'Usage',
    'user.tab_sessions' => 'Sessions',
    'user.no_sessions'  => 'No sessions yet.',
    'user.session_updated' => 'Last activity',
    'user.messages'     => 'Messages',
    'user.last30'       => 'Last 30 days',
    'user.date'         => 'Date',
    'user.usage'        => 'KamiCode usage',
    'user.activity'     => 'Activity (last year)',

    // Organization
    'org.title'         => 'Organization',
    'org.accounts'      => 'Accounts',
    'org.accounts_used' => 'Accounts used',
    'org.new_account'   => 'New account',
    'org.no_accounts'   => 'You haven\'t created any accounts yet.',
    'org.limit_reached' => 'You have reached your organization\'s account limit.',
    'org.usage_title'   => 'Usage',
    'org.by_account'    => 'By account',

    // Plans
    'plan.title'        => 'Plans',
    'plan.new'          => 'New plan',
    'plan.add'          => 'Add plan',
    'plan.edit'         => 'Edit plan',
    'plan.name'         => 'Name',
    'plan.monthly'      => 'Monthly cap (USD)',
    'plan.users'        => 'Users',
    'plan.empty'        => 'No plans yet.',
    'plan.invalid'      => 'Name is required.',
    'plan.name_taken'   => 'A plan with that name already exists.',
    'plan.has_users'    => 'Cannot delete: it has users assigned.',
    'plan.delete'       => 'Delete plan',
    'plan.delete_confirm' => 'Delete this plan?',
    'plan.delete_hint'  => 'Only if it has no users assigned.',
    'admin.config_title'  => 'Configuration',
    'admin.usage_title'   => 'Spend',
    'admin.models_title'  => 'Models',
    'admin.openrouter'    => 'OpenRouter',
    'admin.gateway'         => 'KamiCode gateway',
    'admin.gateway_online'  => 'Online',
    'admin.gateway_offline' => 'Offline',
    'admin.gateway_version' => 'version',
    'admin.gateway_last'    => 'last ping',
    'admin.openrouter_hint' => 'Connect your OpenRouter account. The key is stored on the server and never shown in full.',
    'admin.api_key'       => 'OpenRouter API key',
    'admin.api_key_hint'  => 'Leave it as is (masked) to keep it unchanged.',
    'admin.balance'            => 'Balance',
    'admin.balance_na'         => 'no API (see dashboard)',
    'admin.provider_keys'      => 'Provider keys',
    'admin.provider_keys_hint' => 'API keys for other providers. Stored on the server and never shown in full. (The gateway does not use them yet.)',
    'admin.kimi_key'           => 'Kimi (Moonshot) API key',
    'admin.minimax_key'        => 'MiniMax API key',
    'admin.save'          => 'Save',
    'admin.autosave'      => 'Saves automatically',
    'admin.saved'         => 'Saved ✓',
    'admin.connected'     => 'Connected',
    'admin.bad_key'       => 'Invalid key',
    'admin.need_key'      => 'First set your OpenRouter API key in',
    'admin.usage_error'   => 'Could not fetch spend from OpenRouter.',
    'admin.usage_live'    => 'Live data from OpenRouter.',
    'admin.usage_kamicode'=> 'KamiCode usage (this month)',
    'admin.u_requests'    => 'Requests',
    'admin.u_sessions'    => 'Sessions',
    'admin.u_tokens'      => 'Tokens',
    'admin.u_tokens_in'   => 'Input tokens',
    'admin.u_cached'      => 'Cached',
    'admin.u_cache_pct'   => 'Cache %',
    'admin.u_tokens_out'  => 'Output tokens',
    'admin.u_cost'        => 'Cost',
    'admin.u_by_user'     => 'By user',
    'admin.u_by_model'    => 'By model',
    'admin.u_by_day'      => 'By day',
    'admin.u_date'        => 'Date',
    'admin.u_user'        => 'User',
    'admin.u_model'       => 'Model',
    'admin.u_empty'       => 'No usage this month.',
    'admin.spent'         => 'Spent',
    'admin.credits'       => 'Credits',
    'admin.balance'       => 'Balance',
    'admin.models_error'  => 'Could not fetch the model list from OpenRouter.',
    'admin.models_count'  => '{n} models',
    'admin.search'        => 'Search…',
    'admin.filter'        => 'Filter…',
    'admin.free'          => 'Free',
    'admin.th_model'      => 'Model',
    'admin.th_brand'      => 'Nickname',
    'admin.th_products'   => 'Products',
    'admin.th_source'     => 'Source',
    'admin.brand_ph'      => 'No nickname',
    'admin.hidden'        => 'Hidden',
    'admin.tab_all'       => 'All',
    'admin.tab_active'    => 'Active models',
    'admin.no_active'     => 'No active models. Enable models in the “All” tab.',
    'admin.tab_keys'         => 'Keys',
    'admin.provider_no_key'  => 'Set this provider API key under Keys.',
    'admin.provider_no_models' => 'Could not load the catalog. Check the API key or whether the provider exposes a model list.',
    'admin.provider_note'    => 'The gateway does not route to this provider yet; the selection is stored for when it does.',
    'admin.prices_updated'   => 'Prices updated:',
    'admin.view_pricing'     => 'View official pricing',
    'admin.brand_hint'    => 'Set a nickname so the real model name is never shown to users.',
    'admin.th_company'    => 'Company',
    'admin.th_capabilities' => 'Capabilities',
    'admin.th_context'    => 'Context',
    'admin.th_cost'       => 'Cost',
    'admin.cap_vision'    => 'vision',
    'admin.cap_file'      => 'files',
    'admin.cap_video'     => 'video',
    'admin.cap_audio'     => 'audio',
    'admin.cap_imageout'  => 'image',
    'admin.cap_reasoning' => 'reasoning',
    'admin.cap_json'      => 'JSON',
    'admin.cap_all'       => 'All',
    'admin.models_word'   => 'models',
    'admin.in_chat'       => 'in KamiChat',
    'admin.in_code'       => 'in KamiCode',
    'admin.show_selected' => 'Show only selected',

    // API
    'api.title'              => 'API',
    'api.your_key'           => 'Your API key',
    'api.intro'              => 'Use this key to access kamiquery from your apps. Treat it like a password: do not share it.',
    'api.generate'           => 'Generate API key',
    'api.regenerate'         => 'Regenerate',
    'api.regenerate_hint'    => 'The previous key stops working immediately.',
    'api.regenerate_confirm' => 'Are you sure? The current key will stop working and you will need to update your apps.',
    'api.copy'               => 'Copy',
    'api.created'            => 'Created',
    'api.base_url'           => 'Base URL (point Cline / your software here)',

    // OAuth
    'oauth.title'            => 'Authorize access',
    'oauth.intro'            => 'This application wants to connect to your KamiQuery account:',
    'oauth.approve'          => 'Authorize',
    'oauth.deny'             => 'Cancel',
    'oauth.done_title'       => 'Authorization complete',
    'oauth.done_hint'        => 'You can return to VSCode now. If it doesn\'t open automatically, click the button.',
    'oauth.open_vscode'      => 'Open VSCode',
    'oauth.apps_title'       => 'Connected applications',
    'oauth.apps_hint'        => 'Apps and devices with access to your account. Revoke access anytime.',
    'oauth.apps_empty'       => 'No connected applications.',
    'oauth.manual_key'       => 'Manual API key',
    'oauth.last_used'        => 'last used',
    'oauth.revoke'           => 'Revoke',
    'oauth.revoke_confirm'   => 'Revoke this application\'s access? It will stop working immediately.',

    // Auth
    'auth.login_title'    => 'Sign in',
    'auth.setup_title'    => 'Create your account',
    'auth.setup_hint'     => 'There are no accounts yet. Create the first one to get started.',
    'auth.setup_invalid'  => 'Check the fields: name, valid email and a password of 8+ characters.',
    'auth.email_taken'    => 'That email is already in use.',
    'auth.name'           => 'Name',
    'auth.email'          => 'Email',
    'auth.password'       => 'Password',
    'auth.sign_in'        => 'Sign in',
    'auth.create_account' => 'Create account',
    'auth.invalid_login'  => 'Wrong email or password.',

    // Home
    'home.title'   => 'Home',
    'home.welcome' => 'Hi, {name}',
    'home.start'   => 'Start chatting',

    // KamiChat
    'chat.title'        => 'KamiChat',
    'chat.placeholder'  => 'Type your message…',
    'chat.send'         => 'Send',
    'chat.empty'        => 'How can I help you today?',
    'chat.you'          => 'You',
    'chat.assistant'    => 'kamiquery',
    'chat.thinking'     => 'Thinking…',

    // History
    'history.title' => 'History',
    'history.empty' => 'No conversations yet.',

    // KamiCode
    'code.title'    => 'KamiCode',
    'hm.active'     => 'active days',
    'hm.less'       => 'Less',
    'hm.more'       => 'More',
    'code.usage'    => 'Usage',
    'code.model_generic' => 'Model',
    'code.subtitle' => 'Code assistant',
    'code.soon'     => 'KamiCode is coming soon: your assistant to code, debug and understand code.',

    // Extension install
    'install.title'       => 'Install the extension',
    'install.intro'       => 'Install the KamiQuery extension in Visual Studio Code. Once installed it keeps itself up to date.',
    'install.download'    => 'Download the extension',
    'install.step1'       => 'Download the .vsix file with the button above.',
    'install.step2'       => 'In VS Code open the palette (Ctrl+Shift+P) and choose "Extensions: Install from VSIX…".',
    'install.step3'       => 'Pick the downloaded .vsix and reload the window when prompted.',
    'install.cli_hint'    => 'Or from the terminal (in your downloads folder):',
    'install.copy'        => 'Copy',
    'install.autoupdate'  => 'From now on, new versions install automatically.',
    'install.unavailable' => 'The download is not available right now.',

    // Profile
    'profile.title'         => 'Profile',
    'profile.account'       => 'Account',
    'profile.password'      => 'Change password',
    'profile.pw_current'    => 'Current password',
    'profile.pw_new'        => 'New password',
    'profile.pw_change'     => 'Change password',
    'profile.pw_ok'         => 'Password updated.',
    'profile.pw_wrong'      => 'The current password is incorrect.',
    'profile.pw_short'      => 'The new password must be 8+ characters.',
    'profile.language'      => 'Language',
    'profile.theme'         => 'Theme',
    'profile.sessions'      => 'Active sessions',
    'profile.session_this'  => 'This session',
    'profile.last_seen'     => 'Last seen',
    'profile.created'       => 'Started',
    'profile.revoke'        => 'Revoke',
    'profile.revoke_others' => 'Sign out other sessions',
    'profile.saved'         => 'Changes saved.',

    // Invitations
    'invite.title'          => 'Join kamiquery',
    'invite.section'        => 'Invitations',
    'invite.hint'           => 'Registration is invite-only. Generate a link and share it; it expires in 7 days and is single-use.',
    'invite.email_optional' => 'Email (optional, restricts the invite to that address)',
    'invite.create'         => 'Create invitation',
    'invite.copy'           => 'Copy',
    'invite.revoke'         => 'Revoke',
    'invite.empty'          => 'No invitations yet.',
    'invite.status_pending' => 'Pending',
    'invite.status_used'    => 'Used',
    'invite.status_expired' => 'Expired',
    'invite.invalid_title'  => 'Invalid invitation',
    'invite.invalid'        => 'This invitation does not exist, was already used or has expired.',
    'invite.email_mismatch' => 'The email does not match the invitation.',
);
