<?php

return [
    // Module
    'ai_core_module' => 'AI Core — Shared AI Engine',
    'ai_core'        => 'AI Core',
    'ai_settings'    => 'AI Settings',

    // Permissions
    'perm_access_module'   => 'AI Core: Access Module',
    'perm_access_settings' => 'AI Core: View AI Settings & Usage',
    'perm_manage'          => 'AI Core: Manage Provider, API Key & Behaviour',
    'perm_view_usage'      => 'AI Core: View Token Usage',

    // Settings
    'business_type'        => 'Business Type',
    'provider'             => 'AI Provider',
    'api_key'              => 'API Key',
    'model'                => 'Model',
    'enabled'              => 'Enabled',
    'temperature'          => 'Temperature',
    'max_tokens'           => 'Max Response Tokens',
    'system_prompt'        => 'Custom Persona / System Prompt',
    'monthly_token_budget' => 'Monthly Token Budget',
    'test_connection'      => 'Test Connection',
    'save'                 => 'Save',
    'usage_this_month'     => 'Tokens used this month',
    'recent_calls'         => 'Recent AI calls',
    'active_primary'        => 'Active primary AI service',
    'active_primary_manual' => '(manual)',
    'no_primary_yet'        => 'No AI service configured yet — add one in AI services below.',

    // AI services library
    'ai_services'       => 'AI services',
    'ai_services_help'  => 'Configure and connection-test each AI service once here. The failover chain below then simply picks from the services you have configured — no need to re-enter credentials per slot.',
    'endpoint_base_url' => 'Endpoint Base URL',
    'configured'        => 'Configured',
    'not_configured'    => 'Not configured',
    'save_service'      => 'Save service',
    'service_saved'     => 'AI service saved.',
    'add_provider'      => 'Add provider',
    'add'               => 'Add',
    'remove_service'    => 'Remove',
    'remove_service_confirm' => 'Remove this AI service? Any failover-chain slot using it will be disabled. The primary keeps its copied credentials.',
    'no_services_yet'   => 'No AI services added yet — pick one above to get started.',
    'service_removed'   => 'AI service removed.',
    'default_service_badge'  => 'Default',
    'make_default'           => 'Make default',
    'make_default_hint'      => 'Save & configure first',
    'default_set'            => ':service is now the default AI provider.',
    'default_needs_config'   => 'Save and configure this service (including a working key/endpoint) before making it the default.',

    // Failover chain
    'failover_chain'    => 'Failover chain',
    'failover_intro'    => 'When the primary (Default) AI call fails — outage, rate-limit or timeout — the engine automatically retries the chain in order. Pick a configured service for each slot; leave a slot on "— none —" to skip it.',
    'primary_default'   => 'Primary (Default)',
    'chain_none'        => '— none / disabled —',
    'chain_primary_manual' => 'Manual configuration (main form above)',
    'chain_primary_note'   => 'Change the default via the selector on the service cards above.',
    'chain_save'        => 'Save chain',
    'chain_saved'       => 'Failover chain saved.',
    'chain_slot_skipped' => 'Some slots were skipped — the selected service is not configured: :slots.',

    // Messages
    'saved'           => 'Saved successfully.',
    'ai_not_configured' => 'AI is not configured yet. Set a provider, API key and model below.',
    'budget_exceeded' => 'This month\'s AI token budget has been reached. Increase or clear the budget below.',
    'test_needs_save' => 'Configure and save an AI service (API key + model) first, then run the test.',

    // Disclaimer
    'disclaimer' => 'AiCore is the shared AI engine used by WhatsApp, VetAI and other modules. '
                  . 'General LLM APIs are paid (usage-based); Gemini offers a limited free tier for evaluation.',
];
