/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

export default {
  test: 'test',
  user: 'User',
  client_ip: 'Client IP',
  server_ip: 'Server IP',
  kyuubi_instance: 'Kyuubi Instance',
  session_id: 'Session ID',
  operation_id: 'Operation ID',
  batch_id: 'Batch ID',
  batch_name: 'Batch Name',
  batch_type: 'Batch Type',
  create_time: 'Create Time',
  end_time: 'End Time',
  start_time: 'State Time',
  complete_time: 'Completed Time',
  state: 'State',
  app_id: 'Application ID',
  app_url: 'Application URL',
  app_state: 'Application State',
  app_diagnostic: 'Application Diagnostic',
  duration: 'Duration',
  statement: 'Statement',
  engine_address: 'Engine Address',
  engine_id: 'Engine ID',
  engine_type: 'Engine Type',
  share_level: 'Share Level',
  version: 'Version',
  engine_ui: 'Engine UI',
  failure_reason: 'Failure Reason',
  session_properties: 'Session Properties',
  no_data: 'No data',
  no_log: 'No log',
  follow: 'Follow',
  refresh: 'Refresh',
  log_truncated: 'Only the latest {count} lines are shown',
  previous: 'Previous',
  next: 'Next',
  run_sql_tips: 'Run a SQL to get result',
  result: 'Result',
  log: 'Log',
  operation: {
    text: 'Operation',
    delete_confirm: 'Delete Confirm',
    close_confirm: 'Close Confirm',
    cancel_confirm: 'Cancel Confirm',
    close: 'Close',
    cancel: 'Cancel',
    delete: 'Delete',
    run: 'Run'
  },
  login: {
    invalid_credentials: 'Invalid username or password.',
    server_error: 'Server error, please try again later.',
    failed: 'Login failed, please try again.'
  },
  data_agent: {
    title: 'Data Agent',
    welcome_desc:
      'Ask questions about your data in natural language. The agent will explore schemas, write SQL queries, and analyze results.',
    connection: 'Connection',
    jdbc_url: 'JDBC URL',
    server_default: 'Server default',
    jdbc_placeholder: 'Leave empty to use server default',
    try_asking: 'Try asking',
    quick_tables: 'What tables are available?',
    quick_schema: 'Describe the columns of a table',
    quick_records: 'Show me a few sample rows',
    auto_approve: 'Auto Approve',
    normal: 'Normal',
    strict: 'Strict',
    approval_tooltip:
      'Controls whether tool calls require your approval before execution',
    session_label: 'Session',
    session_tooltip: 'Session ID: {id}',
    datasource_label: 'Data:',
    datasource_tooltip_default:
      'Using server default data source (no JDBC URL specified)',
    model_placeholder: 'Model (optional)',
    model_tooltip:
      'Override the LLM model for this conversation. Leave empty to use the engine default.',
    stop: 'Stop',
    change_jdbc:
      'Start a new conversation from the right panel to change JDBC URL',
    starting_engine: 'Starting Data Agent engine...',
    waiting_response: 'Waiting for response...',
    input_placeholder: 'Ask a question about your data...',
    input_hint_send: 'send',
    input_hint_newline: 'new line',
    session_expired:
      'Session has expired. Start a new conversation from the panel on the right.',
    session_start_failed: 'Failed to start session: {message}',
    session_close_failed: 'Failed to close previous session, starting fresh.',
    malformed_response: 'Received malformed response from server',
    stream_error: 'Stream error',
    stream_incomplete: 'Response stream ended unexpectedly',
    engine_unresponsive:
      'The data agent engine is not responding. The session may be stale.',
    reset_session: 'New session',
    unknown_error: 'Unknown error',
    approval_failed: 'Approval failed: {message}',
    approval_not_found: 'Approval request is no longer pending',
    approval_required: 'Approval Required',
    arguments: 'Arguments',
    result: 'Result',
    approve: 'Approve',
    deny: 'Deny',
    approved: 'Approved',
    denied: 'Denied',
    running: 'Running...',
    done: 'Done',
    error: 'Error',
    generating: 'Generating...',
    copied: 'Copied',
    copy_failed: 'Copy failed',
    copy: 'Copy',
    history: 'Recent',
    conversations: 'Conversations',
    new_conversation: 'New conversation',
    untitled_session: 'New chat',
    close_conversation: 'Close conversation',
    close_conversation_confirm:
      'Close conversation "{title}"? This cannot be undone.',
    close_conversation_confirm_ok: 'Close',
    close_conversation_confirm_cancel: 'Cancel',
    rename_conversation: 'Rename',
    expand_rail: 'Expand panel',
    collapse_rail: 'Collapse panel',
    token_usage_tooltip: 'Context: {lastPrompt} • Output: {lastCompletion}',
    tokens_in: 'in',
    tokens_out: 'out',
    thinking: 'Thinking…',
    thoughts: 'Thoughts'
  },
  message: {
    delete_succeeded: 'Delete {name} Succeeded',
    delete_failed: 'Delete {name} Failed',
    close_succeeded: 'Close {name} Succeeded',
    close_failed: 'Close {name} Failed',
    cancel_succeeded: 'Cancel {name} Succeeded',
    cancel_failed: 'Cancel {name} Failed',
    run_sql_failed: 'Run SQL Failed',
    get_batches_failed: 'Get Batches Failed',
    get_sql_log_failed: 'Get SQL Log Failed',
    get_batch_log_failed: 'Get Batch Log Failed',
    get_sql_result_failed: 'Get SQL Result Failed',
    get_sql_metadata_failed: 'Get SQL Metadata Failed'
  }
}
