Files
ai-app-skg/constants.ts
2025-12-26 16:03:17 +08:00

400 lines
20 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { AppLanguage, ChatMode } from './types';
export const DEFAULT_LANGUAGE = AppLanguage.ZH_CN;
export const TRANSLATIONS = {
[AppLanguage.ZH_CN]: {
appName: "社学搭子",
home: "首页",
tagline: "您的AI社会学助教",
homeDesc: "一个面向社会学研究者的数字化深度学习与学术空间。",
newChat: "新建会话",
settings: "设置",
inputPlaceholder: "输入您的问题...",
modeStandard: "搜索",
modeDeep: "推理",
modeFast: "极速",
tools: "创作工具",
modules: "学习场景",
studio: "多媒体实验室",
history: "历史记录",
imageGen: "图像生成",
videoGen: "视频生成",
uploadImage: "上传图片分析",
recordAudio: "录音提问",
generate: "生成",
download: "下载",
apiKeyLabel: "API Key 设置",
apiKeyDesc: "您的密钥将仅存储在本地浏览器中。",
backupRestore: "数据备份与恢复",
exportData: "导出数据",
importData: "导入数据",
clearData: "清除所有数据",
imageSize: "图片尺寸",
aspectRatio: "视频比例",
landscape: "横屏 16:9",
portrait: "竖屏 9:16",
generating: "生成中...",
thinking: "正在深度思考...",
transcribing: "正在转录音频...",
speaking: "朗读",
searchSources: "参考来源",
errorApiKey: "请先在设置中配置 API Key",
welcome: "请选择一个学习场景开始:",
videoPromptPlaceholder: "描述您想生成的社会学场景视频...",
imagePromptPlaceholder: "描述您想生成的图片...",
selectImageSize: "选择尺寸",
videoDuration: "生成视频可能需要几分钟,请耐心等待。",
confirmDelete: "确认删除此会话?",
confirmClearData: "确定要清除所有本地数据吗?此操作不可撤销。",
importSuccess: "导入成功!",
importFail: "导入失败。",
transcriptionFail: "转录失败",
micError: "麦克风访问被拒绝或不可用。",
genError: "生成失败",
noHistory: "暂无历史记录。开始一段对话吧!",
apiError: "错误:无法生成响应。请检查 API Key。",
languageLabel: "界面语言",
themeLabel: "主题模式",
themeAuto: "跟随系统",
themeLight: "浅色模式",
themeDark: "深色模式",
apiKeyIntro: "为了支持高质量图像生成和视频生成功能,请先选择您的 API Key。",
selectApiKeyBtn: "选择 API Key",
billingDocs: "了解计费文档",
today: "今天",
yesterday: "昨天",
last7Days: "过去7天",
older: "更早",
transcribePrompt: "请准确转录此音频内容。",
getStarted: "开始探索",
installApp: "安装应用",
installAppDesc: "将社学搭子安装到您的设备,获得原生应用般的流畅体验。",
install: "安装",
replyLanguageLabel: "AI 回复语言",
replyLangSystem: "跟随系统",
replyLangAuto: "跟随提问语言",
toast: {
copySuccess: "已复制到剪贴板",
genSuccess: "生成成功",
saveSuccess: "保存成功"
},
onboarding: {
step1: "欢迎使用社学搭子!这是一个专为社会学研究者打造的数字空间。",
step2: "你可以通过左侧的场景切换,选择从‘经典导读’到‘研究讨论’的不同模式。",
step3: "顶部的模式切换(搜索、推理、极速)能满足你从实时查资料到深度写论文的所有需求。",
done: "我知道了"
},
homeWelcome: "与经典的对话,与社会的重逢。",
homeFeatureTitle: "探索模块",
homeQuoteTitle: "社会学视点",
quotes: [
{ text: "人是悬挂在由他自己所编织的意义之网中的动物。", author: "克利福德·格尔茨" },
{ text: "想象力,这种能力可以使人看清个人生活与社会结构之间的联系。", author: "C·赖特·米尔斯" },
{ text: "社会学是关于社会行动的科学,其目的是通过对行动意义的解释来理解行动。", author: "马克斯·韦伯" },
{ text: "哲学家们只是用不同的方式解释世界,而问题在于改变世界。", author: "卡尔·马克思" }
],
scenarios: {
general: { title: "日常答疑", desc: "解答各类社会学基础问题", greeting: "你好!我是你的社会学学习搭子。有什么日常学习中的疑问需要我解答吗?" },
reading: { title: "经典导读", desc: "马克思、韦伯、涂尔干等经典著作导读", greeting: "欢迎来到经典导读。今天你想通过哪位大家(如韦伯、涂尔干)的著作来深化理解?" },
concept: { title: "概念解析", desc: "深入剖析社会学核心概念", greeting: "概念是社会学的基石。请告诉我你需要深度解析哪个概念?(例如:异化、不仅、科层制)" },
research: { title: "研究讨论", desc: "研究设计、方法论与田野调查建议", greeting: "你好,研究员。无论是定性还是定量,我都可以协助你完善研究设计或讨论方法论问题。" }
}
},
[AppLanguage.ZH_TW]: {
appName: "社學搭子",
home: "首頁",
tagline: "您的AI社會學助教",
homeDesc: "一個面向社會學研究者的數位化深度學習與學術空間。",
newChat: "新建對話",
settings: "設置",
inputPlaceholder: "輸入您的問題...",
modeStandard: "搜索",
modeDeep: "推理",
modeFast: "極速",
tools: "創作工具",
modules: "學習場景",
studio: "多媒體實驗室",
history: "歷史記錄",
imageGen: "圖像生成",
videoGen: "視頻生成",
uploadImage: "上傳圖片分析",
recordAudio: "錄音提問",
generate: "生成",
download: "下載",
apiKeyLabel: "API Key 設置",
apiKeyDesc: "您的金鑰將僅存儲在本地瀏覽器中。",
backupRestore: "數據備份與恢復",
exportData: "導出數據",
importData: "導入數據",
clearData: "清除所有數據",
imageSize: "圖片尺寸",
aspectRatio: "視頻比例",
landscape: "橫屏 16:9",
portrait: "豎屏 9:16",
generating: "生成中...",
thinking: "正在深度思考...",
transcribing: "正在轉錄音訊...",
speaking: "朗讀",
searchSources: "參考來源",
errorApiKey: "請先在設置中配置 API Key",
welcome: "請選擇一個學習場景開始:",
videoPromptPlaceholder: "描述您想生成的社會學場景視頻...",
imagePromptPlaceholder: "描述您想生成的圖片...",
selectImageSize: "選擇尺寸",
videoDuration: "生成視頻可能需要幾分鐘,請耐心等待。",
confirmDelete: "確認刪除此對話?",
confirmClearData: "確定要清除所有本地數據嗎?此操作不可撤銷。",
importSuccess: "導入成功!",
importFail: "導入失敗。",
transcriptionFail: "轉錄失敗",
micError: "麥克風訪問被拒絕或不可用。",
genError: "生成失敗",
noHistory: "暫無歷史記錄。開始一段對話吧!",
apiError: "錯誤:無法生成響應。請檢查 API Key。",
languageLabel: "介面語言",
themeLabel: "主題模式",
themeAuto: "跟隨系統",
themeLight: "淺色模式",
themeDark: "深色模式",
apiKeyIntro: "為了支持高質量圖像生成和視頻生成功能,請先選擇您的 API Key。",
selectApiKeyBtn: "選擇 API Key",
billingDocs: "了解計費文檔",
today: "今天",
yesterday: "昨天",
last7Days: "過去7天",
older: "更早",
transcribePrompt: "請準確轉錄此音訊內容。",
getStarted: "開始探索",
installApp: "安裝應用",
installAppDesc: "將社學搭子安裝到您的設備,獲得原生應用般的流暢體驗。",
install: "安裝",
replyLanguageLabel: "AI 回復語言",
replyLangSystem: "跟隨系統",
replyLangAuto: "跟隨提問語言",
toast: {
copySuccess: "已複製到剪貼簿",
genSuccess: "生成成功",
saveSuccess: "保存成功"
},
onboarding: {
step1: "歡迎使用社學搭子!這是一個專為社會學研究者打造的數字空間。",
step2: "你可以通過左側的場景切換,選擇從‘經典導讀’到‘研究討論’的不同模式。",
step3: "頂部的模式切換(搜索、推理、極速)能滿足你從實時查資料到深度寫論文的所有需求。",
done: "我知道了"
},
homeWelcome: "與經典的對話,與社會的重逢。",
homeFeatureTitle: "探索模組",
homeQuoteTitle: "社會學視角",
quotes: [
{ text: "人是懸掛在由他自己所編織的意義之網中的動物。", author: "克利福德·格尔茨" },
{ text: "想像力,這種能力可以使人看清個人生活與社會結構之間的聯繫。", author: "C·賴特·米爾斯" },
{ text: "社會學是關於社會行動的科學,其目的是通過對行動意義的解釋來理解行動。", author: "馬克斯·韋伯" },
{ text: "哲學家們只是用不同的方式解釋世界,而問題在於改變世界。", author: "卡尔·马克思" }
],
scenarios: {
general: { title: "日常答疑", desc: "解答各類社會學基礎問題", greeting: "你好!我是你的社會學學習搭子。有什麼日常學習中的疑問需要我解答嗎?" },
reading: { title: "經典導讀", desc: "馬克思、韋伯、涂爾幹等經典著作導讀", greeting: "歡迎來到經典導读。今天你想通過哪位大家(如韋伯、涂爾幹)的著作來深化理解?" },
concept: { title: "概念解析", desc: "深入剖析社會學核心概念", greeting: "概念是社會學的基石。請告訴我你需要深度解析哪個概念?(例如:異化、不僅、科層制)" },
research: { title: "研究討論", desc: "研究設計、方法論與田野調查建議", greeting: "你好,研究員。無論是定性還是定量,我都可以協助你完善研究設計或討論方法論問題。" }
}
},
[AppLanguage.JA]: {
appName: "ソシオパル",
home: "ホーム",
tagline: "あなたのAI社会学チューター",
homeDesc: "社会学研究者のためのデジタル・ディープラーニングと学術空間。",
newChat: "新しいチャット",
settings: "設定",
inputPlaceholder: "質問を入力...",
modeStandard: "検索",
modeDeep: "推論",
modeFast: "高速",
tools: "作成ツール",
modules: "学習モジュール",
studio: "メディアスタジオ",
history: "履歴",
imageGen: "画像生成",
videoGen: "動画生成",
uploadImage: "画像を分析",
recordAudio: "音声を録音",
generate: "生成",
download: "ダウンロード",
apiKeyLabel: "APIキー設定",
apiKeyDesc: "キーはブラウザにローカル保存されます。",
backupRestore: "バックアップと復元",
exportData: "データをエクスポート",
importData: "データをインポート",
clearData: "全データを消去",
imageSize: "画像サイズ",
aspectRatio: "アスペクト比",
landscape: "横向き 16:9",
portrait: "縦向き 9:16",
generating: "生成中...",
thinking: "思考中...",
transcribing: "文字起こし中...",
speaking: "読み上げ",
searchSources: "出典",
errorApiKey: "設定でAPIキーを構成してください",
welcome: "学習シナリオを選択して開始してください:",
videoPromptPlaceholder: "生成したい社会学のシーンを説明してください...",
imagePromptPlaceholder: "生成したい画像を説明してください...",
selectImageSize: "サイズを選択",
videoDuration: "動画生成には数分かかる場合があります。",
confirmDelete: "このチャットを削除しますか?",
confirmClearData: "すべてのデータを消去してもよろしいですか?この操作は元に戻せません。",
importSuccess: "インポートに成功しました!",
importFail: "インポートに失敗しました。",
transcriptionFail: "文字起こしに失敗しました",
micError: "マイクへのアクセスが拒否されたか、利用できません。",
genError: "生成に失敗しました",
noHistory: "履歴がありません。",
apiError: "エラー応答を生成できませんでした。APIキーを確認してください。",
languageLabel: "言語",
themeLabel: "テーマ",
themeAuto: "システムに従う",
themeLight: "ライトモード",
themeDark: "ダークモード",
apiKeyIntro: "高品質な画像・動画生成を利用するには、まずAPIキーを選択してください。",
selectApiKeyBtn: "APIキーを選択",
billingDocs: "課金ドキュメントを確認",
today: "今日",
yesterday: "昨日",
last7Days: "過去7日間",
older: "それ以前",
transcribePrompt: "この音声を正確に書き起こしてください。",
getStarted: "はじめる",
installApp: "アプリをインストール",
installAppDesc: "デバイスにインストールして、より良い体験を。",
install: "インストール",
replyLanguageLabel: "AI応答言語",
replyLangSystem: "システム言語に従う",
replyLangAuto: "入力言語に従う",
toast: {
copySuccess: "クリップボードにコピーしました",
genSuccess: "生成成功",
saveSuccess: "保存成功"
},
onboarding: {
step1: "ソシオパルへようこそ!社会学研究者のためのデジタル空間です。",
step2: "左側のメニューから、古典講読から研究アドバイザーまでシナリオを切り替えられます。",
step3: "上部のモード(検索、推論、高速)を使い分けることで、あらゆるニーズに対応します。",
done: "了解しました"
},
homeWelcome: "古典との対話、社会との再会。",
homeFeatureTitle: "機能エクスプローラー",
homeQuoteTitle: "社会学的視点",
quotes: [
{ text: "人間は、自分自身が紡いだ意味の網にぶら下がっている動物である。", author: "クリフォード・ギアツ" },
{ text: "想像力とは、個人の生活と社会構造のつながりを見極める能力である。", author: "C.ライト・ミルズ" },
{ text: "社会学とは、社会的行為の主観的な意味を解明し、その経過と結果を説明しようとする科学である。", author: "マックス・ウェーバー" },
{ text: "哲学者たちは世界を様々に解釈してきただけだ。大切なのは世界を変えることである。", author: "カール・マルクス" }
],
scenarios: {
general: { title: "Q&A", desc: "社会学に関する一般的な質問", greeting: "こんにちは!社会学の学習パートナーです。何か質問はありますか?" },
reading: { title: "古典講読", desc: "マルクス、ウェーバー、デュルケーム等のガイド", greeting: "古典講読へようこそ。今日はどの理論家について学びたいですか?" },
concept: { title: "概念分析", desc: "核心的概念の深掘り", greeting: "概念は社会学の基礎です。どの用語を分析したいですか?(例:異化、官僚制)" },
research: { title: "研究相談", desc: "調査設計、方法論のアドバイス", greeting: "こんにちは。調査設計や方法論についてサポートします。" }
}
},
[AppLanguage.EN]: {
appName: "SocioPal",
home: "Home",
tagline: "Your AI Sociology Tutor",
homeDesc: "A digital deep learning and academic space for sociology researchers.",
newChat: "New Chat",
settings: "Settings",
inputPlaceholder: "Ask a question...",
modeStandard: "Search",
modeDeep: "Reason",
modeFast: "Fast",
tools: "Creative Tools",
modules: "Learning Modules",
studio: "Media Studio",
history: "History",
imageGen: "Image Gen",
videoGen: "Video Gen",
uploadImage: "Analyze Image",
recordAudio: "Record Audio",
generate: "Generate",
download: "Download",
apiKeyLabel: "API Key Settings",
apiKeyDesc: "Your key is stored locally in your browser.",
backupRestore: "Backup & Restore",
exportData: "Export Data",
importData: "Import Data",
clearData: "Clear All Data",
imageSize: "Image Size",
aspectRatio: "Aspect Ratio",
landscape: "Landscape 16:9",
portrait: "Portrait 9:16",
generating: "Generating...",
thinking: "Thinking...",
transcribing: "Transcribing...",
speaking: "Read Aloud",
searchSources: "Sources",
errorApiKey: "Please configure your API Key in Settings first.",
welcome: "Choose a learning scenario to start:",
videoPromptPlaceholder: "Describe the sociology scenario video...",
imagePromptPlaceholder: "Describe the image to generate...",
selectImageSize: "Select Size",
videoDuration: "Video generation may take a few minutes.",
confirmDelete: "Delete this chat?",
confirmClearData: "Are you sure you want to clear all data? This cannot be undone.",
importSuccess: "Import successful!",
importFail: "Import failed.",
transcriptionFail: "Transcription failed",
micError: "Microphone access denied or not available.",
genError: "Generation failed",
noHistory: "No history yet.",
apiError: "Error: Could not generate response.",
languageLabel: "Language",
themeLabel: "Theme",
themeAuto: "System",
themeLight: "Light",
themeDark: "Dark",
apiKeyIntro: "To support high-quality image and video generation, please select your API Key first.",
selectApiKeyBtn: "Select API Key",
billingDocs: "Billing Documentation",
today: "Today",
yesterday: "Yesterday",
last7Days: "Last 7 Days",
older: "Older",
transcribePrompt: "Please transcribe this audio exactly as spoken.",
getStarted: "Get Started",
installApp: "Install App",
installAppDesc: "Install SocioPal on your device for a better experience.",
install: "Install",
replyLanguageLabel: "AI Reply Language",
replyLangSystem: "System Default",
replyLangAuto: "Match User Input",
toast: {
copySuccess: "Copied to clipboard",
genSuccess: "Generation successful",
saveSuccess: "Saved successfully"
},
onboarding: {
step1: "Welcome to SocioPal! A digital space designed for sociology researchers.",
step2: "Switch scenarios on the left to explore modes from 'Classic Readings' to 'Research Advisor'.",
step3: "The top mode switch (Search, Reason, Fast) caters to all needs from real-time info to deep analysis.",
done: "Got it"
},
homeWelcome: "Dialogue with Classics, Reconnection with Society.",
homeFeatureTitle: "Explore Modules",
homeQuoteTitle: "Sociological Perspective",
quotes: [
{ text: "Man is an animal suspended in webs of significance he himself has spun.", author: "Clifford Geertz" },
{ text: "The sociological imagination enables us to grasp history and biography and the relations between the two within society.", author: "C. Wright Mills" },
{ text: "Sociology is the science whose object is to interpret the meaning of social action and thereby give a causal explanation of its way and effects.", author: "Max Weber" },
{ text: "The philosophers have only interpreted the world, in various ways; the point is to change it.", author: "Karl Marx" }
],
scenarios: {
general: { title: "Daily Q&A", desc: "General sociology questions", greeting: "Hi! I'm your sociology study companion. Do you have any questions for me today?" },
reading: { title: "Classic Readings", desc: "Guide to Marx, Weber, Durkheim...", greeting: "Welcome to Classic Readings. Which foundational text or theorist shall we explore today?" },
concept: { title: "Concept Analysis", desc: "Deep dive into terms", greeting: "Concepts are the building blocks of sociology. Which term would you like to analyze deeply?" },
research: { title: "Research Advisor", desc: "Methodology and design", greeting: "Hello, researcher. I can assist with your research design, methodology, or field work questions." }
}
}
};