feat: English and Chinese, and selectable chat text

- settings → general → language picks system, Chinese or English; the
  choice is stored on the device and read before the first frame
- our Chinese strings are translated through tr()/trArgs() and AppText,
  with the English in lib/l10n/en_*.dart; a missing entry falls back to
  Chinese and a test checks that every literal in lib has one
- AppText rebuilds on a language change (it depends on the resolved
  locale), so const text and whole pages switch at once; the built-in
  date/time pickers and selection menu follow the same language
- server and user data (titles, messages, prompts, paths) is never
  translated
- the chat list sits in a SelectionArea: long-press selects message text
  and shows the copy/select-all menu
- bump to 0.5.2
This commit is contained in:
blumia committed 2026-11-26 09:04:25 +08:00
1 parent da4bfb6826
commit 7b5bccf28f
42 files changed
+1943 -735

No files matched your search

+183
View File
@@ -0,0 +1,183 @@
// English strings for one part of the app; merged into L10n's table. Keys are
// the Chinese text the code writes, including {0}, {1} placeholders for text
// that is built from parts.
const Map<String, String> enChat = {
'附件不能超过 10MB': 'Attachments cannot be larger than 10 MB',
// Chat app bar and transcript
'返回父会话': 'Back to parent session',
'会话': 'Session',
'文件': 'Files',
'重试': 'Retry',
'载入更早的消息': 'Load earlier messages',
'正在思考…': 'Thinking…',
'此会话由 Lead 管理,接管后才能继续。':
'This session is managed by a Lead; take it over to continue.',
'无法向子智能体会话发送提示。': 'Cannot send prompts to a subagent session.',
'无法打开子代理会话': 'Cannot open the subagent session',
// Pending prompts and message actions
'📎 {0} 个附件': '📎 {0} attachments',
'附件': 'Attachment',
'未发送': 'Not sent',
'正在转入当前回合…': 'Joining this turn…',
'已排队,本轮结束后发送': 'Queued; sends after this turn',
'改为排队': 'Queue instead',
'转为转向': 'Steer instead',
'撤回': 'Withdraw',
'复制': 'Copy',
'复制消息': 'Copy message',
'撤回此消息及之后': 'Withdraw this and later messages',
'从这里分叉': 'Fork from here',
'复制回答': 'Copy answer',
'撤回消息?': 'Withdraw message?',
'这条消息及其之后的内容会从会话中删除,且无法恢复。':
'This message and everything after it will be removed from the session '
'and cannot be recovered.',
'没有可复制的文字': 'Nothing to copy',
'已复制': 'Copied',
// Tool steps and activity
'思考': 'Thinking',
'运行': 'Run',
'读取': 'Read',
'写入': 'Write',
'编辑': 'Edit',
'补丁': 'Patch',
'搜索': 'Search',
'列出': 'List',
'抓取': 'Fetch',
'任务': 'Task',
'子代理': 'Subagent',
'技能': 'Skill',
'生成图片': 'Generate image',
'工具': 'Tool',
'后台': 'Background',
'思考中…': 'Thinking…',
'思考过程': 'Thought process',
'有步骤失败 · {0} 次工具调用': 'A step failed · {0} tool calls',
'执行中 · {0} 次工具调用': 'Running · {0} tool calls',
'已完成 · {0} 次工具调用': 'Done · {0} tool calls',
'正在{0}': '{0} in progress',
'正在回复': 'Replying',
'思考中': 'Thinking',
'{0} 秒': '{0}s',
'输出较大,正在载入…': 'Large output, loading…',
'无输出': 'No output',
'无内容': 'No content',
// Errors
'未知错误': 'Unknown error',
'压缩失败:{0}': 'Compaction failed: {0}',
'OpenCode 发送消息失败,正在重试:{0}':
'OpenCode could not send the message; retrying: {0}',
'OpenCode 发送消息失败:{0}': 'OpenCode could not send the message: {0}',
'模型的认证失败,请在服务端重新登录或检查 API Key。':
'The model failed to authenticate. Sign in again on the server or check '
'the API key.',
'本轮已停止。': 'This turn was stopped.',
'用户停止了这条命令。': 'You stopped this command.',
'停止失败:{0}': 'Could not stop: {0}',
// Compaction
'正在压缩对话': 'Compacting conversation',
'对话已压缩': 'Conversation compacted',
'隐藏摘要': 'Hide summary',
'显示摘要': 'Show summary',
'正在生成摘要…': 'Generating summary…',
'(摘要为空)': '(No summary)',
'收起详情': 'Hide details',
'显示详情': 'Show details',
// Composer
'生成中,仍可输入…': 'Generating; you can still type…',
'发消息…': 'Send a message…',
'添加附件': 'Add attachment',
'停止': 'Stop',
'发送': 'Send',
'选择失败:{0}': 'Selection failed: {0}',
'发送方式': 'Delivery',
'转向当前回合': 'Steer into this turn',
'在下一步加入,工作继续': 'Join at the next step; work continues',
'排队': 'Queue',
'等本轮结束后发送': 'Send after this turn ends',
// Permissions and forms
'请求权限: {0}': 'Permission requested: {0}',
'、': ', ',
'允许一次': 'Allow once',
'总是允许': 'Always allow',
'拒绝': 'Deny',
'取消': 'Cancel',
'请填写:{0}': 'Required: {0}',
'请选择': 'Choose one',
'其他…': 'Other…',
'{0}({1})': '{0} ({1})',
// Usage sheet
'上下文占用': 'Context usage',
'模型': 'Model',
'已用 tokens': 'Tokens used',
'上下文上限': 'Context limit',
'输出预留': 'Reserved output',
'占用': 'Usage',
'本轮费用': 'Turn cost',
'输出预留按最多 32K tokens 计算,与官方客户端一致。':
'Reserved output assumes at most 32K tokens, matching the official '
'client.',
// Images
'图片': 'Image',
'图片无法显示': 'Cannot display image',
'无效的 data URL': 'Invalid data URL',
'不支持的 data URL': 'Unsupported data URL',
'图片加载失败:{0}': 'Could not load image: {0}',
'无法预览:{0}': 'Cannot preview: {0}',
'关闭': 'Close',
// Background commands
'正在执行 {0} 条命令': 'Running {0} commands',
'已结束': 'Ended',
'停止中…': 'Stopping…',
'读取输出…': 'Reading output…',
'等待输出…': 'Waiting for output…',
'没有输出': 'No output',
'回到最新': 'Jump to latest',
'已复制输出': 'Output copied',
'后台输出': 'Background output',
'运行中': 'Running',
'查看全部': 'View all',
'停止这个任务?': 'Stop this task?',
'读取输出失败:{0}': 'Could not read output: {0}',
// Slash palette
'压缩': 'Compact',
'初始化': 'Init',
'审查': 'Review',
'目标': 'Goal',
'新建扩展': 'New extension',
'权限': 'Permission',
'计划': 'Plan',
'反馈': 'Feedback',
'没有可用的指令': 'No commands available',
'这个目录还没有注册指令或技能':
'This directory has no commands or skills yet',
// Model picker and controls
'选择模型': 'Choose model',
'正在载入模型…': 'Loading models…',
'没有结果': 'No results',
'收藏': 'Favorites',
'取消收藏': 'Remove from favorites',
'最近': 'Recent',
'其它': 'Other',
'{0} 上下文': '{0} context',
'思考强度': 'Thinking effort',
'完成': 'Done',
'模式': 'Mode',
'先规划,不改动文件': 'Plan first without changing files',
'直接构建': 'Build directly',
// Diff view
'文件 {0}': 'File {0}',
'仅显示前 {0} 行,共 {1} 行': 'Showing the first {0} of {1} lines',
};
+95
View File
@@ -0,0 +1,95 @@
// English strings for one part of the app; merged into L10n's table. Keys are
// the Chinese text the code writes, including {0}, {1} placeholders for text
// that is built from parts.
const Map<String, String> enCore = {
// state.dart
'未连接': 'Not connected',
'保存失败:{0}': 'Could not save: {0}',
'配对链接无效或已过期': 'Pairing link is invalid or expired',
'服务器没有返回设备令牌': 'Server did not return a device token',
'配对失败': 'Pairing failed',
'Relay 服务器': 'Relay server',
'配对已失效,请重新配对': 'Pairing expired, please pair again',
'需要密码或已保存的凭据': 'Password or saved credentials required',
'登录成功但没有返回令牌': 'Signed in but no token was returned',
'密码错误,请重试': 'Wrong password, try again',
'连接超时:检查服务器与代理地址':
'Connection timed out: check the server and proxy address',
'连接被拒绝:服务器或代理未启动,或端口不对':
'Connection refused: server or proxy not running, or wrong port',
'无法解析地址:检查服务器或代理主机名':
'Could not resolve address: check the server or proxy hostname',
'网络不可达': 'Network unreachable',
'连接被断开:检查代理是否可用':
'Connection closed: check whether the proxy works',
'网络错误:{0}': 'Network error: {0}',
'使用 AI 压缩会话历史以减少上下文大小':
'Use AI to compact the session history and reduce context size',
'聊天': 'Chat',
'无法打开子代理会话:{0}': 'Could not open the subagent session: {0}',
'未连接服务器': 'Not connected to a server',
'服务器没有提供聊天目录': 'Server did not provide a chat directory',
'无法创建聊天目录:{0}': 'Could not create the chat directory: {0}',
'连接中断,正在重连…': 'Connection lost, reconnecting…',
'附件': 'Attachment',
// api/relay_tunnel.dart
'响应头无效': 'Invalid response headers',
'传输被中断': 'Transfer interrupted',
'无法连接 Relay:{0}': 'Could not connect to the relay: {0}',
'密钥协商失败:{0}': 'Key exchange failed: {0}',
'握手后收到明文帧': 'Received a plaintext frame after the handshake',
'解密失败:{0}': 'Decryption failed: {0}',
'Relay 连接出错:{0}': 'Relay connection error: {0}',
'Relay 连接已关闭({0} {1})': 'Relay connection closed ({0} {1})',
'Relay 连接已关闭': 'Relay connection closed',
'Relay 握手超时': 'Relay handshake timed out',
'WebSocket 子流被中断': 'WebSocket substream interrupted',
// pets/pet_library.dart
'文件为空': 'File is empty',
'宠物包不能超过 40MB': 'Pet pack cannot exceed 40 MB',
'不是有效的 zip 文件': 'Not a valid zip file',
'压缩包里没有 pack.json': 'The archive has no pack.json',
'pack.json 不是有效的宠物包': 'pack.json is not a valid pet pack',
'pack.json 缺少动画或状态': 'pack.json is missing animations or states',
'解压后超过 60MB': 'Extracted size exceeds 60 MB',
'动画 {0} 没有精灵图': 'Animation {0} has no sprite sheet',
'缺少精灵图 {0}': 'Missing sprite sheet {0}',
// model_prefs.dart
'默认': 'Default',
'无': 'None',
'极低': 'Minimal',
'低': 'Low',
'中': 'Medium',
'高': 'High',
'极高': 'Extra high',
// terminal_state.dart
'终端 {0}': 'Terminal {0}',
'终端 1': 'Terminal 1',
'终端': 'Terminal',
'已退出': 'Exited',
'退出码 {0}': 'Exit code {0}',
'终端连接失败': 'Terminal connection failed',
// api/transport.dart
'下载已取消': 'Download cancelled',
'代理地址无效:{0}': 'Invalid proxy address: {0}',
'不支持的代理协议:{0}(支持 http、https、socks5、socks5h)':
'Unsupported proxy protocol: {0} (supported: http, https, socks5, socks5h)',
'无法解析代理主机': 'Could not resolve the proxy host',
// api/models.dart
'偏好': 'Preference',
'参考': 'Reference',
'事实': 'Fact',
// api/shells.dart
'{0}秒': '{0}s',
'{0}分{1}秒': '{0}m{1}s',
// api/relay_transport.dart
'无法获取 WebSocket 令牌({0})': 'Could not get a WebSocket token ({0})',
};
+71
View File
@@ -0,0 +1,71 @@
// English strings for one part of the app; merged into L10n's table. Keys are
// the Chinese text the code writes, including {0}, {1} placeholders for text
// that is built from parts.
const Map<String, String> enServers = {
'需要密码': 'Password',
// Server list
'连接你的 OpenChamber 服务器': 'Connect to your OpenChamber server',
'添加服务器': 'Add server',
'配对链接': 'Pairing link',
'经由 Relay · {0}': 'Via Relay · {0}',
'经由 {0}': 'Via {0}',
'已连接': 'Connected',
'连接': 'Connect',
'编辑': 'Edit',
'删除': 'Delete',
'删除服务器?': 'Delete server?',
'“{0}”将从列表移除,设备令牌也会删除。':
'“{0}” will be removed from the list, and its device token will be deleted.',
'取消': 'Cancel',
'配对失败': 'Pairing failed',
// Connect form
'连接 {0}': 'Connect to {0}',
'名称': 'Name',
'如 我的电脑': 'e.g. My computer',
'通过 Relay 连接': 'Connect through Relay',
'端到端加密;服务器与设备令牌保持不变':
'End-to-end encrypted; the server and device token stay the same',
'服务器地址': 'Server address',
'代理(可选)': 'Proxy (optional)',
'http://… 或 socks5://…': 'http://… or socks5://…',
'自签证书指纹(可选)': 'Self-signed certificate fingerprint (optional)',
'SHA-256 十六进制': 'SHA-256 hex',
'信任自签名证书': 'Trust self-signed certificates',
'密码(如果需要)': 'Password (if required)',
'服务器密码;服务器未设置可留空':
'Server password; leave empty if the server has none',
// Pairing dialog
'在 OpenChamber 网页端打开「连接设备」,粘贴链接或直接扫描二维码。'
'链接里带一次性密钥,以及直连地址或私有 Relay。':
'In the OpenChamber web app, open “Connect a device”, then paste the link '
'or scan the QR code. The link carries a one-time key and either a '
'direct address or a private Relay.',
'扫码': 'Scan QR code',
'粘贴': 'Paste',
'配对并连接': 'Pair and connect',
// QR scanner
'没有可用的相机': 'No camera available',
'没有收到相机画面,请关闭后重试':
'No camera frames received; close and try again',
'还没识别到二维码,试着靠近一点或让二维码占满取景框':
'No QR code yet; move closer or fill the frame with the code',
'需要相机权限才能扫码。请在系统设置里允许 OpenChamber 使用相机。':
'Camera permission is required to scan. Allow OpenChamber to use the '
'camera in system settings.',
'无法打开相机:{0}': 'Could not open the camera: {0}',
'这不是 OpenChamber 配对二维码': 'This is not an OpenChamber pairing QR code',
'二维码解码出错,请重试': 'Could not decode the QR code; try again',
'这个相机不支持手电筒': 'This camera does not support the flashlight',
'重试': 'Retry',
'关闭': 'Close',
'手电筒': 'Flashlight',
'把配对二维码放进框内': 'Put the pairing QR code inside the frame',
'在 OpenChamber 网页端打开「连接设备」,选择二维码':
'In the OpenChamber web app, open “Connect a device” and choose the QR '
'code',
'{0} · 已扫描 {1} 帧 / 解码 {2} 次':
'{0} · {1} frames scanned / {2} decode attempts',
};
+167
View File
@@ -0,0 +1,167 @@
// English strings for one part of the app; merged into L10n's table. Keys are
// the Chinese text the code writes, including {0}, {1} placeholders for text
// that is built from parts.
const Map<String, String> enSessions = {
'选择一个会话': 'Choose a session',
'打开会话列表': 'Open the session list',
// ------------------------------------------------------------ knowledge
'这个会话没有关联目录': 'This session has no directory',
'搜索笔记、待办与计划': 'Search notes, todos, and plans',
'搜索笔记、待办、计划与记忆': 'Search notes, todos, plans, and memory',
'刷新': 'Refresh',
'笔记': 'Notes',
'待办': 'Todos',
'计划': 'Plans',
'记忆': 'Memory',
'重试': 'Retry',
'{0} 条笔记': '{0} notes',
'新建笔记': 'New note',
'还没有笔记': 'No notes yet',
'没有匹配的笔记': 'No matching notes',
'编辑': 'Edit',
'取消置顶': 'Unpin',
'置顶': 'Pin',
'删除': 'Delete',
'{0}/{1} 已完成': '{0}/{1} done',
'新建待办': 'New todo',
'还没有待办': 'No todos yet',
'没有匹配的待办': 'No matching todos',
'{0} 份计划': '{0} plans',
'新建计划': 'New plan',
'还没有计划': 'No plans yet',
'没有匹配的计划': 'No matching plans',
'团队共享': 'Shared',
'个人': 'Personal',
'记忆功能未启用': 'Memory is not enabled',
'还没有记忆': 'No memories yet',
'没有匹配的记忆': 'No matching memories',
'全局记忆': 'Global memory',
'项目记忆': 'Project memory',
'{0}({1})': '{0} ({1})',
'记忆由 agent 在会话中记录;你可以在这里修改或删除它。':
'Memory is recorded by the agent during sessions; you can edit or delete it here.',
'读取失败,请刷新': 'Could not load, refresh to retry',
'暂无': 'None',
'编辑笔记': 'Edit note',
'记点什么,供之后的会话参考': 'Write something for later sessions to read',
'保存': 'Save',
'要做什么': 'What needs doing',
'保存中…': 'Saving…',
'标题': 'Title',
'计划正文(Markdown)': 'Plan body (Markdown)',
'创建': 'Create',
'编辑记忆': 'Edit memory',
'事实': 'Fact',
'偏好': 'Preference',
'参考': 'Reference',
'内容': 'Content',
'取消': 'Cancel',
// ------------------------------------------------------------- sessions
'会话': 'Sessions',
'搜索': 'Search',
'新会话': 'New session',
'搜索会话': 'Search sessions',
'全部功能': 'All features',
'设置': 'Settings',
'暂无会话': 'No sessions',
'没有匹配的会话': 'No matching sessions',
'聊天': 'Chat',
'未命名项目': 'Untitled project',
'新建聊天': 'New chat',
'在此项目新会话': 'New session in this project',
'今天': 'Today',
'昨天': 'Yesterday',
'本周早些时候': 'Earlier this week',
'更早': 'Earlier',
'已置顶': 'Pinned',
'草稿': 'Draft',
'草稿 · {0}': 'Draft · {0}',
'丢弃草稿': 'Discard draft',
'归档': 'Archive',
'取消归档': 'Unarchive',
'收起子代理': 'Collapse subagents',
'展开子代理': 'Expand subagents',
'(无标题会话)': '(Untitled session)',
'子代理 · {0}': 'Subagent · {0}',
'已复制会话 ID': 'Session ID copied',
'重命名': 'Rename',
'复制会话 ID': 'Copy session ID',
'载入更多': 'Load more',
'隐藏已归档': 'Hide archived',
'显示已归档': 'Show archived',
'显示已归档 ({0})': 'Show archived ({0})',
'没有已归档的会话': 'No archived sessions',
'{0} 个子代理': '{0} subagents',
'“{0}”及其子会话将被删除,且无法恢复。':
'“{0}” and its subagent sessions will be deleted permanently.',
'服务器': 'Servers',
'经由 Relay · {0}': 'via Relay · {0}',
'{0}\n经由 {1}': '{0}\nvia {1}',
'已连接': 'Connected',
'添加服务器': 'Add server',
'配对链接': 'Pairing link',
'直连地址或 OpenChamber Relay': 'Direct address or OpenChamber Relay',
'断开当前连接': 'Disconnect',
'删除会话?': 'Delete session?',
// ---------------------------------------------------------------- files
'文件': 'Files',
'文件较大({0}),请下载后查看': 'File is large ({0}), download it to view',
'已保存': 'Saved',
'保存失败:{0}': 'Could not save: {0}',
'新建文件夹': 'New folder',
'新建文件': 'New file',
'名称': 'Name',
'例如 docs': 'e.g. docs',
'例如 notes.md': 'e.g. notes.md',
'名称里不能有斜杠': 'Names cannot contain slashes',
'项目知识': 'Project knowledge',
'终端': 'Terminal',
'关闭侧栏': 'Close sidebar',
'搜索当前目录…': 'Search this directory…',
'搜索子目录': 'Search subdirectories',
'正在搜索子目录…({0})': 'Searching subdirectories… ({0})',
'返回': 'Back',
'上一级': 'Up one level',
'预览': 'Preview',
'下载': 'Download',
'新建': 'New',
'更多': 'More',
'显示被 git 忽略的文件': 'Show git-ignored files',
'目录为空': 'Directory is empty',
'没有匹配的文件': 'No matching files',
'子目录结果': 'Subdirectory results',
'子目录里没有匹配的文件': 'No matching files in subdirectories',
'这个文件无法预览': 'This file cannot be previewed',
'正在下载': 'Downloading',
'{0} / {1}({2}%)': '{0} / {1} ({2}%)',
'已下载 {0}': 'Downloaded {0}',
'正在取消…': 'Canceling…',
'关闭': 'Close',
// ------------------------------------------------------------- terminal
'未启动': 'Not started',
'正在创建…': 'Creating…',
'正在连接…': 'Connecting…',
'连接中断,正在重连…': 'Connection lost, reconnecting…',
'运行中': 'Running',
'已退出': 'Exited',
'连接失败': 'Connection failed',
'切换终端': 'Switch terminal',
'新建终端': 'New terminal',
'键盘': 'Keyboard',
'重新启动': 'Restart',
'清屏': 'Clear screen',
'关闭此终端': 'Close this terminal',
// ---------------------------------------------------------- new session
'选择失败:{0}': 'Could not attach: {0}',
'我们今天要做什么?': 'What are we building today?',
'选择项目': 'Choose project',
'规划、构建或提问': 'Plan, build, or ask',
'添加附件': 'Add attachment',
'不关联项目,保存在 OpenChamber 的聊天目录':
'Not tied to a project, saved in OpenChamber\'s chat directory',
'没有可用的项目': 'No projects available',
};
+4
View File
@@ -0,0 +1,4 @@
// English strings for one part of the app; merged into L10n's table. Keys are
// the Chinese text the code writes, including {0}, {1} placeholders for text
// that is built from parts.
const Map<String, String> enSettings = {};
+249
View File
@@ -0,0 +1,249 @@
// English strings for one part of the app; merged into L10n's table. Keys are
// the Chinese text the code writes, including {0}, {1} placeholders for text
// that is built from parts.
const Map<String, String> enTools = {
// settings index
'设置': 'Settings',
'常规': 'General',
'语言': 'Language',
'跟随系统、中文或 English': 'Follow the system, Chinese or English',
'通用': 'Agent tools',
'智能体工具与记忆': 'Agent tools and memory',
'聊天': 'Chat',
'追问处理行为': 'Follow-up behavior',
'外观': 'Appearance',
'仅当前设备生效,不同步到服务器':
'Applies to this device only; not synced to the server',
'主题': 'Theme',
'主题模式与主题色': 'Theme mode and color',
'宠物': 'Pet',
'导入、启用与大小': 'Import, enable and size',
'帮助与关于': 'Help & about',
'关于': 'About',
'版本、服务端与开源许可': 'Version, server and open-source licenses',
// general: agent tools
'在聊天中': 'In chat',
'图表和原型': 'Charts and prototypes',
'让智能体在聊天中展示图表、表格、示意图和界面草图(与你的文件隔离),并请你在其中选择一个选项。':
'Let the agent show charts, tables, diagrams and UI sketches in chat (isolated from your files) and ask you to pick one of them.',
'图像': 'Images',
'让智能体用你选择的模型生成和编辑图像,费用由该模型的提供商收取。':
'Let the agent generate and edit images with the model you choose; the model\'s provider charges for it.',
'图像模型': 'Image model',
'你的提供商中没有图像模型': 'Your provider has no image models',
'不指定': 'None',
'密钥': 'Secrets',
'允许智能体在聊天中的私密卡片上向你索取 API 密钥、令牌或密码。值不会进入对话。':
'Let the agent ask you for API keys, tokens or passwords on a private card in chat. Values never enter the conversation.',
'通知': 'Notifications',
'工作完成或卡住时,智能体会通知你。':
'The agent notifies you when work finishes or gets stuck.',
'智能体知道的内容': 'What the agent knows',
'记忆': 'Memory',
'跨会话记住关于你和每个项目的事实。':
'Remember facts about you and each project across sessions.',
'项目知识': 'Project knowledge',
'让智能体读取并更新项目的笔记、待办和计划。':
'Let the agent read and update the project\'s notes, todos and plans.',
'用量限额': 'Usage limits',
'让智能体查看各提供商的限额及重置时间。':
'Let the agent check each provider\'s limits and reset times.',
'未选择': 'Not selected',
'默认': 'Default',
'默认模型': 'Default model',
'整理记忆': 'Tidy memory',
'整理记忆使用的模型': 'Model for tidying memory',
'知道了': 'Got it',
'每天一次,在没有会话运行时,智能体会在后台整理记忆:合并重复条目,删除已过时或项目文档中已有的内容。':
'Once a day, when no session is running, the agent tidies memory in the background: merging duplicates and removing entries that are obsolete or already in the project docs.',
'保存失败:{0}': 'Couldn\'t save: {0}',
'保存失败': 'Couldn\'t save',
'未知错误': 'Unknown error',
// language
'中文': 'Chinese',
'当前:{0}': 'Current: {0}',
'界面文字与系统自带的日期、时间选择器会一起切换。':
'The UI text switches together with the system\'s date and time pickers.',
// chat behavior
'运行中按发送时,消息默认怎么处理。与网页端设置同步。':
'What happens by default when you press send while a run is in progress. Synced with the web client\'s setting.',
'转向': 'Steer',
'排队': 'Queue',
'转向:在下一步加入当前回合,工作继续。':
'Steer: joins the current turn at the next step and work continues.',
'排队:等当前回合结束后再发送。':
'Queue: sends after the current turn ends.',
// theme
'跟随系统': 'Follow system',
'浅色': 'Light',
'深色': 'Dark',
'主题模式': 'Theme mode',
'主题色': 'Accent color',
'主题色 {0}': 'Accent color {0}',
'主题只保存在本机,不随服务器同步。':
'The theme is stored on this device only and does not sync with the server.',
// pet
'默认不提供宠物;宠物包只存放在本机。':
'No pet is included; pet packs stay on this device.',
'尚未导入宠物': 'No pet imported',
'导入一个宠物包(.zip)后,它会站在输入框上方。':
'Import a pet pack (.zip) and it will stand above the input box.',
'导入宠物包': 'Import pet pack',
'选择宠物包(.zip)': 'Select a pet pack (.zip)',
'已导入 {0}': 'Imported {0}',
'导入失败:{0}': 'Import failed: {0}',
'启用宠物': 'Enable pet',
'站在输入框上方,默认关闭': 'Stands above the input box; off by default',
'大小': 'Size',
'小': 'Small',
'中': 'Medium',
'大': 'Large',
'更换宠物包': 'Change pet pack',
'移除': 'Remove',
'移除宠物?': 'Remove pet?',
'本机保存的宠物包会被删除。':
'The pet pack stored on this device will be deleted.',
'取消': 'Cancel',
// about
'读取中…': 'Loading…',
'未连接': 'Not connected',
'未获取到': 'Not available',
'重新获取服务端版本': 'Fetch the server version again',
'手机客户端': 'Mobile client',
'应用': 'App',
'版本': 'Version',
'未知': 'Unknown',
'开源许可': 'Open-source licenses',
'本应用使用的第三方组件与它们的许可证':
'Third-party components used by this app and their licenses',
'服务端': 'Server',
'版本取自当前连接的服务器': 'Version comes from the currently connected server',
'下面列出随本应用打包的第三方组件;点开可阅读完整许可证。':
'Third-party components bundled with this app are listed below; tap one to read its full license.',
'该组件没有附带许可证文本。': 'This component has no license text.',
// features
'全部功能': 'All features',
'服务器与智能体的工具都收在这里。':
'Tools for servers and agents are collected here.',
'计划任务': 'Scheduled tasks',
'按时间向会话发送提示词': 'Send prompts to sessions on a schedule',
// scheduled task editor
'新建计划任务': 'New scheduled task',
'编辑计划任务': 'Edit scheduled task',
'保存中…': 'Saving…',
'保存': 'Save',
'运行位置:{0}': 'Runs in: {0}',
'任务名称': 'Task name',
'每日同步': 'Daily sync',
'提示词': 'Prompt',
'总结未完成任务并给出下一步建议':
'Summarize unfinished tasks and suggest next steps',
'计划类型': 'Schedule type',
'星期': 'Weekdays',
'日期': 'Date',
'时间': 'Time',
'Cron 表达式': 'Cron expression',
'每 5 分钟': 'Every 5 minutes',
'每小时': 'Every hour',
'每天 9 点': 'Daily at 9',
'每周一 9 点': 'Mondays at 9',
'每月 1 日': '1st of each month',
'时间点': 'Times',
'移除时间': 'Remove time',
'添加时间': 'Add time',
'时间按服务器所在时区。': 'Times follow the server\'s time zone.',
'选择模型': 'Select model',
'默认智能体': 'Default agent',
'模型': 'Model',
'智能体': 'Agent',
'使用默认模型与智能体': 'Use default model and agent',
'关闭后可固定这次运行使用的模型和智能体。':
'Turn off to pin the model and agent this run uses.',
'已启用': 'Enabled',
'暂停的任务不会按计划运行,但可以手动运行。':
'Paused tasks don\'t run on schedule but can still be run manually.',
'任务名称为必填项': 'Task name is required',
'任务名称不能超过 80 个字符': 'Task name can\'t exceed 80 characters',
'提示词为必填项': 'Prompt is required',
'提示词不能超过 20000 个字符': 'Prompt can\'t exceed 20,000 characters',
'时间格式必须是 HH:mm': 'Time must be in HH:mm format',
'请至少选择一个星期': 'Select at least one weekday',
'Cron 表达式为必填项': 'Cron expression is required',
'请选择模型,或改回使用默认模型':
'Select a model, or switch back to the default model',
// scheduled tasks list
'未连接服务器': 'Not connected to a server',
'服务器不支持计划任务': 'The server doesn\'t support scheduled tasks',
'加载计划任务失败:{0}': 'Couldn\'t load scheduled tasks: {0}',
'计划任务已保存': 'Scheduled task saved',
'保存任务失败': 'Couldn\'t save task',
'保存任务失败:{0}': 'Couldn\'t save task: {0}',
'更新任务失败': 'Couldn\'t update task',
'任务已启动': 'Task started',
'任务已在队列中等待': 'Task is already waiting in the queue',
'运行任务失败': 'Couldn\'t run task',
'运行任务失败:{0}': 'Couldn\'t run task: {0}',
'删除计划任务?': 'Delete scheduled task?',
'“{0}”及其计划会被删除。': '“{0}” and its schedule will be deleted.',
'计划任务已删除': 'Scheduled task deleted',
'删除任务失败': 'Couldn\'t delete task',
'刷新': 'Refresh',
'新建任务': 'New task',
'下次:{0}': 'Next: {0}',
'已暂停': 'Paused',
'上次运行 {0} · {1}': 'Last run {0} · {1}',
'从未运行': 'Never run',
'更多': 'More',
'立即运行': 'Run now',
'编辑': 'Edit',
'删除': 'Delete',
'运行位置': 'Runs in',
'重试': 'Retry',
'暂无计划任务。': 'No scheduled tasks yet.',
'发送到现有会话': 'Sends to an existing session',
// scheduled task schedule text and status
'周日': 'Sun',
'周一': 'Mon',
'周二': 'Tue',
'周三': 'Wed',
'周四': 'Thu',
'周五': 'Fri',
'周六': 'Sat',
'每天': 'Daily',
'每周': 'Weekly',
'一次性': 'Once',
'每天 {0}': 'Daily {0}',
'每周 {0} {1}': 'Weekly {0} {1}',
'未选': 'no days',
'一次性 {0} {1}': 'Once {0} {1}',
'未选日期': 'no date',
'Cron:{0}': 'Cron: {0}',
'、': ', ',
'成功': 'Success',
'错误': 'Error',
'运行中': 'Running',
'已排队': 'Queued',
'已跳过': 'Skipped',
'已取消': 'Cancelled',
'空闲': 'Idle',
'不到 1 分钟后': 'In less than a minute',
'刚刚': 'Just now',
'{0} 分钟后': 'In {0} min',
'{0} 分钟前': '{0} min ago',
'{0} 小时 {1} 分钟': '{0} hr {1} min',
'{0} 小时': '{0} hr',
'{0} 天 {1} 小时': '{0} days {1} hr',
'{0} 天': '{0} days',
'{0}后': 'In {0}',
'{0}前': '{0} ago',
};