export const en = { memoryActivity: 'Memory activity', memoryActivityHint: 'Changes to each Bot’s Memory in the last 7 days.', memoryChanges: (count: number) => (count === 1 ? '1 change' : `${count} changes`), memoryUnavailable: 'Memory unavailable', memoryActivityEmpty: 'No Bots yet.', memoryItems: (count: number) => (count === 1 ? '1 item' : `${count} items`), memoryEmptyFolder: 'This folder is empty.', memoryKind: { text: 'Text', image: 'Image', data: 'Data', other: 'File' }, memoryViews: 'Memory view', memoryViewFiles: 'Files', memoryViewChanges: 'Changes', memoryChangesEmpty: 'No changes yet.', memoryChangesMore: 'Load older changes', memoryChangeStatus: { pending: 'Not accepted yet', 'needs-repair': 'Needs repair', }, memoryChangeTitle: 'Change', memoryChangeOpen: 'Shows which files changed', memoryFileChange: { added: 'Added', modified: 'Changed', deleted: 'Deleted' }, memoryChangeBinary: 'Binary file, no text to compare.', memoryChangeNoText: 'No text changes.', memoryChangeNoFiles: 'This change has no files.', memoryChangeFiles: (count: number) => (count === 1 ? '1 file' : `${count} files`), memoryDiffCounts: (added: number, removed: number) => `${added} added, ${removed} removed`, memoryPinned: { soul: 'Persona and rules', coreMemory: 'Always remembered' }, memoryPinnedMissing: 'Not created yet', memoryAboutTitle: 'About this file.', memoryAbout: { soul: 'This is the Bot’s character, voice and standing rules. It reads them at the start of every new chat, so an edit applies from the next chat. You can change anything here.', coreMemory: 'This is what the Bot always remembers: a short index of its Memory and a few key facts, gathered from your chats. It reads this at the start of every new chat. It can be out of date; you can edit anything here.', }, memoryNotAttached: 'Memory isn’t running on this computer, so this Bot’s files can’t be shown.', memoryEdit: (name: string) => `Edit ${name}`, memoryEditShort: 'Edit', memoryMore: (name: string) => `More for ${name}`, memoryCopy: 'Copy all', memoryHistory: 'History', memoryHistoryTitle: (name: string) => `${name} history`, memoryHistoryEmpty: 'No saved changes to this file yet.', memorySave: 'Save', memoryStopEditing: 'Stop editing', memoryEditor: (name: string) => `${name} source`, memoryDiscardTitle: 'Discard your changes?', memoryDiscardMessage: 'Your edits to this file have not been saved.', memoryDiscard: 'Discard', memoryConflict: 'The Bot changed Memory while you were editing, so nothing was saved. Its version is shown now, and your draft is kept.', memoryConflictEdit: 'Edit my draft', memoryConflictDiscard: 'Discard draft', memorySaveFailed: 'Could not save:', memoryEmptyFile: 'This file is empty.', memoryMissing: 'This file is no longer in Memory.', memoryBinary: 'This file cannot be shown as text.', memoryLoadExternal: 'Load external image', memoryImageLoading: 'Loading image', memoryEnlarge: (name: string) => `Enlarge ${name || 'image'}`, memoryImageError: (code: string) => ({ 'memory-image-missing': 'Image not found. Refresh the document and try again.', 'memory-image-stale': 'The document or image changed. Refresh the document.', 'memory-image-unsupported': 'This image cannot be previewed. Supported formats: PNG, JPEG, GIF, WebP and safe SVG.', 'memory-image-too-large': 'Image exceeds the preview size or dimension limit.', 'memory-image-invalid': 'This image reference is not allowed.', 'memory-image-share-failed': 'Could not share this image. Try again.', })[code] ?? 'Could not load this image. Try again.', }; export const zh: typeof en = { memoryActivity: '记忆活跃度', memoryActivityHint: '最近 7 天每个 Bot 记忆的变化。', memoryChanges: (count: number) => `${count} 次变化`, memoryUnavailable: '记忆不可用', memoryActivityEmpty: '还没有 Bot。', memoryItems: (count: number) => `${count} 项`, memoryEmptyFolder: '这个文件夹是空的。', memoryKind: { text: '文本', image: '图片', data: '数据', other: '文件' }, memoryViews: '记忆视图', memoryViewFiles: '文件', memoryViewChanges: '变化', memoryChangesEmpty: '还没有变化。', memoryChangesMore: '加载更早的变化', memoryChangeStatus: { pending: '尚未接受', 'needs-repair': '需要修复' }, memoryChangeTitle: '变化', memoryChangeOpen: '查看改动了哪些文件', memoryFileChange: { added: '新增', modified: '修改', deleted: '删除' }, memoryChangeBinary: '二进制文件,无法比较文本。', memoryChangeNoText: '没有文本改动。', memoryChangeNoFiles: '这次变化没有文件。', memoryChangeFiles: (count: number) => `${count} 个文件`, memoryDiffCounts: (added: number, removed: number) => `新增 ${added} 行,删除 ${removed} 行`, memoryPinned: { soul: '人格与守则', coreMemory: '常驻记忆' }, memoryPinnedMissing: '尚未创建', memoryAboutTitle: '关于这个文件。', memoryAbout: { soul: '这是 Bot 的人格、语气和长期守则。每次新对话开始时它都会读取,所以修改从下一次对话生效。这里的内容都可以改。', coreMemory: '这是 Bot 一直记得的内容:从你们的对话里整理出的记忆索引和关键信息。每次新对话开始时它都会读取。内容可能过时,这里的任何内容都可以改。', }, memoryNotAttached: '这台电脑上的记忆服务没有运行,暂时看不到这个 Bot 的文件。', memoryEdit: (name: string) => `编辑 ${name}`, memoryEditShort: '编辑', memoryMore: (name: string) => `${name} 的更多操作`, memoryCopy: '复制全文', memoryHistory: '修改记录', memoryHistoryTitle: (name: string) => `${name} 的修改记录`, memoryHistoryEmpty: '这个文件还没有保存过的修改。', memorySave: '保存', memoryStopEditing: '退出编辑', memoryEditor: (name: string) => `${name} 源码`, memoryDiscardTitle: '放弃修改?', memoryDiscardMessage: '这个文件的修改还没有保存。', memoryDiscard: '放弃', memoryConflict: 'Bot 在你编辑时改动了记忆,所以这次没有保存。现在显示的是它的版本,你的草稿还在。', memoryConflictEdit: '继续编辑草稿', memoryConflictDiscard: '丢弃草稿', memorySaveFailed: '无法保存:', memoryEmptyFile: '这个文件是空的。', memoryMissing: '这个文件已不在记忆里。', memoryBinary: '这个文件无法以文本显示。', memoryLoadExternal: '加载外部图片', memoryImageLoading: '正在加载图片', memoryEnlarge: (name: string) => `放大${name || '图片'}`, memoryImageError: (code: string) => ({ 'memory-image-missing': '找不到图片,刷新文档后重试。', 'memory-image-stale': '文档或图片已变化,刷新文档。', 'memory-image-unsupported': '无法预览此图片,支持 PNG、JPEG、GIF、WebP 和安全的 SVG。', 'memory-image-too-large': '图片超过预览的大小或尺寸限制。', 'memory-image-invalid': '不允许访问此图片引用。', 'memory-image-share-failed': '分享此图片失败,再试一次。', })[code] ?? '图片加载失败,再试一次。', };