<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * I18n String Constants
 *
 * Single source of truth for every translatable string that is passed to the
 * Vue front-end via `wp_localize_script` / `kitsuneAiPlatformConfig.i18n`.
 *
 * All strings are wrapped in WordPress's __() so they will be translated
 * according to the active plugin locale before being serialised to JSON.
 *
 * Usage:
 *   $i18n = Kitsune_AI_Platform_I18n_Strings::get();
 *
 * @package Kitsune_AI_Platform
 */
class Kitsune_AI_Platform_I18n_Strings {

    /**
     * Return the full i18n array for the front-end.
     *
     * @return array<string, string>
     */
    public static function get() {
        return array(

            // ── Notification type titles ──────────────────────────────────────
            'notificationSuccess' => __( 'Success!',       'kitsune-ai-platform' ),
            'notificationError'   => __( 'Error occurred', 'kitsune-ai-platform' ),
            'notificationWarning' => __( 'Warning',        'kitsune-ai-platform' ),
            'notificationInfo'    => __( 'Info',           'kitsune-ai-platform' ),            'refreshing'          => __( 'Refreshing...',  'kitsune-ai-platform' ),
            // ── Common actions ────────────────────────────────────────────────
            'save'       => __( 'Save',        'kitsune-ai-platform' ),
            'cancel'     => __( 'Cancel',      'kitsune-ai-platform' ),
            'delete'     => __( 'Delete',      'kitsune-ai-platform' ),
            'confirm'    => __( 'Are you sure?', 'kitsune-ai-platform' ),
            'loading'    => __( 'Loading...',  'kitsune-ai-platform' ),
            'success'    => __( 'Success!',    'kitsune-ai-platform' ),
            'error'      => __( 'Error occurred', 'kitsune-ai-platform' ),
            'edit'       => __( 'Edit',        'kitsune-ai-platform' ),
            'view'       => __( 'View',        'kitsune-ai-platform' ),
            'create'     => __( 'Create',      'kitsune-ai-platform' ),
            'update'     => __( 'Update',      'kitsune-ai-platform' ),
            'duplicate'  => __( 'Duplicate',   'kitsune-ai-platform' ),
            'export'     => __( 'Export',      'kitsune-ai-platform' ),
            'import'     => __( 'Import',      'kitsune-ai-platform' ),
            'search'     => __( 'Search...',   'kitsune-ai-platform' ),
            'submit'     => __( 'Submit',      'kitsune-ai-platform' ),
            'submitted'  => __( 'Submitted',   'kitsune-ai-platform' ),
            'submitting' => __( 'Submitting...', 'kitsune-ai-platform' ),
            'sending'    => __( 'Sending...',  'kitsune-ai-platform' ),
            'completed'  => __( 'Completed',   'kitsune-ai-platform' ),
            'na'         => __( 'N/A',         'kitsune-ai-platform' ),
            'unknown'    => __( 'Unknown',     'kitsune-ai-platform' ),
            'select'     => __( 'Select',      'kitsune-ai-platform' ),
            'noOptions'  => __( 'No options',  'kitsune-ai-platform' ),
            'never'      => __( 'Never',       'kitsune-ai-platform' ),
            'daily'      => __( 'Daily',       'kitsune-ai-platform' ),
            'weekly'     => __( 'Weekly',      'kitsune-ai-platform' ),
            'monthly'    => __( 'Monthly',     'kitsune-ai-platform' ),
            'yearly'     => __( 'Yearly',      'kitsune-ai-platform' ),
            'online'     => __( 'Online',      'kitsune-ai-platform' ),
            'menu'       => __( 'Menu',        'kitsune-ai-platform' ),
            'close'      => __( 'Close',       'kitsune-ai-platform' ),
            'add'        => __( 'Add',         'kitsune-ai-platform' ),
            'remove'     => __( 'Remove',      'kitsune-ai-platform' ),
            'enable'     => __( 'Enable',      'kitsune-ai-platform' ),
            'disable'    => __( 'Disable',     'kitsune-ai-platform' ),
            'activate'   => __( 'Activate',    'kitsune-ai-platform' ),
            'deactivate' => __( 'Deactivate',  'kitsune-ai-platform' ),
            'active'     => __( 'Active',      'kitsune-ai-platform' ),
            'inactive'   => __( 'Inactive',    'kitsune-ai-platform' ),
            'preview'    => __( 'Preview',     'kitsune-ai-platform' ),
            'copy'       => __( 'Copy',        'kitsune-ai-platform' ),
            'copied'     => __( 'Copied!',     'kitsune-ai-platform' ),
            'refresh'    => __( 'Refresh',     'kitsune-ai-platform' ),
            'reset'      => __( 'Reset',       'kitsune-ai-platform' ),
            'test'       => __( 'Test',        'kitsune-ai-platform' ),
            'connect'    => __( 'Connect',     'kitsune-ai-platform' ),
            'disconnect' => __( 'Disconnect',  'kitsune-ai-platform' ),
            'connected'  => __( 'Connected',   'kitsune-ai-platform' ),
            'disconnected' => __( 'Disconnected', 'kitsune-ai-platform' ),
            'configure'  => __( 'Configure',   'kitsune-ai-platform' ),
            'generate'   => __( 'Generate',    'kitsune-ai-platform' ),
            'generating' => __( 'Generating...', 'kitsune-ai-platform' ),
            'optional'   => __( 'Optional',    'kitsune-ai-platform' ),
            'required'   => __( 'Required',    'kitsune-ai-platform' ),
            'name'       => __( 'Name',        'kitsune-ai-platform' ),
            'description'=> __( 'Description', 'kitsune-ai-platform' ),
            'status'     => __( 'Status',      'kitsune-ai-platform' ),
            'type'       => __( 'Type',        'kitsune-ai-platform' ),
            'date'       => __( 'Date',        'kitsune-ai-platform' ),
            'actions'    => __( 'Actions',     'kitsune-ai-platform' ),
            'noResults'  => __( 'No results found.', 'kitsune-ai-platform' ),
            'noData'     => __( 'No data available.', 'kitsune-ai-platform' ),

            // ── Permissions / auth ────────────────────────────────────────────
            'permissionDenied' => __( 'Permission denied',       'kitsune-ai-platform' ),
            'idRequired'       => __( 'ID required',             'kitsune-ai-platform' ),
            'invalidRequest'   => __( 'Invalid request',         'kitsune-ai-platform' ),
            'securityFailed'   => __( 'Security check failed',   'kitsune-ai-platform' ),
            'invalidJson'      => __( 'Invalid JSON data',       'kitsune-ai-platform' ),

            // ── Navigation / menu ─────────────────────────────────────────────
            'navDashboard'    => __( 'Dashboard',      'kitsune-ai-platform' ),
            'navInbox'        => __( 'Inbox',          'kitsune-ai-platform' ),
            'navModels'       => __( 'AI Models',      'kitsune-ai-platform' ),
            'navChatbots'     => __( 'Chatbots',       'kitsune-ai-platform' ),
            'navContent'      => __( 'Content Studio', 'kitsune-ai-platform' ),
            'navForms'        => __( 'AI Forms',       'kitsune-ai-platform' ),
            'navKB'           => __( 'Knowledge Base', 'kitsune-ai-platform' ),
            'navAutomation'   => __( 'Automation',     'kitsune-ai-platform' ),
            'navAnalytics'    => __( 'Analytics',      'kitsune-ai-platform' ),
            'navIntegrations' => __( 'Integrations',   'kitsune-ai-platform' ),
            'navSettings'     => __( 'Settings',       'kitsune-ai-platform' ),
            'navHelp'         => __( 'Help & Support', 'kitsune-ai-platform' ),

            // ── Settings ──────────────────────────────────────────────────────
            'savedSettings'        => __( 'Settings saved successfully', 'kitsune-ai-platform' ),
            'settingsSaved'        => __( 'Settings saved',              'kitsune-ai-platform' ),
            'providerKeyRequired'  => __( 'Provider and API key are required', 'kitsune-ai-platform' ),
            'apiConnectSuccess'    => __( 'API connection successful',   'kitsune-ai-platform' ),
            'apiConnectFailed'     => __( 'API connection failed',       'kitsune-ai-platform' ),
            'connectedSuccess'     => __( 'Connected successfully',      'kitsune-ai-platform' ),
            'failedConnect'        => __( 'Failed to connect',           'kitsune-ai-platform' ),
            'defaultModelsUpdated' => __( 'Default models updated',      'kitsune-ai-platform' ),
            'providerUpdated'      => __( 'Provider configuration updated', 'kitsune-ai-platform' ),
            'invalidApiKeyFormat'  => __( 'Invalid API key format',      'kitsune-ai-platform' ),
            'apiKeyEnvManaged'     => __( 'API key is managed via environment variable and cannot be changed here.', 'kitsune-ai-platform' ),
            'apiKeyDeleted'        => __( 'API key deleted',             'kitsune-ai-platform' ),
            'failedDeleteApiKey'   => __( 'Failed to delete API key',    'kitsune-ai-platform' ),
            'onboardingCompleted'  => __( 'Onboarding completed',        'kitsune-ai-platform' ),
            'providerNotFound'     => __( 'Provider not found',          'kitsune-ai-platform' ),
            'unsupportedProvider'  => __( 'Unsupported provider',        'kitsune-ai-platform' ),
            'noModelConfigured'    => __( 'No AI model configured for this feature', 'kitsune-ai-platform' ),
            'noApiKeyConfigured'   => __( 'No API key configured for the selected provider', 'kitsune-ai-platform' ),

            // ── Tab labels: General settings ──────────────────────────────────
            'tabGeneral'       => __( 'General',            'kitsune-ai-platform' ),
            'tabAdvanced'      => __( 'Advanced',           'kitsune-ai-platform' ),
            'tabNotifications' => __( 'Notifications',      'kitsune-ai-platform' ),
            'tabAccess'        => __( 'Access Control',     'kitsune-ai-platform' ),
            'tabAppearance'    => __( 'Appearance',         'kitsune-ai-platform' ),
            'tabWebhooks'      => __( 'Webhooks',           'kitsune-ai-platform' ),

            // ── Chatbots ──────────────────────────────────────────────────────
            'chatbot'             => __( 'Chatbot',                           'kitsune-ai-platform' ),
            'allChatbots'         => __( 'All Chatbots',                      'kitsune-ai-platform' ),
            'createEdit'          => __( 'Create/Edit',                       'kitsune-ai-platform' ),
            'templates'           => __( 'Templates',                         'kitsune-ai-platform' ),
            'conversationLogs'    => __( 'Conversation Logs',                 'kitsune-ai-platform' ),
            'chatbotCreated'      => __( 'Chatbot created successfully',      'kitsune-ai-platform' ),
            'chatbotUpdated'      => __( 'Chatbot updated successfully',      'kitsune-ai-platform' ),
            'chatbotDeleted'      => __( 'Chatbot deleted successfully',      'kitsune-ai-platform' ),
            'failedDelChatbot'    => __( 'Failed to delete chatbot',          'kitsune-ai-platform' ),
            'chatbotDuplicated'   => __( 'Chatbot duplicated successfully',   'kitsune-ai-platform' ),
            'chatbotNotFound'     => __( 'Chatbot not found',                 'kitsune-ai-platform' ),
            'chatbotUnavailable'  => __( 'Chatbot Unavailable',               'kitsune-ai-platform' ),
            'chatbotInactive'     => __( 'Chatbot not found or inactive.',    'kitsune-ai-platform' ),
            'chatbotNotAvail'     => __( 'Chatbot not available',             'kitsune-ai-platform' ),
            'templateDeleted'     => __( 'Template deleted',                  'kitsune-ai-platform' ),
            'templateInstalled'   => __( 'Template installed successfully',   'kitsune-ai-platform' ),
            'openChat'            => __( 'Open chat',                         'kitsune-ai-platform' ),
            'endSession'          => __( 'End session',                       'kitsune-ai-platform' ),
            'endSessionConfirm'   => __( 'End this chat session?',            'kitsune-ai-platform' ),
            'closeChat'           => __( 'Close chat',                        'kitsune-ai-platform' ),
            'chatOptions'         => __( 'Chat options',                      'kitsune-ai-platform' ),
            'writeMessage'        => __( 'Write a message...',                'kitsune-ai-platform' ),
            'sendMessage'         => __( 'Send message',                      'kitsune-ai-platform' ),
            'poweredByAI'         => __( 'Powered by AI',                     'kitsune-ai-platform' ),
            'sessionEnded'        => __( 'Session ended',                     'kitsune-ai-platform' ),
            'welcomeMessage'      => __( 'Hi! How can I help you today?',     'kitsune-ai-platform' ),
            'helpfulAssistant'    => __( 'You are a helpful assistant.',       'kitsune-ai-platform' ),
            'aiResponseFailed'    => __( 'Failed to get AI response',         'kitsune-ai-platform' ),
            'anErrorOccurred'     => __( 'An error occurred',                 'kitsune-ai-platform' ),
            'createFirstChatbot'  => __( 'Create your first chatbot',         'kitsune-ai-platform' ),
            'noChatbots'          => __( 'No chatbots found.',                'kitsune-ai-platform' ),
            'embeddingCode'       => __( 'Embedding Code',                    'kitsune-ai-platform' ),
            'shortcodeLabel'      => __( 'Shortcode',                         'kitsune-ai-platform' ),
            'embedInstructions'   => __( 'Paste this code before </body>', 'kitsune-ai-platform' ),

            // ── Conversations / Inbox ─────────────────────────────────────────
            'conversationIdReq'    => __( 'Conversation ID required', 'kitsune-ai-platform' ),
            'conversationNotFound' => __( 'Conversation not found',   'kitsune-ai-platform' ),
            'idsRequired'          => __( 'IDs required',             'kitsune-ai-platform' ),
            'conversationsDeleted' => __( 'Conversations deleted',    'kitsune-ai-platform' ),
            'allConversations'     => __( 'All Conversations',        'kitsune-ai-platform' ),
            'noConversations'      => __( 'No conversations yet.',    'kitsune-ai-platform' ),
            'deleteSelected'       => __( 'Delete Selected',          'kitsune-ai-platform' ),
            'selectAll'            => __( 'Select all',               'kitsune-ai-platform' ),

            // ── Workflows / Automation ────────────────────────────────────────
            'workflowUpdated'      => __( 'Workflow updated successfully',   'kitsune-ai-platform' ),
            'workflowSaved'        => __( 'Workflow saved successfully',     'kitsune-ai-platform' ),
            'failedSaveWf'         => __( 'Failed to save workflow',         'kitsune-ai-platform' ),
            'workflowIdReq'        => __( 'Workflow ID required',            'kitsune-ai-platform' ),
            'workflowNotFound'     => __( 'Workflow not found',              'kitsune-ai-platform' ),
            'workflowDeleted'      => __( 'Workflow deleted successfully',   'kitsune-ai-platform' ),
            'failedDelWf'          => __( 'Failed to delete workflow',       'kitsune-ai-platform' ),
            'workflowActivated'    => __( 'Workflow activated',              'kitsune-ai-platform' ),
            'workflowDeactivated'  => __( 'Workflow deactivated',            'kitsune-ai-platform' ),
            'failedUpdateWfStatus' => __( 'Failed to update workflow status','kitsune-ai-platform' ),
            'automationNotLoaded'  => __( 'Automation Manager not loaded',   'kitsune-ai-platform' ),
            'deletedWorkflow'      => __( 'Deleted Workflow',                'kitsune-ai-platform' ),
            'traceIdReq'           => __( 'Trace ID required',               'kitsune-ai-platform' ),
            'allWorkflows'         => __( 'All Workflows',                   'kitsune-ai-platform' ),
            'createWorkflow'       => __( 'Create Workflow',                 'kitsune-ai-platform' ),
            'scheduledTasks'       => __( 'Scheduled Tasks',                 'kitsune-ai-platform' ),
            'activityLog'          => __( 'Activity Log',                    'kitsune-ai-platform' ),
            'trigger'              => __( 'Trigger',                         'kitsune-ai-platform' ),
            'triggerEvent'         => __( 'Trigger Event',                   'kitsune-ai-platform' ),
            'noWorkflows'          => __( 'No workflows found.',             'kitsune-ai-platform' ),
            'workflowsTab'         => __( 'Workflows',                        'kitsune-ai-platform' ),
            'workflowBuilder'      => __( 'Workflow Builder',                 'kitsune-ai-platform' ),
            'logs'                 => __( 'Logs',                             'kitsune-ai-platform' ),

            // ── Scheduled tasks ───────────────────────────────────────────────
            'taskUpdated'    => __( 'Scheduled task updated successfully', 'kitsune-ai-platform' ),
            'taskCreated'    => __( 'Scheduled task created successfully', 'kitsune-ai-platform' ),
            'failedSaveTask' => __( 'Failed to save scheduled task',       'kitsune-ai-platform' ),
            'taskIdReq'      => __( 'Task ID required',                    'kitsune-ai-platform' ),
            'taskDeleted'    => __( 'Scheduled task deleted successfully',  'kitsune-ai-platform' ),
            'failedDelTask'  => __( 'Failed to delete scheduled task',     'kitsune-ai-platform' ),

            // ── Knowledge Base ────────────────────────────────────────────────
            'sourceAdded'           => __( 'Source added successfully',    'kitsune-ai-platform' ),
            'sourceDeleted'         => __( 'Source deleted',               'kitsune-ai-platform' ),
            'sourceSynced'          => __( 'Source synced',                'kitsune-ai-platform' ),
            'failedDelSource'       => __( 'Failed to delete source',      'kitsune-ai-platform' ),
            'sourceNotFound'        => __( 'Source not found.',            'kitsune-ai-platform' ),
            'noEmbedModelSync'      => __( 'Select a default embedding model before syncing sources.', 'kitsune-ai-platform' ),
            'noEmbedModelAdd'       => __( 'Select a default embedding model before adding knowledge sources.', 'kitsune-ai-platform' ),
            'connectVectorFirst'    => __( 'Connect the default vector database before adding knowledge sources.', 'kitsune-ai-platform' ),
            'noEmbedModelSearch'    => __( 'Select a default embedding model before using semantic search.', 'kitsune-ai-platform' ),
            'noVectorDB'            => __( 'No supported vector database configured.', 'kitsune-ai-platform' ),
            'vectorNotConnected'    => __( 'Default vector database is not connected.', 'kitsune-ai-platform' ),
            'semanticFailed'        => __( 'Semantic search failed.',       'kitsune-ai-platform' ),
            'queryRequired'         => __( 'Query is required',            'kitsune-ai-platform' ),
            'cannotExtractSource'   => __( 'Unable to extract source content for syncing.', 'kitsune-ai-platform' ),
            'cannotGenChunks'       => __( 'Unable to generate chunks for syncing.', 'kitsune-ai-platform' ),
            'failedClearEmbeddings' => __( 'Failed to clear old source embeddings before syncing.', 'kitsune-ai-platform' ),
            'failedSyncSource'      => __( 'Failed to sync source to vector database.', 'kitsune-ai-platform' ),
            'chromaRecord'          => __( 'Chroma Record',                'kitsune-ai-platform' ),
            'chromaDB'              => __( 'Chroma DB',                    'kitsune-ai-platform' ),
            'vectorSettingsUpdated' => __( 'Vector database settings updated.', 'kitsune-ai-platform' ),
            'connectedChroma'       => __( 'Connected to Chroma DB successfully.', 'kitsune-ai-platform' ),
            'disconnectedChroma'    => __( 'Disconnected from Chroma DB.', 'kitsune-ai-platform' ),
            'chromaSaved'           => __( 'Chroma DB configuration saved.', 'kitsune-ai-platform' ),
            'failedFetchEmbed'      => __( 'Failed to fetch embeddings from vector database.', 'kitsune-ai-platform' ),
            'reembedManaged'        => __( 'Re-embedding is managed by the connected vector database.', 'kitsune-ai-platform' ),
            'stopEmbedNotAvail'     => __( 'Stopping embedding jobs is not available for external vector DB records.', 'kitsune-ai-platform' ),
            'chromaConnFailed'      => __( 'Unable to reach Chroma DB.',   'kitsune-ai-platform' ),
            'dbConfigNotFound'      => __( 'Database configuration not found.', 'kitsune-ai-platform' ),
            'onlyChromaSupported'   => __( 'Only Chroma DB is supported.', 'kitsune-ai-platform' ),
            'idActionRequired'      => __( 'ID and action are required',   'kitsune-ai-platform' ),
            'sources'               => __( 'Sources',                      'kitsune-ai-platform' ),
            'embeddings'            => __( 'Embeddings',                   'kitsune-ai-platform' ),
            'vectorDatabase'        => __( 'Vector Database',              'kitsune-ai-platform' ),
            'semanticSearch'        => __( 'Semantic Search',              'kitsune-ai-platform' ),
            'syncSource'            => __( 'Sync Source',                  'kitsune-ai-platform' ),
            'syncing'               => __( 'Syncing...',                   'kitsune-ai-platform' ),
            'addSource'             => __( 'Add Source',                   'kitsune-ai-platform' ),
            'knowledgeSources'       => __( 'Knowledge Sources',          'kitsune-ai-platform' ),
            'vectorDatabases'        => __( 'Vector Databases',           'kitsune-ai-platform' ),
            'noSources'             => __( 'No knowledge sources added yet.', 'kitsune-ai-platform' ),

            // ── AI Models ─────────────────────────────────────────────────────
            'aiModels'          => __( 'AI Models',             'kitsune-ai-platform' ),
            'allModels'         => __( 'All Models',            'kitsune-ai-platform' ),
            'defaultModels'     => __( 'Default Models',        'kitsune-ai-platform' ),
            'connectedModels'   => __( 'Connected Models',      'kitsune-ai-platform' ),
            'defaultSettings'   => __( 'Default Settings',      'kitsune-ai-platform' ),
            'apiKeys'           => __( 'API Keys',              'kitsune-ai-platform' ),
            'provider'          => __( 'Provider',              'kitsune-ai-platform' ),
            'model'             => __( 'Model',                 'kitsune-ai-platform' ),
            'testConnection'    => __( 'Test Connection',       'kitsune-ai-platform' ),
            'testing'           => __( 'Testing...',            'kitsune-ai-platform' ),
            'addApiKey'         => __( 'Add API Key',           'kitsune-ai-platform' ),
            'apiKey'            => __( 'API Key',               'kitsune-ai-platform' ),
            'noApiKeys'         => __( 'No API keys added yet.', 'kitsune-ai-platform' ),

            // ── Integrations ──────────────────────────────────────────────────
            'integrationIdReq'    => __( 'Integration ID required',  'kitsune-ai-platform' ),
            'integrationConnected'=> __( 'Integration connected',    'kitsune-ai-platform' ),
            'integrationDisconn'  => __( 'Integration disconnected', 'kitsune-ai-platform' ),
            'allIntegrations'     => __( 'All Integrations',         'kitsune-ai-platform' ),
            'noIntegrations'          => __( 'No integrations available.', 'kitsune-ai-platform' ),
            'integrationDirectory'    => __( 'Integration Directory',       'kitsune-ai-platform' ),

            // ── Webhooks ──────────────────────────────────────────────────────
            'webhookUrlReq'  => __( 'Webhook URL is required',     'kitsune-ai-platform' ),
            'webhookDeleted' => __( 'Webhook deleted',              'kitsune-ai-platform' ),
            'testEventSent'  => __( 'Test event sent successfully', 'kitsune-ai-platform' ),
            'addWebhook'     => __( 'Add Webhook',                  'kitsune-ai-platform' ),
            'webhookUrl'     => __( 'Webhook URL',                  'kitsune-ai-platform' ),
            'noWebhooks'     => __( 'No webhooks configured.',      'kitsune-ai-platform' ),

            // ── Forms ─────────────────────────────────────────────────────────
            'formCreated'           => __( 'Form created successfully',   'kitsune-ai-platform' ),
            'formUpdated'           => __( 'Form updated successfully',   'kitsune-ai-platform' ),
            'formDeleted'           => __( 'Form deleted successfully',   'kitsune-ai-platform' ),
            'failedDelForm'         => __( 'Failed to delete form',       'kitsune-ai-platform' ),
            'formIdReq'             => __( 'Form ID required',            'kitsune-ai-platform' ),
            'formNotFound'          => __( 'Form not found',              'kitsune-ai-platform' ),
            'formNotAvail'          => __( 'Form not available',          'kitsune-ai-platform' ),
            'formSubmitted'         => __( 'Form submitted successfully', 'kitsune-ai-platform' ),
            'failedSaveSubmission'  => __( 'Failed to save form submission', 'kitsune-ai-platform' ),
            'formSuccess'           => __( 'Thanks! Your submission has been received.', 'kitsune-ai-platform' ),
            'formError'             => __( 'Sorry, we could not submit the form. Please try again.', 'kitsune-ai-platform' ),
            'invalidFormSubmission' => __( 'Invalid form submission',     'kitsune-ai-platform' ),
            'formDefaultTitle'      => __( 'Form',                        'kitsune-ai-platform' ),
            'formNoFields'          => __( 'No fields configured.',       'kitsune-ai-platform' ),
            'formCaptchaPlaceholder'=> __( 'Captcha placeholder',         'kitsune-ai-platform' ),
            'allForms'              => __( 'All Forms',                   'kitsune-ai-platform' ),
            'createForm'            => __( 'Create Form',                 'kitsune-ai-platform' ),
            'submissions'           => __( 'Submissions',                 'kitsune-ai-platform' ),
            'noForms'               => __( 'No forms found.',             'kitsune-ai-platform' ),
            'formBuilder'           => __( 'Form Builder',                'kitsune-ai-platform' ),
            'formSettings'          => __( 'Form Settings',               'kitsune-ai-platform' ),

            // ── Content Studio ────────────────────────────────────────────────
            'contentNotFound'   => __( 'Content not found',              'kitsune-ai-platform' ),
            'draftSaved'        => __( 'Draft saved successfully',        'kitsune-ai-platform' ),
            'failedGenContent'  => __( 'Failed to generate content',      'kitsune-ai-platform' ),
            'emptyAIResponse'   => __( 'Empty response from AI provider', 'kitsune-ai-platform' ),
            'topicRequired'     => __( 'Topic is required',               'kitsune-ai-platform' ),
            'promptRequired'    => __( 'Prompt is required',              'kitsune-ai-platform' ),
            'messageRequired'   => __( 'Message is required',             'kitsune-ai-platform' ),
            'imageGenFailed'    => __( 'Image generation failed',         'kitsune-ai-platform' ),
            'imageUrlRequired'  => __( 'Image URL is required',           'kitsune-ai-platform' ),
            'imageSaved'        => __( 'Image saved successfully',        'kitsune-ai-platform' ),
            'generatedContent'  => __( 'Generated content...',            'kitsune-ai-platform' ),
            'noImageModel'      => __( 'No image model configured',       'kitsune-ai-platform' ),
            'imageOnlyOpenAI'   => __( 'Image generation is currently supported for OpenAI models only.', 'kitsune-ai-platform' ),
            'generateContent'   => __( 'Generate Content',              'kitsune-ai-platform' ),
            'contentSettings'   => __( 'Content Settings',               'kitsune-ai-platform' ),
            'articleWriter'     => __( 'Article Writer',                  'kitsune-ai-platform' ),
            'imageGenerator'    => __( 'Image Generator',                 'kitsune-ai-platform' ),
            'aiChat'            => __( 'AI Chat',                         'kitsune-ai-platform' ),
            'savedDrafts'       => __( 'Saved Drafts',                    'kitsune-ai-platform' ),

            // ── Analytics ─────────────────────────────────────────────────────
            'overview'          => __( 'Overview',             'kitsune-ai-platform' ),
            'chatbotAnalytics'  => __( 'Chatbot Analytics',    'kitsune-ai-platform' ),
            'contentAnalytics'  => __( 'Content Analytics',    'kitsune-ai-platform' ),
            'totalRequests'     => __( 'Total Requests',       'kitsune-ai-platform' ),
            'totalTokens'       => __( 'Total Tokens',         'kitsune-ai-platform' ),
            'totalCost'         => __( 'Total Cost',           'kitsune-ai-platform' ),
            'conversations'     => __( 'Conversations',        'kitsune-ai-platform' ),
            'last7Days'         => __( 'Last 7 days',          'kitsune-ai-platform' ),
            'last30Days'        => __( 'Last 30 days',         'kitsune-ai-platform' ),
            'last90Days'        => __( 'Last 90 days',         'kitsune-ai-platform' ),            'usageCosts'        => __( 'Usage & Costs',          'kitsune-ai-platform' ),
            'performance'       => __( 'Performance',            'kitsune-ai-platform' ),
            'userActivity'      => __( 'User Activity',          'kitsune-ai-platform' ),
            // ── Dashboard ─────────────────────────────────────────────────────
            'dashboard'         => __( 'Dashboard',            'kitsune-ai-platform' ),
            'quickActions'      => __( 'Quick Actions',        'kitsune-ai-platform' ),
            'recentActivity'    => __( 'Recent Activity',      'kitsune-ai-platform' ),
            'gettingStarted'    => __( 'Getting Started',      'kitsune-ai-platform' ),

            // ── Help & Support ────────────────────────────────────────────────
            'documentation'     => __( 'Documentation',       'kitsune-ai-platform' ),
            'support'           => __( 'Support',             'kitsune-ai-platform' ),
            'changelog'         => __( 'Changelog',           'kitsune-ai-platform' ),
            'faq'               => __( 'FAQ',                 'kitsune-ai-platform' ),
            'contactSupport'    => __( 'Contact Support',   'kitsune-ai-platform' ),
            'featureRequests'   => __( 'Feature Requests',  'kitsune-ai-platform' ),
            'systemDiagnostics' => __( 'System Diagnostics', 'kitsune-ai-platform' ),
            'startOnboarding'   => __( 'Start Onboarding Wizard', 'kitsune-ai-platform' ),

            // ── API provider errors ───────────────────────────────────────────
            'openAIFailed'     => __( 'OpenAI request failed',    'kitsune-ai-platform' ),
            'anthropicFailed'  => __( 'Anthropic request failed', 'kitsune-ai-platform' ),
            'geminiFailed'     => __( 'Gemini request failed',    'kitsune-ai-platform' ),

            // ── Public / chatbot embed ────────────────────────────────────────
            'sorryError'   => __( 'Sorry, something went wrong. Please try again.', 'kitsune-ai-platform' ),
            'unknownError' => __( 'Unknown error', 'kitsune-ai-platform' ),
            // ── Dashboard ─────────────────────────────────────────────────────
            'dashboardSubtitle'    => __( 'Overview of your AI Platform performance and activity', 'kitsune-ai-platform' ),
            'welcomeToAIPlatform'       => __( 'Welcome to AI Platform!', 'kitsune-ai-platform' ),
            'welcomeSubtitle'      => __( 'Get started by creating your first chatbot or generating content', 'kitsune-ai-platform' ),
            'createChatbot'        => __( 'Create Chatbot', 'kitsune-ai-platform' ),
            'dismiss'              => __( 'Dismiss', 'kitsune-ai-platform' ),
            'aiRequestsMonth'      => __( 'AI Requests (This Month)', 'kitsune-ai-platform' ),
            'tokensConsumed'       => __( 'Tokens Consumed', 'kitsune-ai-platform' ),
            'ofMonthlyQuota'       => __( '% of monthly quota', 'kitsune-ai-platform' ),
            'activeChatbots'       => __( 'Active Chatbots', 'kitsune-ai-platform' ),
            'contentGenerated'     => __( 'Content Generated', 'kitsune-ai-platform' ),
            'usageOverTime'        => __( 'Usage Over Time', 'kitsune-ai-platform' ),
            'days7'                => __( '7 Days', 'kitsune-ai-platform' ),
            'days30'               => __( '30 Days', 'kitsune-ai-platform' ),
            'days90'               => __( '90 Days', 'kitsune-ai-platform' ),

            // ── View subtitles ─────────────────────────────────────────────────
            'chatbotsSubtitle'     => __( 'Create and manage intelligent chatbots for your website.', 'kitsune-ai-platform' ),
            'settingsSubtitle'     => __( 'Manage global configuration, access control, and integrations.', 'kitsune-ai-platform' ),
            'modelsSubtitle'       => __( 'Connect AI providers and configure default models.', 'kitsune-ai-platform' ),
            'formsSubtitle'        => __( 'Build and manage AI-powered forms.', 'kitsune-ai-platform' ),
            'kbSubtitle'           => __( 'Manage knowledge sources and vector databases.', 'kitsune-ai-platform' ),
            'automationSubtitle'   => __( 'Automate tasks with AI-powered workflows.', 'kitsune-ai-platform' ),
            'analyticsSubtitle'    => __( 'Track usage, costs, and performance metrics.', 'kitsune-ai-platform' ),
            'integrationsSubtitle' => __( 'Connect external services and manage webhooks.', 'kitsune-ai-platform' ),
            'contentSubtitle'      => __( 'Generate AI-powered articles and images.', 'kitsune-ai-platform' ),
            'helpSubtitle'         => __( 'Get help, report issues, and request features.', 'kitsune-ai-platform' ),
            'inboxSubtitle'        => __( 'View and manage all chatbot conversations.', 'kitsune-ai-platform' ),

            // ── General Settings form labels ───────────────────────────────────
            'labelEnvironment'     => __( 'Environment', 'kitsune-ai-platform' ),
            'envProduction'        => __( 'Production', 'kitsune-ai-platform' ),
            'envStaging'           => __( 'Staging', 'kitsune-ai-platform' ),
            'envDevelopment'       => __( 'Development', 'kitsune-ai-platform' ),
            'labelTokenLimit'      => __( 'Global Monthly Token Limit', 'kitsune-ai-platform' ),
            'labelTokens'          => __( 'tokens', 'kitsune-ai-platform' ),
            'enableAutoUpdates'    => __( 'Enable automatic updates for prompt templates', 'kitsune-ai-platform' ),
            'labelDefaultLanguage' => __( 'Default Language', 'kitsune-ai-platform' ),
            'saveChanges'          => __( 'Save Changes', 'kitsune-ai-platform' ),

            // ── Notification Settings form labels ──────────────────────────────
            'spendingAlerts'         => __( 'Spending Alerts', 'kitsune-ai-platform' ),
            'budgetWarningLabel'     => __( 'Budget Warning (80% of limit)', 'kitsune-ai-platform' ),
            'budgetLimitReachedLabel'=> __( 'Budget Limit Reached (100%)', 'kitsune-ai-platform' ),
            'systemAlerts'           => __( 'System Alerts', 'kitsune-ai-platform' ),
            'apiConnectionErrors'    => __( 'API Connection Errors', 'kitsune-ai-platform' ),
            'pluginUpdatesAvailable' => __( 'Plugin Updates Available', 'kitsune-ai-platform' ),
            'labelNotifEmail'        => __( 'Notification Email', 'kitsune-ai-platform' ),
            'notifEmailHelp'         => __( 'All alerts will be sent to this email address.', 'kitsune-ai-platform' ),
            'savePreferences'        => __( 'Save Preferences', 'kitsune-ai-platform' ),

            // ── Advanced Settings form labels ──────────────────────────────────
            'labelRequestTimeout'    => __( 'Request Timeout', 'kitsune-ai-platform' ),
            'requestTimeoutHelp'     => __( 'Maximum time in seconds to wait for an AI provider response.', 'kitsune-ai-platform' ),
            'enableDebugMode'        => __( 'Enable Debug Mode', 'kitsune-ai-platform' ),
            'debugModeHelp'          => __( 'Log detailed API payloads and responses to wp-content/debug.log.', 'kitsune-ai-platform' ),
            'showBranding'           => __( 'Show "Powered by AI" Attribution', 'kitsune-ai-platform' ),
            'showBrandingHelp'       => __( 'Display a small attribution footer in the chatbot widget. Disabled by default — only enable if you wish to credit the platform.', 'kitsune-ai-platform' ),
            'labelExportImport'      => __( 'Export / Import Configuration', 'kitsune-ai-platform' ),
            'importSettings'         => __( 'Import Settings', 'kitsune-ai-platform' ),
            'exportPluginSettings'   => __( 'Export Plugin Settings', 'kitsune-ai-platform' ),
            'exportImportHelp'       => __( 'Import or export all plugin settings as a JSON file. API keys are excluded from exports.', 'kitsune-ai-platform' ),

            // ── Access Control labels ──────────────────────────────────────────
            'noRolesFound'           => __( 'No roles found', 'kitsune-ai-platform' ),
            'labelRole'              => __( 'Role', 'kitsune-ai-platform' ),
            'labelProtected'         => __( 'Protected', 'kitsune-ai-platform' ),
            'labelUseAI'             => __( 'Use AI', 'kitsune-ai-platform' ),
            'labelManageChatbots'    => __( 'Manage Chatbots', 'kitsune-ai-platform' ),
            'labelAccessSettings'    => __( 'Access Settings', 'kitsune-ai-platform' ),
            'savePermissions'        => __( 'Save Permissions', 'kitsune-ai-platform' ),

            // ── Chatbot – AllChatbots labels ───────────────────────────────────
            'searchChatbots'         => __( 'Search chatbots...', 'kitsune-ai-platform' ),
            'createFirstChatbotBtn'  => __( 'Create Your First Chatbot', 'kitsune-ai-platform' ),

            // ── Chatbot – CreateEdit labels ────────────────────────────────────
            'editChatbotTitle'       => __( 'Edit Chatbot', 'kitsune-ai-platform' ),
            'createNewChatbot'       => __( 'Create New Chatbot', 'kitsune-ai-platform' ),
            'chatbotConfigSubtitle'  => __( 'Configure your AI assistant in a few simple steps', 'kitsune-ai-platform' ),
            'basicInformation'       => __( 'Basic Information', 'kitsune-ai-platform' ),
            'aiConfiguration'        => __( 'AI Configuration', 'kitsune-ai-platform' ),
            'chatbotAppearance'      => __( 'Appearance', 'kitsune-ai-platform' ),
            'labelChatbotName'       => __( 'Chatbot Name', 'kitsune-ai-platform' ),
            'labelAvatar'            => __( 'Avatar', 'kitsune-ai-platform' ),
            'chooseIcon'             => __( 'Choose Icon', 'kitsune-ai-platform' ),
            'uploadCustom'           => __( 'Upload Custom', 'kitsune-ai-platform' ),
            'labelAIModel'           => __( 'AI Model', 'kitsune-ai-platform' ),
            'labelSystemPrompt'      => __( 'System Prompt', 'kitsune-ai-platform' ),
            'promptTemplatesLabel'   => __( 'Templates:', 'kitsune-ai-platform' ),
            'labelContextMemory'     => __( 'Context Memory', 'kitsune-ai-platform' ),
            'contextMemoryWarning'   => __( 'Enabling Context Memory will use more tokens.', 'kitsune-ai-platform' ),
            'labelHistoryLength'     => __( 'History Length', 'kitsune-ai-platform' ),
            'labelUseKB'             => __( 'Use Knowledge Base', 'kitsune-ai-platform' ),
            'labelSelectSources'     => __( 'Select Sources', 'kitsune-ai-platform' ),
            'labelContextChunksLimit'=> __( 'Context Chunks Limit', 'kitsune-ai-platform' ),
            'onlySyncedSources'      => __( 'Only synced sources are available for selection.', 'kitsune-ai-platform' ),
            'labelMode'              => __( 'Mode', 'kitsune-ai-platform' ),
            'modeLight'              => __( 'Light', 'kitsune-ai-platform' ),
            'modeDark'               => __( 'Dark', 'kitsune-ai-platform' ),
            'modeSystem'             => __( 'System', 'kitsune-ai-platform' ),
            'labelPrimaryColor'      => __( 'Primary Color', 'kitsune-ai-platform' ),
            'labelBubbleStyle'       => __( 'Chat Bubble Style', 'kitsune-ai-platform' ),
            'bubbleRounded'          => __( 'Rounded', 'kitsune-ai-platform' ),
            'bubbleSquare'           => __( 'Square', 'kitsune-ai-platform' ),
            'bubblePill'             => __( 'Pill', 'kitsune-ai-platform' ),
            'linkForm'               => __( 'Link Form', 'kitsune-ai-platform' ),
            'labelSelectForm'        => __( 'Select Form', 'kitsune-ai-platform' ),
            'labelDisplayTrigger'    => __( 'Display Trigger', 'kitsune-ai-platform' ),
            'immediately'            => __( 'Immediately', 'kitsune-ai-platform' ),
            'onFirstInteraction'     => __( 'On First Interaction', 'kitsune-ai-platform' ),
            'behaviorInteraction'    => __( 'Behavior & Interaction', 'kitsune-ai-platform' ),
            'labelWelcomeMessage'    => __( 'Welcome Message', 'kitsune-ai-platform' ),
            'labelSuggestedQuestions'=> __( 'Suggested Questions', 'kitsune-ai-platform' ),
            'addQuestion'            => __( 'Add Question', 'kitsune-ai-platform' ),
            'labelShowQuestions'     => __( 'When to Show Questions', 'kitsune-ai-platform' ),
            'sectionDeployment'      => __( 'Deployment', 'kitsune-ai-platform' ),
            'labelFloatingWidget'    => __( 'Floating Widget', 'kitsune-ai-platform' ),
            'labelWidgetPosition'    => __( 'Widget Position', 'kitsune-ai-platform' ),
            'bottomRight'            => __( 'Bottom Right', 'kitsune-ai-platform' ),
            'bottomLeft'             => __( 'Bottom Left', 'kitsune-ai-platform' ),
            'embedAccess'            => __( 'Embed & Access', 'kitsune-ai-platform' ),
            'labelDirectUrl'         => __( 'Direct URL', 'kitsune-ai-platform' ),
            'targetPages'            => __( 'Target Pages', 'kitsune-ai-platform' ),
            'labelDisplayOn'         => __( 'Display On', 'kitsune-ai-platform' ),
            'displayAllPages'        => __( 'All pages', 'kitsune-ai-platform' ),
            'displaySelectedPages'   => __( 'Selected pages only', 'kitsune-ai-platform' ),
            'displayExcludePages'    => __( 'All pages except selected', 'kitsune-ai-platform' ),
            'labelSelectPages'       => __( 'Select Pages', 'kitsune-ai-platform' ),
            'livePreview'            => __( 'Live Preview', 'kitsune-ai-platform' ),
            'updateChatbot'          => __( 'Update Chatbot', 'kitsune-ai-platform' ),
            'launchChatbot'          => __( 'Launch Chatbot', 'kitsune-ai-platform' ),

            // ── AI Models – ConnectedModels labels ────────────────────────────
            'labelNotConnected'      => __( 'Not Connected', 'kitsune-ai-platform' ),
            'labelChatModels'        => __( 'Chat Models', 'kitsune-ai-platform' ),
            'labelEmbeddingModels'   => __( 'Embedding Models', 'kitsune-ai-platform' ),
            'labelImageGenModels'    => __( 'Image Generation Models', 'kitsune-ai-platform' ),
            'showKey'                => __( 'Show', 'kitsune-ai-platform' ),
            'hideKey'                => __( 'Hide', 'kitsune-ai-platform' ),
            'changeApiKey'           => __( 'Change', 'kitsune-ai-platform' ),
            'saveProvider'           => __( 'Save', 'kitsune-ai-platform' ),
            'testApiKey'             => __( 'Test API Key', 'kitsune-ai-platform' ),

            // ── AI Models – DefaultSettings labels ────────────────────────────
            'noAIProvidersConnected' => __( 'No AI Platformviders Connected', 'kitsune-ai-platform' ),
            'selectDefaultModelDesc' => __( 'Select which AI model to use for each feature by default. These can be overridden per instance.', 'kitsune-ai-platform' ),
            'contentGeneration'      => __( 'Content Generation', 'kitsune-ai-platform' ),
            'imageGeneration'        => __( 'Image Generation', 'kitsune-ai-platform' ),
            'embeddingModel'         => __( 'Embedding Model', 'kitsune-ai-platform' ),
            'codeAnalysis'           => __( 'Code Analysis', 'kitsune-ai-platform' ),
            'fallbackModel'          => __( 'Fallback Model', 'kitsune-ai-platform' ),
            'saveDefaultModels'      => __( 'Save Default Models', 'kitsune-ai-platform' ),        );
    }
}
