// AGPL-3.0-only
//
// This is free software for the public good of a permacomputer
// hosted at permacomputer.com, an always-on computer by the people, for the
// people. One which is durable, easy to repair, and distributed like tap water
// for machine learning intelligence.
//
// The permacomputer is community-owned infrastructure optimized around
// four values:
//
//   TRUTH    - First principles, math & science, open source code
//   FREEDOM  - Voluntary partnerships, freedom from tyranny & corporate control
//   HARMONY  - Minimal waste, self-renewing systems with diverse connections
//   LOVE     - Be yourself without hurting others, cooperation through natural law
//
// This software contributes to that vision by making machine learning
// accessible to everyone through a free, open, embeddable chat interface.
// Code is seeds to sprout on any abandoned technology.
//
// Learn more: https://www.permacomputer.com
//
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
//
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
// https://www.permacomputer.com

// Chinese Simplified (中文（简体）) UI Translations
export const zh = {
	// Main buttons
	readPage: "📖 阅读页面",
	ttsAnything: "🔊 语音合成",
	translate: "🌐 翻译",
	smartTranslate: "🤖 智能翻译",
	uploadFile: "📁 上传文件",

	// Actions
	refreshModels: "🔄 刷新模型",
	clearChat: "🗑️ 清除聊天",
	fullChatRaw: "📋 完整聊天记录",
	fullChatHTML: "📄 完整聊天HTML",
	fullPageRaw: "📝 完整页面原始",
	downloadChat: "💾 下载聊天",

	// Chat UI
	sendButton: "发送",
	typePlaceholder: "输入您的消息...",
	clearChatConfirm: "清除所有对话历史记录？",
	askAnythingPlaceholder: "问任何事情...",
	askPagePlaceholder: "问关于这个页面...",
	enterTextToSpeakPlaceholder: "输入要说的文本...",
	processingTokens: "🤖 正在处理 {tokens} 个令牌...",

	// Modal headers
	aiAssistantTitle: "AI助手",
	ttsModalTitle: "文本转语音",
	translateModalTitle: "翻译",

	// System messages
	pageContentPrefix: "以下是网页内容：",
	additionalContext: "您已嵌入此页面。回答问题时，请考虑页面内容和上下文。",

	// Notifications and alerts
	languageChanged:
		"语言设置为 {lang}。刷新页面以查看所有界面元素的首选语言。",
	translationFailed: "翻译失败：{error}",
	ttsFailed: "语音合成失败：{error}",
	fullChatCopied: "完整聊天记录已复制为markdown！",
	fullChatHTMLCopied: "完整聊天记录已复制为HTML！",
	fullPageCopied: "完整页面已复制为markdown！",
	failedToCopy: "复制失败：{error}",
	failedToCopyPage: "复制页面失败：{error}",
	failedToCopyCode: "复制代码失败：{error}",
	errorOpeningModal: "打开AI模态框时出错：{error}",
	failedToReadPage: "读取页面失败：{error}",
	languageDetectionFailed: "语言检测失败：{error}",

	// Dropdown labels
	currentPage: "当前页面：{lang}",
	translatingTo: "翻译中...",
	detectingLanguage: "🔍 检测中...",

	// Intro/header text
	hermesIntro:
		'呈现nous research的<a href="https://nousresearch.com/hermes3/" target="_blank" style="color: rgba(255,255,255,0.9); text-decoration: underline;">hermes</a>大型语言模型',
	discussingPage: "您正在讨论",

	// TTS placeholder
	ttsPlaceholder: "文本转语音：写任何消息，让人工智能朗读出来！",
	translatePlaceholder: "输入任何要翻译的文本...",

	// Translation modal tabs
	translatePageTab: "📄 翻译页面",
	customTextTab: "✏️ 自定义文本",

	// TTS modal components
	speedLabel: "速度：",
	playText: "播放文本",

	// Translation modal content
	translatePageInfo: "将当前页面内容翻译成您选择的语言：",
	translateToLabel: "翻译为：",
	translateButton: "🌐 翻译",
	translatePageButton: "🌐 翻译页面",
	translateTextButton: "🌐 翻译文本",
	processingText: "处理中...",

	// Button labels for UI
	translationModal: "🌐 翻译模态框",
	translationModalHeading: "翻译模态框",

	// System prompt components
	systemPromptIntro: "您是Hermes AI，由Nous Research提供支持，通过uncloseai.com嵌入在网页中。您的任务是生成一个上下文智能的3段介绍，展示对特定页面内容、其目的和受众的深入理解。",
	systemPromptTask1: "1. 通过识别此页面的主题自然开始 - 具体化：提及页面标题、主要主题、作者姓名（如果存在）或关键目的。显示对内容类型（文章、文档、产品页面等）的即时理解",
	systemPromptTask2: "2. 引用页面中2-3个非常具体的细节 - 引用精确的短语，提及具体的数据点，指出您注意到的特定部分或功能。证明您已分析了实际内容，而不仅仅是浏览了一下。",
	systemPromptTask3: "3. 根据页面类型提供上下文相关的帮助 - 对于技术文档，提供解释概念；对于文章，提供讨论想法；对于产品，回答功能问题。具体说明您如何能够帮助这个特定内容。",
	systemPromptInstructions: "保持对话性但知识渊博。将您的介绍建立在实际页面内容上。避免通用陈述。用以下语言自然书写：",

	// More alerts and messages
	pleaseEnterText: "请先输入一些文本！",
	pleaseSelectFile: "请先选择一个文件！",
	pleaseEnterTranslateText: "请输入一些要翻译的文本！",

	// Read page status messages
	processingContent: "处理内容中...",
	readingPageClickToPause: "正在朗读页面... 点击暂停",
	pausedClickToResume: "已暂停。点击继续",
	downloadPageAudio: "下载此页面的文本转语音 .mp3 文件。",
	downloadChatAudio: "将此消息下载为 .mp3 文件。",
	deleteMessage: "删除消息",
	copyRawMarkdown: "复制原始文本 (Markdown)",
	copyHTML: "复制 HTML",
	aiModalNotAvailable: "AI模态框在此上下文中不可用",
	useCustomAPI: "使用自定义的OpenAI兼容端点。",
	remoteUrlTab: "🌐 远程网址",
	remoteUrlInfo: "输入要获取和翻译的网址:",
	remoteUrlPlaceholder: "https://example.com",
	fetchAndTranslate: "🌐 获取并翻译",

	// Unsandbox code execution settings
	useUnsandbox: "使用unsandbox.com API密钥进行代码执行。",
	unsandboxPublicKey: "公钥 (unsb-pk-...)",
	unsandboxSecretKey: "密钥 (unsb-sk-...)",

	// Vault settings
	vaultLoggedIn: "已登录",
	vaultLocked: "设置已锁定",
	vaultUnlocked: "设置已解锁",
	vaultCreate: "保存设置",
	vaultUnlock: "解锁设置",
	vaultLock: "锁定",
	vaultLockTooltip: "锁定您的设置（退出登录）",
	vaultPassword: "密码",
	vaultPasswordPlaceholder: "选择一个密码...",
	vaultConfirmPassword: "确认密码",
	vaultConfirmPlaceholder: "确认您的密码...",
	vaultWrongPassword: "密码不正确，请重试。",
	vaultPasswordMismatch: "两次输入的密码不一致。",
	vaultPasswordTooShort: "密码至少需要8个字符。",
	vaultCreated: "设置已保存！",
	vaultUnlockedMsg: "欢迎回来！",
	vaultLockedMsg: "设置已锁定。",
	vaultRequired: "请输入密码以访问设置。",
	vaultWelcome: "您的设置（模型、语音、API密钥）和聊天对话通过您选择的密码加密保护。这确保它们在此设备上的隐私安全。",
	vaultLine1: "您的设置和对话通过密码加密保护。",
	vaultLine2: "这确保它们在此设备上的隐私安全。",
	vaultWelcomeBack: "欢迎回来！请输入密码以访问您保存的设置和对话。",
	vaultCreateInfo: "选择一个密码来保护您的设置和对话。您的偏好设置、API密钥和聊天记录将被加密并存储在本地。",
	vaultSessionInfo: "在您锁定设置之前，您将保持登录状态。",
	vaultChangePassword: "更改密码",
	vaultDeleteVault: "删除设置",
	vaultDeleteConfirm: "确定要删除吗？这将从此设备上移除所有已保存的设置。",
	vaultCurrentPassword: "当前密码",
	vaultNewPassword: "新密码",
	vaultPasswordChanged: "密码已更改！",
	vaultDeleted: "设置已删除。",

	// Vault gate
	vaultGateTitle: "uncloseai.",
	vaultGateNew: "您的聊天记录、API密钥和设置通过AES-256加密，使用您选择的密码和设备特定的盐值。每个网站都有自己独立的保险库——您可以为每个网站使用不同的密码。选择一个密码以开始使用。",
	vaultGateReturning: "您的加密聊天记录、API密钥和设置正在等待。输入您的密码以解锁此网站的保险库。",
	vaultGateCreate: "创建保险库",
	vaultGateUnlock: "解锁",
};