window.I18N_LOCALES = window.I18N_LOCALES || {};
window.I18N_LOCALES.en = {
  settings: "Settings",
  builder: "Builder",
  language: "Language",
  new_chat: "New Chat",
  knowledge_base: "Knowledge Base",
  explore: "Explore",
  memory: "Memroy",
  explore_title: "Explore",
  explore_subtitle: "Browse UltraRAG feature extensions here.",
  explore_feature_memory_title: "Memory",
  explore_feature_memory_desc: "Manage global memory and sync working memory to KB.",
  explore_feature_more_title: "More Features",
  explore_feature_more_desc: "More capabilities will be available here in the future.",
  no_knowledge_base: "No Knowledge Base",
  recent: "Recent",
  select_pipeline: "Select Pipeline",
  background: "Background",
  placeholder_chat_input: "Ask UltraRAG",
  greeting_explore: "What shall we explore today?",
  greeting_full: "Hi. What shall we explore today?",
  greeting_full_with_nickname: "Hi, {nickname}. What shall we explore today?",
  auth_account: "Account",
  auth_dialog_title: "Account",
  auth_logged_in_as: "Current user: {user}",
  auth_guest_mode: "Current user: default (guest)",
  auth_login_title: "Login",
  auth_register_title: "Register",
  auth_username_label: "Username",
  auth_password_label: "Password",
  auth_username_placeholder: "e.g. alice_01",
  auth_password_placeholder: "At least 6 characters",
  auth_login_action: "Login",
  auth_register_action: "Register",
  auth_new_user_register: "New User Register",
  auth_back_to_login: "Back to Login",
  auth_account_back: "Back",
  auth_nickname_title: "Set Nickname",
  auth_nickname_label: "Nickname",
  auth_nickname_placeholder: "Chinese or English nickname",
  auth_nickname_hint: "Leave empty to clear nickname.",
  auth_nickname_action: "Save Nickname",
  auth_nickname_saving: "Saving nickname...",
  auth_nickname_saved: "Nickname saved.",
  auth_change_password_title: "Change Password",
  auth_change_password_action: "Change Password",
  auth_current_password_label: "Current Password",
  auth_new_password_label: "New Password",
  auth_confirm_new_password_label: "Confirm New Password",
  auth_change_passwording: "Updating password...",
  auth_change_password_success: "Password updated successfully.",
  auth_change_password_login_required: "Please login before changing password.",
  auth_new_password_mismatch: "The new passwords do not match.",
  auth_new_password_same_as_current: "New password must differ from current password.",
  auth_admin_default_credentials: "Default admin account: admin / 12345678",
  auth_admin_change_password_tip: "Please change the default password after first login.",
  auth_model_settings_title: "Model Settings",
  auth_model_settings_save: "Save Model Settings",
  auth_model_retriever_group: "Retriever",
  auth_model_generation_group: "Generator",
  auth_model_api_key_label: "API Key",
  auth_model_base_url_label: "Base URL",
  auth_model_name_label: "Model Name",
  auth_model_optional_placeholder: "Leave empty to reuse default config",
  auth_model_settings_saving: "Saving model settings...",
  auth_model_settings_saved: "Model settings saved.",
  auth_model_settings_clear: "Clear Settings",
  auth_model_settings_clearing: "Clearing model settings...",
  auth_model_settings_cleared: "Model settings cleared. Reverted to pipeline defaults.",
  auth_model_settings_clear_confirm: "Clear saved model setting overrides? The pipeline defaults will be used afterwards.",
  auth_model_settings_login_required: "Please login before updating model settings.",
  auth_logout_action: "Logout",
  auth_form_required: "Please enter both username and password.",
  auth_logging_in: "Logging in...",
  auth_registering: "Registering...",
  auth_logging_out: "Logging out...",
  auth_login_success: "Logged in as {user}.",
  auth_register_success: "Registered and logged in as {user}.",
  auth_logout_success: "Logged out. You are now in guest mode.",
  auth_logout_confirm: "Log out current account?",

  bg_tasks_title: "Background Tasks",
  bg_tasks_refresh: "Refresh",
  bg_tasks_clear: "Clear",
  bg_tasks_clear_completed: "Clear completed",
  bg_tasks_close: "Close",
  bg_tasks_empty: "No background tasks",
  bg_task_running: "Running",
  bg_task_completed: "Completed",
  bg_task_failed: "Failed",
  bg_task_completed_title: "Background Task Completed",
  bg_task_failed_title: "Background Task Failed",
  bg_task_loading_details: "Loading task details...",
  bg_task_loading_details_failed: "Failed to load task details.",
  bg_task_task_not_found: "Task not found",
  bg_task_copy_result: "Copy Result",
  bg_task_load_current: "Load to Current Chat",
  bg_task_load_new: "Load to New Chat",
  bg_task_delete: "Delete",
  bg_task_question: "Question",
  bg_task_error: "Error",
  bg_task_unknown_error: "Unknown error",
  bg_task_processing: "Processing your request...",
  bg_task_loading_to_current: "Loading to chat...",
  bg_task_loading_to_new: "Loading to new chat...",
  bg_task_loaded: "Loaded",
  bg_task_loaded_new: "Background task loaded to a new chat",
  bg_task_loaded_current: "Background task loaded to the current chat",
  bg_task_load_failed: "Load Failed",
  bg_tasks_switch_chat: "Please switch to Chat to view background tasks.",
  bg_task_delete_confirm: "Are you sure you want to delete this task?",
  bg_task_delete_title: "Delete Task",
  bg_tasks_clear_completed_confirm: "This will remove all completed background tasks. Continue?",
  bg_tasks_clear_completed_title: "Clear Completed Tasks",

  kb_collections: "Knowledge Base",
  kb_connecting: "Connecting...",
  kb_connected: "Connected",
  kb_disconnected: "Disconnected",
  kb_not_configured: "Not configured",
  kb_endpoint: "Endpoint",
  kb_target: "Target",
  kb_loading_config: "Loading Configuration...",
  kb_current_db: "Current DB",
  kb_configure_db: "Configure DB",
  kb_new_collection: "New Knowledge Base",
  kb_import_knowledge: "Import Knowledge",
  kb_import_subtitle: "Process raw documents into vector index.",
  kb_delete_all: "Delete All",
  kb_clear_temp_files: "Clear all temporary files",
  kb_raw_files: "Raw Files",
  kb_upload: "Upload",
  kb_corpus: "Corpus",
  kb_chunks: "Chunks",
  kb_build_vector_index: "Build Vector Index",
  kb_collection_name: "Knowledge Base Name",
  kb_existing_collection: "Existing Knowledge Base",
  kb_mode: "Mode",
  kb_mode_new: "New",
  kb_mode_append: "Append",
  kb_mode_overwrite: "Overwrite",
  kb_cancel: "Cancel",
  kb_start_indexing: "Start Indexing",
  kb_database_settings: "Database Settings",
  kb_milvus_uri: "Milvus URI",
  kb_milvus_uri_help: "Supports local file paths or remote HTTP/TCP connections.",
  kb_token_optional: "Token (Optional)",
  kb_save_connect: "Save & Connect",
  kb_chunk_configuration: "Chunk Configuration",
  kb_chunk_backend: "Chunk Backend",
  kb_tokenizer_counter: "Tokenizer / Counter",
  kb_chunk_size: "Chunk Size",
  kb_use_title: "Use Title",
  kb_use_title_help: "Prepend document title to each chunk.",
  kb_embedding_configuration: "Embedding Configuration",
  kb_embedding_desc: "Configure the embedding model for vector indexing. Uses OpenAI-compatible API.",
  kb_api_key: "API Key",
  kb_api_key_help: "Your OpenAI or compatible API key.",
  kb_base_url: "Base URL",
  kb_base_url_help: "API endpoint. Change for Azure, local models, etc.",
  kb_model_name: "Model Name",
  kb_model_name_help: "e.g. text-embedding-3-small, text-embedding-ada-002",
  kb_save_config: "Save Config",
  kb_empty: "Empty",
  kb_empty_folder: "Empty Folder",
  kb_empty_no_visible: "Empty (No visible files)",
  kb_action_parse: "Parse",
  kb_action_chunk: "Chunk",
  kb_action_index: "Index",
  kb_library_empty_title: "No Knowledge Bases",
  kb_library_empty_hint: "Click \"New Knowledge Base\" to import documents.",
  kb_vectors: "vectors",
  kb_ready: "Ready",
  kb_delete_collection: "Delete Knowledge Base",
  kb_delete: "Delete",
  kb_files: "files",
  kb_uri_required: "URI is required",
  kb_validation_error: "Validation Error",
  kb_chunk_size_invalid: "Chunk size must be a positive number",
  kb_base_url_required: "Base URL is required",
  kb_model_name_required: "Model Name is required",
  kb_load_collections_failed: "Failed to load existing knowledge bases. Please try again.",
  kb_load_failed_title: "Load Failed",
  kb_collection_name_required: "Knowledge base name is required",
  kb_name_exists_title: "Name Already Exists",
  kb_collection_exists: "Knowledge base name \"{inputName}\" already exists{displayName}. Choose \"Append\" to add data or \"Overwrite\" to drop and rebuild.",
  kb_no_collections_title: "No Knowledge Bases",
  kb_no_collections_message: "No existing knowledge bases found. Use \"New\" mode to create one.",
  kb_select_collection_title: "Selection Required",
  kb_select_collection_message: "Please select a knowledge base.",
  kb_confirm_append: "Append data to the existing knowledge base \"{label}\"?",
  kb_confirm_append_title: "Append Confirmation",
  kb_confirm_overwrite: "Overwrite the existing knowledge base \"{label}\"? This will drop and rebuild the knowledge base.",
  kb_confirm_overwrite_title: "Overwrite Confirmation",
  kb_confirm_new: "Create a new knowledge base named \"{label}\"?",
  kb_confirm_new_title: "Create Knowledge Base",
  kb_continue: "Continue",
  kb_create: "Create",
  kb_uploading: "Uploading...",
  kb_upload_failed: "Upload failed",
  kb_upload_error: "Upload error: ",
  kb_delete_collection_action: "drop this knowledge base",
  kb_delete_file_action: "delete this file",
  kb_delete_confirm_message: "Permanently {action} ({name})?",
  kb_delete_confirm_title: "Delete Confirmation",
  kb_delete_failed: "Delete failed: ",
  kb_delete_no_permission_title: "No Delete Permission",
  kb_delete_no_permission_message: "You do not have permission to delete this knowledge base. Only admin or the collection owner can delete it.",
  kb_running_task: "Running {task}...",
  kb_task_error_title: "Task Error",
  kb_task_start_failed: "Task start failed",
  kb_task_failed_title: "Task Failed",
  kb_task_failed_message: "Task Failed: {error}",
  kb_clear_staging_title: "Clear Staging Area",
  kb_clear_staging_prompt: "Are you sure you want to clear ALL temporary files (Raw, Corpus, Chunks)?",
  kb_clear_all: "Clear All",
  kb_deleted_summary: "Deleted:\n- Raw: {raw} items\n- Corpus: {corpus} items\n- Chunks: {chunks} items\n\nTotal: {total} items",
  kb_note_errors: "Note: Some errors occurred:\n{errors}",
  kb_more_errors: "... and {count} more errors",
  kb_staging_cleared_title: "Staging Area Cleared",
  kb_clear_failed: "Clear failed: ",
  kb_clear_error: "Clear error: ",
  kb_folder_contents: "Folder Contents",
  kb_close: "Close",
  kb_visibility_title: "Knowledge Base Visibility",
  kb_visibility_collection_hint: "Knowledge Base: {name}",
  kb_visibility_mode_label: "Visibility",
  kb_visibility_mode_private: "Private (owner only)",
  kb_visibility_mode_public: "Public (all users)",
  kb_visibility_mode_shared: "Shared with selected users",
  kb_visibility_users_label: "Visible Users",
  kb_visibility_users_empty: "No shareable users found",
  kb_visibility_owner_hint: "Owner: {owner}",
  kb_visibility_readonly_hint: "You do not have permission to modify this collection.",
  kb_visibility_readonly_owner_hint: "You do not have permission to modify this collection. Current owner: {owner}.",
  kb_visibility_readonly_login_hint: "You are not logged in. Please sign in as owner ({owner}) before editing.",
  kb_visibility_saved: "Visibility settings saved.",
  kb_visibility_load_failed_title: "Failed to load visibility",
  kb_visibility_save_failed_title: "Failed to save visibility",
  memory_loading: "Loading memory...",
  memory_loaded: "Memory loaded",
  memory_load_failed: "Load failed",
  memory_load_failed_title: "Memory Load Failed",
  memory_load_failed_message: "Failed to load memory: {error}",
  memory_saving: "Saving memory...",
  memory_saved: "Memory saved",
  memory_save_failed: "Save failed",
  memory_save_failed_title: "Memory Save Failed",
  memory_save_failed_message: "Failed to save memory: {error}",
  memory_sync_to_kb: "Sync to KB",
  memory_sync_submitting: "Submitting sync task...",
  memory_sync_running: "Syncing memory to knowledge base...",
  memory_sync_success: "Sync completed",
  memory_sync_success_title: "Sync Succeeded",
  memory_sync_success_message: "Memory synced into collection: {collection}",
  memory_sync_failed: "Sync failed",
  memory_sync_failed_title: "Sync Failed",
  memory_sync_failed_message: "Failed to sync memory: {error}",
  memory_sync_timeout: "Sync timed out. Please try again later.",
  memory_clear_vectors_action: "Clear Memory Vectors",
  memory_clear_vectors_confirm_title: "Clear Working Memory Vectors",
  memory_clear_vectors_confirm_message: "Clear all vectors in the current user's working-memory collection and delete this user's working-memory files? (Global MEMORY is kept.)",
  memory_clear_vectors_running: "Clearing working memory vectors...",
  memory_clear_vectors_success: "Working memory vectors cleared",
  memory_clear_vectors_success_title: "Cleared",
  memory_clear_vectors_success_message: "Collection cleared: {collection}, deleted vectors: {count}, deleted working-memory files: {files}",
  memory_clear_vectors_failed: "Clear failed",
  memory_clear_vectors_failed_title: "Clear Failed",
  memory_clear_vectors_failed_message: "Failed to clear working memory vectors: {error}",
  memory_global_title: "Global Memory",
  memory_working_kb_title: "Working Memory",
  memory_working_kb_hint: "Internal working-memory collection cards for current user.",
  memory_working_kb_empty_title: "No working-memory collection yet",
  memory_working_kb_empty_desc: "No indexed working memory for this user. Click \"Sync to KB\" to create: {collection}",
  memory_editor_placeholder: "# MEMORY\n\nWrite persistent notes here.",

  common_new: "New",
  common_save: "Save",
  common_delete: "Delete",
  common_cancel: "Cancel",
  common_confirm: "Confirm",
  common_close: "Close",
  common_edit: "Edit",
  common_open: "Open",
  common_apply: "Apply",
  common_reject: "Reject",
  common_continue: "Continue",
  common_ok: "OK",
  common_primary: "Primary",
  common_secondary: "Secondary",
  common_create: "Create",
  common_retry: "Retry",
  common_rename: "Rename",
  common_unknown_error: "Unknown error",

  modal_notification: "Notification",
  modal_confirm_title: "Confirm",
  modal_choice_title: "Choose an option",
  modal_input_title: "Input",

  chat_interrupt_message: "A response is currently being generated. This action will interrupt the generation.\n\nTip: Use Background mode to run tasks without interruption.",
  chat_interrupt_title: "Generation in Progress",
  chat_interrupt_confirm: "Interrupt",
  chat_wait_for_response_message: "Please wait for the current response to finish.",
  chat_wait_for_response_title: "Please Wait",
  chat_rename_prompt: "Enter a new name for this chat:",
  chat_rename_title: "Rename Chat",
  chat_rename_placeholder: "e.g., My important conversation",
  chat_rename_required: "Name cannot be empty.",
  chat_untitled: "Untitled Chat",
  chat_delete_confirm: "Delete this chat?",
  chat_delete_title: "Delete Chat",
  chat_delete_all_confirm: "Delete all chat history?",
  chat_delete_all_title: "Clear All Chats",
  chat_delete_all_action: "Delete All",
  chat_clear_all_title: "Clear all chats",
  chat_sidebar_toggle_title: "Toggle Sidebar",
  chat_send_button_title: "Send",
  chat_stop_button_title: "Stop",
  chat_kb_required_message: "Please select a Knowledge Base before starting the conversation.",
  chat_kb_required_title: "Knowledge Base Required",
  chat_engine_required_message: "Please start the engine first.",
  chat_engine_required_title: "Engine Required",
  chat_engine_init_failed_message: "Engine initialization failed: {error}",
  chat_engine_error_title: "Engine Error",
  chat_error_title: "Chat Error",
  chat_backend_error_message: "Backend Error: {error}",
  chat_network_error_message: "Network Error: {error}",
  chat_show_thinking: "Show Thinking",
  chat_cited_references: "Cited References",
  chat_other_retrieved: "Other Retrieved",
  chat_copy_button_title: "Copy",
  chat_copy_code_button_title: "Copy code",
  chat_copy_table_button_title: "Copy table",
  chat_export_button_title: "Export",
  chat_export_format_title: "Export Chat",
  chat_export_format_message: "Choose an export format:",
  chat_export_format_markdown: "Markdown (.md)",
  chat_export_format_docx: "Word Document (.docx)",
  chat_export_docx_failed_title: "Export Failed",
  chat_export_docx_failed_message: "Failed to export DOCX: {error}",

  builder_editor_reset_message: "This will reset the editor content to match the current canvas state. Any manual edits in the editor will be lost.",
  builder_editor_reset_title: "Reset Editor",
  builder_editor_reset_action: "Reset",

  builder_no_pipeline_selected: "No Pipeline Selected",
  builder_ai_assistant: "AI Assistant",
  builder_nav_pipeline_yaml: "Pipeline YAML",
  builder_nav_pipeline: "Pipeline",
  builder_nav_parameters: "Parameters",
  builder_nav_params: "Params",
  builder_nav_prompts: "Prompts",
  builder_nav_prompt_templates: "Prompt Templates",
  builder_nav_chat: "Chat",
  builder_select_pipeline: "Select Pipeline",
  builder_pipeline_canvas: "Pipeline canvas",
  builder_pipeline_name_placeholder: "Pipeline Name...",
  builder_new_pipeline: "New Pipeline",
  builder_build: "Build",
  builder_yaml_placeholder: "# Write your pipeline YAML here...",
  builder_yaml_synced_title: "Synced with canvas",
  builder_yaml_syncing_title: "Syncing...",
  builder_yaml_error_title: "Parse error",
  builder_yaml_modified_title: "Editor modified (Save to apply)",
  builder_params_servers: "Servers",
  builder_params_reload: "Reload Parameters",
  builder_params_panel_title: "Parameters",
  builder_params_empty: "Please <strong>Build</strong> a pipeline first to configure parameters.",
  builder_prompt_files: "Prompt Files",
  builder_prompt_modified: "Modified",
  builder_prompt_search_placeholder: "Search prompts...",
  builder_new_prompt: "New Prompt",
  builder_prompt_empty: "Select a prompt file from the list or create a new one.",
  builder_prompt_template_placeholder: "# Jinja Template...",
  builder_console_title: "Console",
  builder_console_toggle: "Toggle Console",
  builder_params_back: "Return to Flow Canvas",
  builder_params_config_title: "Parameter Configuration",
  builder_params_hint: "Select a server from the left to configure its parameters, or expand all sections below.",
  builder_params_save: "Save Parameters",
  builder_params_enter_chat: "Enter Chat Mode",
  builder_params_simplified: "Simplified",
  builder_params_toggle_title: "Toggle between simplified and full parameter display",
  builder_node_add_title: "Add Node",
  builder_node_tab_tool: "Tool",
  builder_node_tab_branch: "Branch",
  builder_node_tab_loop: "Loop",
  builder_node_tab_custom: "Custom",
  builder_node_label_server: "Server",
  builder_node_label_function: "Function",
  builder_node_label_cases: "Cases",
  builder_node_label_iterations: "Iterations",
  builder_node_label_json_config: "JSON Config",
  builder_node_confirm_add: "Confirm Add",
  builder_step_editor_title: "Edit Node Configuration",
  builder_node_no_tools: "No tools",
  builder_node_select_server: "Select Server",
  builder_node_no_servers: "No Servers",
  builder_node_select_tool_error: "Select a tool",
  builder_node_custom_empty_error: "Custom value cannot be empty",
  builder_node_insert_here: "Insert Node Here",
  builder_node_add: "Add Node",
  builder_parse_empty_error: "Empty",
  builder_loop_title: "Loop ({times}x)",
  builder_open_context: "Open Context →",
  builder_empty_loop: "Empty Loop",
  builder_branch: "Branch",
  builder_open_router: "Open Router →",
  builder_router_logic: "Router Logic",
  builder_case_label: "Case: {name}",
  builder_empty_case: "Empty Case",
  builder_add_case: "+ Case",
  builder_delete_branch: "Delete Branch",
  builder_custom_object: "Custom Object",
  builder_exit_context: "Exit Context ✕",
  builder_context_root: "Root",
  builder_context_loop: "Loop",
  builder_context_router: "Router",
  builder_context_case: "Case:{name}",
  builder_context_node: "Node",
  builder_no_pipelines: "No pipelines",
  builder_pipeline_built_title: "Built",
  builder_build_running: "Building...",
  builder_build_success: "Build Success",
  builder_build_failed: "Build Failed",
  builder_log_engine_invalidated: "Pipeline '{name}' modified. Engine invalidated.",
  builder_load_pipeline_failed: "Failed to load pipeline: {error}",
  builder_pipeline_ready: "Pipeline '{name}' parameters loaded. Ready to Chat.",
  builder_pipeline_name_required: "Pipeline name is required",
  builder_save_aborted_yaml_error: "Save aborted due to YAML errors.",
  builder_save_failed_status: "Save failed: {status}",
  builder_pipeline_saved: "Pipeline saved.",
  builder_error_message: "Error: {error}",
  builder_save_failed_message: "Save failed: {error}",
  builder_save_error_title: "Save Error",
  builder_save_before_build: "Please save the pipeline before building.",
  builder_save_pipeline_first: "Please save the pipeline first.",
  builder_building_pipeline: "Building pipeline \"{name}\"...",
  builder_pipeline_built_log: "Pipeline built.",
  builder_load_parameters_failed: "Failed to load parameters: {error}",
  builder_build_failed_message: "Build failed: {error}",
  builder_build_error_title: "Build Error",
  builder_delete_pipeline_confirm: "Delete this pipeline?",
  builder_delete_pipeline_title: "Delete Pipeline",
  builder_invalid_pipeline_name: "Invalid name. Use letters, numbers, underscores, hyphens. Start with letter or underscore.",
  builder_pipeline_renamed: "Pipeline renamed to \"{name}\".",
  builder_unsaved_changes_message: "You have unsaved changes. Continuing may discard them. Do you want to {action}?",
  builder_unsaved_changes_title: "Unsaved changes",
  builder_action_continue: "continue",
  builder_action_create_pipeline: "create a new pipeline",
  builder_action_enter_chat: "enter Chat mode",
  builder_action_switch_pipeline: "switch to another pipeline",
  builder_action_refresh_pipeline_list: "refresh pipeline list",
  builder_workspace_switch_unsaved_message: "Changing workspace mode will discard unsaved changes. Continue?",
  builder_mode_pipeline: "Pipeline",
  builder_mode_parameters: "Parameters",
  builder_mode_prompts: "Prompts",
  builder_switched_mode: "Switched to {mode} mode.",
  builder_yaml_parse_failed: "YAML parse failed",
  builder_yaml_parse_failed_message: "YAML cannot be parsed: {error}",
  builder_yaml_invalid_format: "Invalid pipeline format: expected \"pipeline\" or \"steps\" array",
  builder_new_pipeline_prompt: "Enter a name for the new pipeline:",
  builder_invalid_pipeline_name_full: "Invalid pipeline name. Use only letters, numbers, underscores and hyphens. Must start with a letter or underscore.",
  builder_invalid_name_title: "Invalid Name",
  builder_params_not_found: "Parameters not found.",
  builder_params_saved: "Parameters saved.",
  builder_params_reloaded: "Parameters reloaded.",
  builder_pipeline_not_ready_message: "Please build and save parameters before entering Chat.",
  builder_pipeline_not_ready_title: "Pipeline not ready",
  builder_build_pipeline_first: "Please build the pipeline first.",
  builder_clear_steps_confirm: "Clear all steps?",
  builder_clear_steps_title: "Clear Steps",
  builder_clear_steps_action: "Clear",
  builder_prompt_load_failed: "Failed to load prompt: {error}",
  builder_prompt_discard_confirm: "Discard unsaved changes in \"{name}\"?",
  builder_discard: "Discard",
  builder_prompt_delete_confirm: "Delete \"{name}\"?",
  builder_prompt_delete_title: "Delete Prompt",
  builder_prompt_deleted: "Deleted: {path}",
  builder_prompt_delete_failed: "Failed to delete prompt: {error}",
  builder_prompt_rename_prompt: "Enter the new file name:",
  builder_prompt_rename_title: "Rename Prompt",
  builder_prompt_rename_placeholder: "e.g., my_prompt.jinja",
  builder_prompt_rename_required: "Prompt filename cannot be empty.",
  builder_prompt_renamed: "Renamed to: {name}",
  builder_prompt_rename_failed: "Failed to rename prompt: {error}",
  builder_prompt_list_load_failed: "Failed to load prompts: {error}",
  builder_prompt_list_load_failed_ui: "Failed to load prompts.",
  builder_prompt_list_empty: "No prompt files found.",
  builder_prompt_new_prompt: "Enter the prompt file name:",
  builder_prompt_new_placeholder: "e.g., my_prompt.jinja",
  builder_prompt_created: "Created prompt: {name}",
  builder_prompt_create_failed: "Failed to create prompt: {error}",
  builder_prompt_saved: "Saved: {path}",
  builder_prompt_save_failed: "Failed to save prompt: {error}",

  builder_ai_back: "Back to list",
  builder_ai_context_no_pipeline: "No pipeline selected",
  builder_ai_recent: "Recent",
  builder_ai_new_session: "New session",
  builder_ai_delete_session: "Delete session",
  builder_ai_welcome_title: "UltraRAG AI Assistant",
  builder_ai_welcome_desc: "I can help you build pipelines, configure parameters, and edit prompts.",
  builder_ai_welcome_hint: "Click the settings icon to configure your API connection.",
  builder_ai_chip_pipeline_adjustment: "Pipeline Adjustment",
  builder_ai_chip_prompt_adaptation: "Prompt Adaptation",
  builder_ai_chip_parameter_settings: "Parameter Settings",
  builder_ai_chip_freeform_tuning: "Free-form Tuning",
  builder_ai_prompt_pipeline_adjustment: "Update the current RAG pipeline to include a citation module, ensuring the final output displays source references for fact-checking purposes.",
  builder_ai_prompt_prompt_adaptation: "Optimize the system prompt for the [Insert Domain, e.g., Medical/Legal] domain. Please refine the instructions to ensure the generated responses strictly adhere to professional terminology and logical accuracy suitable for this field.",
  builder_ai_prompt_parameter_settings: "Reconfigure the generation backend. Switch the backend type to OpenAI, set the model name to [Insert Model Name, e.g., Llama-3-70B], and update the API endpoint to port [Insert Port, e.g., 8000].",
  builder_ai_prompt_freeform_tuning: "I want to redesign my RAG workflow based on this article/paper: [Insert Link]. Please analyze its core methodologies and assist me in constructing a similar pipeline architecture.",
  builder_ai_input_placeholder: "Ask me anything about your pipeline...",
  builder_ai_input_hint: "Press Enter to send, Shift+Enter for new line",
  builder_ai_settings_title: "AI Settings",
  builder_ai_settings_provider: "Provider",
  builder_ai_settings_base_url: "API Base URL",
  builder_ai_settings_api_key: "API Key",
  builder_ai_settings_model: "Model",
  builder_ai_settings_save_test: "Save & Test",
  builder_ai_settings_saved_success: "Settings saved successfully!",
  builder_ai_settings_save_failed: "Failed to save settings: {error}",
  builder_ai_settings_api_key_required: "Please enter an API key",
  builder_ai_settings_testing: "Testing connection...",
  builder_ai_settings_connection_success: "Connection successful! Model: {model}",
  builder_ai_settings_connection_failed: "Connection failed: {error}",
  builder_ai_toggle_visibility: "Toggle visibility",
  builder_ai_send: "Send",
  builder_ai_stop: "Stop",
  builder_ai_stopped: "Generation stopped.",
  builder_ai_provider_openai: "OpenAI",
  builder_ai_provider_azure: "Azure OpenAI",
  builder_ai_provider_anthropic: "Anthropic",
  builder_ai_provider_custom: "Custom API",
  builder_ai_status_connected: "Connected to {model}",
  builder_ai_status_configured_pending: "Configured - Save & Test to verify",
  builder_ai_status_not_configured: "Not configured",
  builder_ai_sessions_empty: "No sessions yet",
  builder_ai_action_modify_pipeline: "Pipeline Modification",
  builder_ai_action_modify_prompt: "Prompt Modification",
  builder_ai_action_modify_parameter: "Parameter Change",
  builder_ai_action_modify_generic: "Modification",
  builder_ai_no_response: "No response",
  builder_ai_context_none: "No active context",
  builder_ai_context_prompt_editing: "Editing Prompt: {file}",
  builder_ai_context_prompt_panel: "Prompt panel",
  builder_ai_context_parameters_editing: "Editing Parameters for {pipeline}",
  builder_ai_context_parameters_no_pipeline: "Parameters panel (no pipeline selected)",
  builder_ai_context_pipeline_editing: "Editing Pipeline YAML: {pipeline}",
  builder_ai_context_pipeline_canvas: "Pipeline canvas",
  builder_ai_error_generic: "Request failed. Please try again.",
  builder_ai_error_list_index: "Upstream model returned an invalid response (list index out of range). Please retry or check model settings.",
  builder_ai_error_timeout: "Request timed out. Check network or model service status and retry.",
  builder_ai_error_network: "Network error. Please check your connection or proxy settings.",
  builder_ai_error_with_message: "Request failed: {error}",
  builder_ai_error_request_failed: "Request failed",
  builder_ai_pipeline_change_ignored: "Pipeline change ignored",
  builder_ai_pipeline_change_ignored_hint: "You are editing parameters. Ask explicitly to update the pipeline YAML or switch to Pipeline view.",
  builder_ai_action_unknown: "Unknown action type: {type}",
  builder_ai_action_applied: "✓ Applied",
  builder_ai_action_applied_log: "AI modification applied successfully.",
  builder_ai_action_apply_failed: "Failed to apply modification: {error}",
  builder_ai_action_rejected: "Rejected",
  builder_ai_session_new: "New Session",
  builder_ai_pipeline_updated_title: "Pipeline updated",
  builder_ai_pipeline_updated_message: "Replaced YAML for {name}",
  builder_ai_pipeline_updated_message_default: "AI updated current YAML",
  builder_ai_prompt_updated_title: "Prompt updated",
  builder_ai_prompt_updated_message: "Updated {name}",
  builder_ai_prompt_updated_message_default: "AI updated the current prompt",
  builder_ai_params_load_failed: "Failed to load parameters before apply: {error}",
  builder_ai_parameter_updated_title: "Parameter updated",
  builder_ai_parameter_updated_message: "Set {path}",
  ai_session_delete_confirm: "Are you sure you want to delete this session?",
  ai_session_delete_title: "Delete Session",
  ai_session_delete_all_confirm: "Are you sure you want to delete all {count} session(s)?",
  ai_session_delete_all_title: "Delete All Sessions",
  ai_session_delete_all_action: "Delete All",

  status_ready: "Ready",
  status_offline: "Offline",
  status_engine_offline: "Engine Offline",
  status_thinking: "Thinking...",
  status_initializing: "Initializing...",
  status_reconnecting: "Reconnecting...",
  status_params_missing: "Params Missing",
  status_engine_ready: "Engine Ready",
  status_engine_error: "Engine Error",
  status_error: "Error",
  status_interrupted: "Interrupted",
  status_suspending: "Suspending..."
};
