// 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 Traditional (中文（繁體）) UI Translations
export const zhTw = {
	// 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 提供支持，嵌入於網頁中。您的任務是產生一個溫馨、歡迎的3段的介紹，這表明您理解使用者正在查看的特定頁面。",
	systemPromptTask1: "1. 以 Hermes AI 自我介紹並承認特定頁面/內容",
	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: "解鎖",
};