Skip to content

📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

feat(i18n): add Traditional and Simplified Chinese locales (#694)

arch1e71d6fac02776
diff --git a/frontend/i18n/locales/zh-CN/admin.ts b/frontend/i18n/locales/zh-CN/admin.ts
new file mode 100644
index 00000000..2f3a0083
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/admin.ts
@@ -0,0 +1,43 @@
+export default {
+ dashboard: {
+ cards: {
+ totalNodes: '节点总数',
+ totalStorage: '总存储空间',
+ totalUsers: '用户总数',
+ },
+ charts: {
+ nodesGrowth: '节点成长(12 个月)',
+ usersGrowth: '用户成长(12 个月)',
+ },
+ description: '你可以在此仪表板管理网站用户与设置。',
+ error: '无法加载统计数据',
+ loading: '正在加载统计数据...',
+ manageUsers: '管理用户',
+ top: {
+ byNodes: '节点数最多的用户',
+ byStorage: '存储空间用量最多的用户',
+ nodes: '节点',
+ storage: '存储空间',
+ user: '用户',
+ },
+ title: '管理员仪表板',
+ },
+
+ users: {
+ headers: {
+ action: '操作',
+ createdAt: '创建于',
+ email: '电子邮件',
+ firstname: '名字',
+ lastname: '姓氏',
+ name: '名称',
+ role: '角色',
+ },
+ noUsers: '找不到用户。',
+ roles: {
+ admin: '管理员',
+ user: '用户',
+ },
+ title: '用户管理',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/application.ts b/frontend/i18n/locales/zh-CN/application.ts
new file mode 100644
index 00000000..ea700cb4
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/application.ts
@@ -0,0 +1,60 @@
+export default {
+ shortcuts: {
+ boldText: '加粗文字',
+ bulletList: '无序列表',
+ closeModal: '关闭当前的对话框',
+ copyText: '复制选中内容或当前行',
+ createCategory: '创建分类',
+ createDocument: '创建文档',
+ cutText: '剪切选中内容或当前行',
+ deleteElement: '删除当前的元素',
+ editDocument: '编辑文档',
+ exitPage: '离开页面',
+ headingLevel: '标题(1-6 级)',
+ highlightText: '高亮文字',
+ inlineCode: '行内代码',
+ insertCodeBlock: '插入代码块',
+ insertDiagram: '插入图表',
+ insertFootnote: '插入脚注',
+ insertImage: '插入图片',
+ insertLink: '插入链接',
+ insertQuote: '插入引用块',
+ insertSeparator: '插入分隔线',
+ insertTable: '插入表格',
+ italicText: '斜体文字',
+ mathInline: '行内数学公式',
+ nextDocument: '下一个文档',
+ nextSearchResult: '下一个搜索结果',
+ openCDN: '打开 CDN 上传工具',
+ openCmdCenter: '打开命令中心',
+ openFindDialog: '打开查找对话框',
+ openSelectedSearchResult: '打开选中的结果',
+ openSettings: '打开设置',
+ orderedList: '有序列表',
+ pasteText: '从剪贴板粘贴',
+ prevDocument: '上一个文档',
+ prevSearchResult: '上一个搜索结果',
+ printPage: '打印页面',
+ redoAction: '重做上一步操作',
+ reloadPage: '重新加载页面',
+ savePage: '保存当前页面',
+ sections: {
+ commandCenter: '命令中心',
+ document: '文档',
+ editor: '编辑器',
+ general: '常规',
+ other: '其他',
+ search: '搜索',
+ },
+ strikethroughText: '删除线文字',
+ subscriptText: '下标',
+ superscriptText: '上标',
+ taskList: '任务列表',
+ textColor: '文字颜色',
+ toggleAdvancedView: '切换至高级视图',
+ togglePreview: '切换预览',
+ toggleQuickView: '切换至快速视图',
+ underlineText: '下划线文字',
+ undoAction: '撤销上一步操作',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/cdn.ts b/frontend/i18n/locales/zh-CN/cdn.ts
new file mode 100644
index 00000000..8888841a
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/cdn.ts
@@ -0,0 +1,51 @@
+export default {
+ actions: {
+ download: '下载文件',
+ upload: {
+ idle: '上传',
+ multiple: '上传 {n} 个文件',
+ progress: '上传中 {n} / {total}',
+ },
+ },
+
+ appdrop: {
+ addMore: '新增更多文件',
+ link: '点击这里',
+ max: '最多 {n} 个文件',
+ prompt: '将文件拖拽至此,或{link}选择文件',
+ promptPlural: '将文件拖拽至此,或{link}选择文件',
+ removeFile: '移除文件',
+ },
+ diagram: '图表编辑器',
+ edit: {
+ description: '管理服务器上的资源与文件。你可以编辑元数据或删除文件。',
+ title: '更新文件',
+ },
+
+ labels: {
+ originalPath: '原始路径',
+ path: '路径',
+ },
+
+ meta: {
+ shortTitle: 'CDN',
+ title: '文件管理器',
+ },
+
+ notifications: {
+ error: '{file} 上传失败:{error}',
+ successMsg: '已成功上传 {n} 个文件',
+ successTitle: '上传完成',
+ },
+
+ page: {
+ empty: '尚未上传任何文件。',
+ },
+
+ preview: {
+ title: '预览',
+ unavailable: '此文件类型无法预览',
+ },
+
+ storageUsed: '已使用的存储空间',
+};
diff --git a/frontend/i18n/locales/zh-CN/common.ts b/frontend/i18n/locales/zh-CN/common.ts
new file mode 100644
index 00000000..d933764e
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/common.ts
@@ -0,0 +1,97 @@
+export default {
+ actions: {
+ cancel: '取消',
+ clear: '清除',
+ close: '关闭',
+ confirm: '确认',
+ copy: '复制',
+ copyLink: '复制链接',
+ create: '创建',
+ delete: '删除',
+ download: '下载',
+ duplicate: '创建副本',
+ edit: '编辑',
+ export: '导出',
+ import: '导入',
+ new: '新增',
+ open: '打开',
+ pin: '置顶',
+ preview: '预览',
+ print: '打印',
+ reset: '重置',
+ revoke: '撤销',
+ save: '保存',
+ search: '搜索',
+ share: '分享',
+ toggleFullscreen: '切换全屏',
+ unpin: '取消置顶',
+ update: '更新',
+ upload: '上传',
+ },
+
+ confirm: {
+ irreversible: '此操作无法撤销',
+ },
+
+ errors: {
+ generic: '发生错误',
+ notFound: '找不到',
+ unknown: '发生未知的错误',
+ },
+
+ labels: {
+ action: '操作',
+ advanced: '高级',
+ all: '全部',
+ basic: '基本',
+ color: '颜色',
+ content: '内容',
+ date: '日期',
+ description: '描述',
+ email: '电子邮件',
+ icon: '图标',
+ id: 'ID',
+ name: '名称',
+ order: '排序',
+ parent: '上级项目',
+ pinned: '已置顶',
+ role: '角色',
+ size: '大小',
+ status: '状态',
+ tags: '标签',
+ type: '类型',
+ },
+
+ nothing: '没有可显示的内容',
+
+ notifications: {
+ copiedMessage: '已成功复制内容。',
+ copiedTitle: '已复制到剪贴板',
+ },
+
+ pagination: {
+ rowsPerPage: '每页显示条数',
+ showing: '显示第 {start} 至 {end} 条,共 {total} 条',
+ },
+
+ placeholder: {
+ parent: '选择上级项目',
+ search: '搜索...',
+ },
+
+ search: {
+ noResults: '找不到符合“{filter}”的结果',
+ },
+
+ status: {
+ cancelled: '已取消',
+ completed: '已完成',
+ error: '错误',
+ failed: '失败',
+ loading: '加载中...',
+ pending: '待处理',
+ processing: '处理中',
+ success: '成功',
+ unknown: '未知',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/components.ts b/frontend/i18n/locales/zh-CN/components.ts
new file mode 100644
index 00000000..23cdb9e0
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/components.ts
@@ -0,0 +1,138 @@
+export default {
+ commandCenter: {
+ advanced: {
+ allCategories: '所有分类',
+ category: '分类',
+ clear: '清除',
+ created: '创建时间',
+ dateRange: '日期范围',
+ from: '从',
+ modified: '修改时间',
+ searchInContent: '搜索正文',
+ searchInContentHint: '在文档正文中搜索(需输入完整单词)',
+ tags: '标签',
+ title: '高级筛选',
+ to: '至',
+ },
+ beta: 'Beta',
+ close: '关闭',
+ navigate: '浏览',
+ noResults: '找不到“{query}”的结果',
+ searchPlaceholder: '搜索页面、操作或文档...',
+ sections: {
+ documents: '文档',
+ pagesAndActions: '页面与操作',
+ },
+ select: '选择',
+ switchTabs: '切换标签页',
+ tabs: {
+ advanced: '高级',
+ quick: '快速',
+ },
+ },
+
+ dataTable: {
+ rowsPerPage: '每页显示条数',
+ searchPlaceholder: '搜索...',
+ showing: '显示第 {start} 至 {end} 条,共 {total} 条',
+ },
+
+ editor: {
+ title: 'Markdown 编辑器',
+ placeholder: {
+ title: '文档标题',
+ description: '文档描述',
+ },
+ },
+
+ filter: {
+ ascending: '升序',
+ descending: '降序',
+ match: '匹配方式',
+ sort: '排序依据',
+ created: '创建时间',
+ modified: '修改时间',
+ contains: '包含',
+ startsWith: '开头为',
+ exact: '完全匹配',
+ tags: '标签',
+ },
+
+ kanban: {
+ addColumn: '新增列',
+ addDocument: '新增文档',
+ changeColor: '修改颜色',
+ deleteColumn: '删除列',
+ deleteColumnModal: {
+ confirm: '你确定要删除“{title}”列吗?',
+ emptyColumn: '此列是空的。',
+ hasDocuments: '此列包含 {count} 个文档,这些文档将被移动到第一列。',
+ title: '删除列',
+ },
+ dragHere: '将文档拖拽到这里',
+ editName: '编辑名称',
+ noDocuments: '没有文档',
+ resetBoard: {
+ confirm: '你确定要重置看板吗?',
+ reset: '重置',
+ title: '重置看板',
+ warning: '此操作无法撤销。所有列都会被移除,卡片将移动到第一列。',
+ },
+ },
+
+ navbar: {
+ commandCenter: '命令中心(Ctrl+K)',
+ searchHint: '按 {key} 进行浏览',
+ },
+
+ noContent: {
+ nothingHere: '这里没有可显示的内容',
+ },
+
+ sessionCard: {
+ current: '当前',
+ inactive: '未使用',
+ lastActivity: '最后活动时间',
+ loggedOut: '已退出登录',
+ login: '登录',
+ unknownIP: '未知的 IP',
+ unknownLocation: '未知的位置',
+ userAgent: '用户代理',
+ },
+
+ sidebar: {
+ allWorkspaces: '所有工作区',
+ closeAll: '全部折叠',
+ editWorkspace: '编辑工作区',
+ joinWorkspace: '加入工作区',
+ nav: {
+ cdn: 'CDN',
+ documents: '文档',
+ home: '首页',
+ imports: '导入',
+ manageCategories: '管理分类',
+ teams: '团队',
+ newPage: '新增页面',
+ settings: '设置',
+ },
+ newCategory: '新增分类',
+ newDoc: '新增文档',
+ newWorkspace: '新增工作区',
+ noWorkspaces: '找不到工作区',
+ openAll: '全部展开',
+ searchPlaceholder: '搜索或按 ctrl + q',
+ sharedWithMe: '与我共享',
+ toggleDock: '切换工具栏',
+ workspaces: '工作区',
+ },
+
+ tagInput: {
+ placeholder: '按 Enter 新增标签',
+ },
+
+ viewSelection: {
+ kanban: '看板',
+ list: '列表',
+ table: '表格',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/dashboard.ts b/frontend/i18n/locales/zh-CN/dashboard.ts
new file mode 100644
index 00000000..217d5843
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/dashboard.ts
@@ -0,0 +1,31 @@
+export default {
+ actions: {
+ import: '导入',
+ joinWorkspace: '加入工作区',
+ newDocument: '+ 新增文档',
+ newWorkspace: '新增工作区',
+ },
+
+ dashboard: '仪表板',
+ greeting: '👋 嗨,{userName}',
+
+ pages: {
+ home: '首页',
+ },
+
+ search: '搜索文档、工作区、分类...',
+
+ sections: {
+ continueWorking: '继续编辑',
+ pinnedDocuments: '已置顶的文档',
+ recentActivity: '最近活动',
+ yourWorkspaces: '你的工作区',
+ },
+
+ stats: {
+ cdnFiles: 'CDN 文件',
+ documents: '文档',
+ tags: '标签',
+ workspaces: '工作区',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/import.ts b/frontend/i18n/locales/zh-CN/import.ts
new file mode 100644
index 00000000..2740ff6d
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/import.ts
@@ -0,0 +1,115 @@
+export default {
+ actions: {
+ cancel: '取消',
+ importAll: '全部导入',
+ importing: '导入中...',
+ optionsTitle: '导入选项',
+ extractFrontMatter: '将 front matter 提取为元数据',
+ normalizeLineEndings: '规范化换行符',
+ preserveTimestamps: '保留原始时间戳',
+ skipExisting: '跳过已存在的文档(仅导入新文档)',
+ },
+
+ advanced: {
+ options: '高级导入选项',
+ defaultParent: '导入文档的默认上级分类',
+ defaultDescription: '导入文档的默认描述',
+ defaultTags: '导入文档的默认标签(以逗号分隔)',
+ defaultColor: '导入文档的默认颜色',
+ defaultThumbnail: '导入文档的默认缩略图(SVG 或 Unicode emoji)',
+ defaultIcon: '导入文档的默认图标(SVG 或 Unicode emoji)',
+ defaultTheme: '导入文档的默认主题',
+ },
+
+ files: {
+ meta: {
+ title: '从 Markdown 文件导入',
+ description: '快速导入 Markdown 文件,并可设置目的地与处理方式。',
+ },
+ importable:
+ '你可以导入 Markdown 文件,或包含 Markdown 文件的文件夹。文件夹会递归导入;若选择全部导入,将保留原有的结构。',
+ toImport: '待导入的项目',
+ },
+
+ categories: {
+ backup: {
+ title: '从备份导入',
+ description: '恢复包含文档与设置的完整 Alexandrie 备份。',
+ },
+ files: {
+ title: '从文件导入',
+ description: '通过灵活的选项从 Markdown 文件导入文档。',
+ },
+ advanced: {
+ title: '高级导入',
+ description: '导入整个文件夹(包含子文件夹与上传文件),并使用自定义选项获取最大的控制权。',
+ },
+ },
+
+ header: {
+ changeFile: '修改文件',
+ created: '创建时间',
+ documents: '文档',
+ files: '文件',
+ metadata: '元数据',
+ settings: '设置',
+ title: '备份信息',
+ totalDocuments: '文档总数',
+ totalSize: '总大小',
+ version: '版本',
+ },
+
+ meta: {
+ breadcrumb: '导入',
+ description: '你可以从先前的导出档导入文档。如果你还没有导出档,请前往',
+ settingsLink: '设置',
+ title: '导入文档',
+ },
+
+ notifications: {
+ importCompleteMessage: '文档已成功导入。',
+ importCompleteTitle: '导入完成',
+ importFailedMessage: '导入过程中发生错误,请再试一次。',
+ importFailedTitle: '导入失败',
+ localImportedMessage: '你的本地设置已被备份内容替换。',
+ localImportedTitle: '已导入本地设置',
+ },
+
+ progress: {
+ title: '导入进度',
+ },
+
+ steps: {
+ select: {
+ analyzing: '分析中...',
+ startImport: '开始导入',
+ },
+ },
+
+ summary: {
+ documentsToUpdate: '待更新的文档',
+ newDocuments: '新文档',
+ title: '导入摘要',
+ unchanged: '未修改',
+ },
+
+ tabs: {
+ backup: '备份',
+ current: '当前',
+ import: '导入',
+ importFromBackup: '从备份导入',
+ importLocalSettings: '导入本地设置',
+ importSelected: '导入所选项目({count})',
+ localSettings: '本地设置与偏好设置',
+ localSettingsAvailable: '可导入本地设置与偏好设置',
+ localSettingsWarning: '这会覆盖你当前的本地设置,包含代码片段',
+ newDocuments: '新文档',
+ noLocalSettings: '备份中找不到本地设置',
+ noNewDocuments: '没有可导入的新文档',
+ noUpdates: '没有需要更新的文档',
+ replaceLocalSettings: '要以备份内容替换你的本地设置吗?',
+ selectAll: '全选',
+ updates: '更新',
+ updateSelected: '更新所选项目({count})',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/index.ts b/frontend/i18n/locales/zh-CN/index.ts
new file mode 100644
index 00000000..ab306b7e
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/index.ts
@@ -0,0 +1,35 @@
+import type { MessageSchema } from '../../i18n.config';
+
+import admin from './admin';
+import application from './application';
+import cdn from './cdn';
+import common from './common';
+import components from './components';
+import dashboard from './dashboard';
+import importPage from './import';
+import markdown from './markdown';
+import landing from './landing';
+import nodes from './nodes';
+import publicPages from './public';
+import settings from './settings';
+import time from './time';
+import user from './user';
+import teams from './teams';
+
+export default {
+ admin,
+ application,
+ cdn,
+ common,
+ components,
+ dashboard,
+ import: importPage,
+ landing,
+ markdown,
+ nodes,
+ public: publicPages,
+ settings,
+ time,
+ user,
+ teams,
+} satisfies MessageSchema;
diff --git a/frontend/i18n/locales/zh-CN/landing.ts b/frontend/i18n/locales/zh-CN/landing.ts
new file mode 100644
index 00000000..5370db34
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/landing.ts
@@ -0,0 +1,229 @@
+export default {
+ seo: {
+ description: 'Alexandrie 是一个快速、可自托管的 Markdown 工作区,适用于笔记、知识库、协作与公开文档。',
+ keywords: 'Markdown 笔记, 知识库, 自托管笔记, 公开文档, 协作, 笔记应用程序',
+ title: 'Alexandrie | 现代化的 Markdown 工作区',
+ },
+ hero: {
+ badges: {
+ markdown: 'Markdown',
+ openSource: '开源',
+ organization: '组织',
+ },
+ ctaPrimary: '立即开始',
+ ctaSecondary: 'GitHub',
+ titleHighlight: '你的笔记',
+ titleSuffix: ',井然有序又赏心悦目',
+ tagline: '为速度、清晰与创意而生的强大 Markdown 工作区。',
+ previewAlt: 'Alexandrie 应用程序预览',
+ },
+ bento: {
+ title: '写得更好所需的一切',
+ subtitle: '将强大的功能浓缩在美观且直观的界面中',
+ editor: {
+ description: '写作时享有语法高亮、实时预览与键盘快捷键,并支持表格、代码块、数学公式等等。',
+ heading: '强大的 Markdown 编辑器',
+ sampleHeading: '欢迎使用 Alexandrie',
+ sampleList: '列表轻松上手',
+ sampleMarkdown: '用 Markdown 撰写你的笔记',
+ sampleText: ' 与 ',
+ },
+ organization: {
+ description: '嵌套文件夹、工作区、标签与强大的搜索功能,让每件事都各就各位。',
+ heading: '智能整理',
+ },
+ collaboration: {
+ description: '与团队一起协作。分享笔记、管理权限,还有更多功能。',
+ heading: '协作与分享',
+ editing: '3 人正在编辑...',
+ },
+ cdn: {
+ description: '上传图片与文件',
+ heading: '内置 CDN',
+ },
+ themes: {
+ description: '各种心情都有对应主题',
+ extra: '你也可以修改配色、文档主题,并加入自定义颜色、图标等等。',
+ heading: '深色与浅色',
+ },
+ search: {
+ description: '跨所有文档的全文搜索,毫秒之间找到任何内容。',
+ heading: '闪电般快速的搜索',
+ input: 'react hooks...',
+ },
+ publish: {
+ description: '公开分享你的作品,或只分享给特定对象,并生成美观的只读页面。',
+ heading: '一键发布',
+ status: '上线中',
+ url: 'docs.yoursite.com/guide',
+ },
+ organizationSamples: {
+ knowledgeBase: '知识库',
+ projects: '项目',
+ roadmap: 'Roadmap.md',
+ ideas: 'Ideas.md',
+ development: '开发',
+ reactTips: 'React Tips.md',
+ },
+ searchResults: {
+ customHooks: 'Custom Hooks',
+ reactHooksGuide: 'React Hooks 指南',
+ path1: '知识库 / 开发',
+ path2: '项目 / 前端',
+ },
+ theme: {
+ subtitle: '你也可以修改配色、文档主题,并加入自定义颜色、图标等等。',
+ },
+ },
+ showcase: {
+ features: [
+ {
+ description: '使用零干扰的编辑器立即开始写作,所有内容都会自动同步。',
+ points: ['实时自动保存', '快速键盘快捷键', '零干扰模式', '常用格式模板'],
+ shortDesc: '快速笔记与草稿',
+ title: '即刻捕捉灵感',
+ },
+ {
+ description: '通过嵌套文件夹、工作区与智能标签,打造强大的知识库。',
+ points: ['无限层级的嵌套文件夹', '多个工作区', '以标签整理', '智能筛选与视图'],
+ shortDesc: '创建结构与分类',
+ title: '整理你的知识',
+ },
+ {
+ description: '与团队分享笔记、管理权限,并实时协作。',
+ points: ['精细的权限控制', '实时协作', '评论与反馈', '活动记录'],
+ shortDesc: '团队工作流程',
+ title: '无缝协作',
+ },
+ {
+ description: '一键将你的笔记转换成美观的公开文档。',
+ points: ['自定义域名', 'SEO 优化', '内置分析', '密码保护'],
+ shortDesc: '立即上线',
+ title: '发布与分享',
+ },
+ ],
+ subtitle: '看看 Alexandrie 如何简化你的整个工作流程',
+ title: '从灵感到发布文档',
+ },
+ selfHost: {
+ notes: ['没有遥测数据', '完全掌握数据', 'MIT 许可证', '支持 Docker'],
+ steps: [
+ {
+ description:
+ '从 GitHub 获取配置文件 <br /> <a target="_blank" style="color: var(--primary);text-decoration: underline;font-weight: 500;" href="https://github.com/Smaug6739/Alexandrie/blob/main/docker-compose.yml">下载 docker-compose.yml 文件</a> <br /><a target="_blank" style="color: var(--primary);text-decoration: underline;font-weight: 500;" href="https://github.com/Smaug6739/Alexandrie/blob/main/.env.example">下载 .env.example 文件</a> ',
+ title: '克隆仓库',
+ },
+ {
+ code: 'cp .env.example .env && nano .env',
+ description: '根据需要修改环境变量(可选)',
+ title: '设置',
+ },
+ {
+ code: 'docker compose up -d',
+ description: '使用 Docker Compose 启动所有服务',
+ title: '启动',
+ },
+ ],
+ subtitle: '通过简单的部署方式,完全掌控你的数据',
+ terminal: {
+ lines: ['[+] Running 3/3', '✓ Container alexandrie-db Started', '✓ Container alexandrie-minio Started', '✓ Container alexandrie-app Started'],
+ title: '终端',
+ },
+ title: '几分钟内完成自托管',
+ },
+ stats: {
+ actions: {
+ contribute: '参与贡献',
+ star: '在 GitHub 上加星',
+ tryApp: '试用应用程序',
+ },
+ badge: '开源',
+ cardDescription: '为习惯以 Markdown 思考的开发者打造的开源工作区',
+ labels: {
+ contributors: '贡献者',
+ latestRelease: '最新版本',
+ stars: 'GitHub 星数',
+ },
+ subtitle: '透明的开发流程、由社区主导的决策,以及完整的源代码访问权限',
+ title: '公开透明地打造',
+ },
+ contributors: {
+ commitLabel: '次提交',
+ cta: '成为贡献者',
+ subtitle: '认识让 Alexandrie 得以诞生的这群伙伴',
+ title: '由社区共同打造',
+ },
+ faq: {
+ answer1: '是的,Alexandrie 采用 MIT 许可证,100% 开源。你可以自由使用、修改与分发,没有隐藏费用,也没有付费方案。',
+ answer2: '当然可以!你可以使用 Docker 在自己的基础设施上运行 Alexandrie。我们提供完整文档,帮助你在几分钟内完成部署。',
+ answer3: '可以,Alexandrie 以离线优先的原则设计。你的笔记可在本地访问,并在重新连线时同步。',
+ answer4: '自托管时,你的数据会留在自己的服务器上。我们采用行业标准的安全实践,所有数据传输皆经过加密。',
+ answer5: '可以!你可以从 Notion、Obsidian 或任何 Markdown 编辑器导入 Markdown 文件,也支持导出为排版精美的 PDF。',
+ answer6: '当然!我们支持 100 种以上编程语言的语法高亮,以及 LaTeX 数学公式渲染。',
+ answer7: 'Alexandrie 是响应式网页应用程序,在移动设备浏览器上也能顺畅使用。原生应用程序已列入我们的路线图。',
+ ctaDescription: '找不到你想知道的答案吗?加入我们的社区吧!',
+ ctaTitle: '还有其他问题吗?',
+ discord: '加入 Discord',
+ subtitle: '关于 Alexandrie,你需要知道的一切',
+ title: '常见问题',
+ questions: [
+ 'Alexandrie 真的免费且开源吗?',
+ '我可以在自己的服务器上自托管 Alexandrie 吗?',
+ 'Alexandrie 可以离线使用吗?',
+ '我的数据如何保存与保护?',
+ '我可以从其他应用程序导入笔记吗?',
+ '支持代码块与数学公式吗?',
+ '有移动设备应用程序吗?',
+ ],
+ },
+ cta: {
+ discord: 'Discord 服务器',
+ description: '和我们一起踏上更好的笔记之旅。',
+ title: '准备好开始写出更好的笔记了吗?',
+ button: '立即开始',
+ contributionPrefix: '想要参与贡献或讨论吗?欢迎前往我们的',
+ },
+ support: {
+ badge: '来自作者的话',
+ confirm: '我了解了,谢谢!',
+ paragraph1:
+ 'Alexandrie 一开始并不是一门生意,而是我为自己打造的工具。多年之后,我仍利用空闲时间维护与改进它,也很乐意分享给任何觉得它有用的人。',
+ paragraph2:
+ '这个应用程序不会追踪你、不投放广告,而且完全开源。不过,维持线上平台运作仍需要主机与基础设施费用。如果 Alexandrie 为你的日常工作带来价值,欢迎支持它的独立运作。即使是最小额的赞助,也足以支付好几个月的服务器费用。',
+ title: 'Alexandrie 是免费的,未来也会一直如此。',
+ signature: '— Smaug',
+ cards: {
+ sponsorDesc: '协助分担主机、备份基础设施与开发成本,让 Alexandrie 保持线上且独立。',
+ sponsorTitle: '在财务上支持',
+ starDesc: '表达你的支持,并帮助其他开发者发现这个项目。这不需要任何花费,却意义非凡。',
+ starTitle: '在 GitHub 上加星',
+ },
+ },
+ footer: {
+ brandDescription: '为习惯以 Markdown 思考的开发者打造的开源工作区。美观的文档、强大的组织能力、零阻力的体验。',
+ madeWith: '用',
+ columns: {
+ community: '社区',
+ legal: '法律信息',
+ product: '产品',
+ resources: '资源',
+ },
+ links: {
+ about: '关于',
+ apiReference: 'API 参考文档',
+ changelog: '更新日志',
+ contribute: '参与贡献',
+ dashboard: '仪表板',
+ discord: 'Discord',
+ documentation: '文档',
+ features: '功能',
+ github: 'GitHub',
+ issues: 'Issues',
+ mitLicense: 'MIT 许可证',
+ privacyPolicy: '隐私政策',
+ roadmap: '路线图',
+ terms: '服务条款',
+ },
+ by: '打造,作者为',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/markdown.ts b/frontend/i18n/locales/zh-CN/markdown.ts
new file mode 100644
index 00000000..06a6209a
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/markdown.ts
@@ -0,0 +1,90 @@
+export default {
+ colors: {
+ customColors: '自定义颜色',
+ quickColors: '快速颜色',
+ subtitle: '为你的文字选择颜色',
+ title: '颜色',
+ useColor: '使用颜色',
+ },
+ image: {
+ noImages: '找不到图片',
+ searchPlaceholder: '搜索图片...',
+ subtitle: '选择要插入文档的图片。',
+ title: '选择图片',
+ uploadError: '上传时发生错误。',
+ },
+ drawio: {
+ linked: '已关联的图表',
+ title: '图表编辑器',
+ },
+ stats: {
+ chars: '字符',
+ lines: '行',
+ words: '字',
+ },
+ syntax: {
+ advancedBlocks: '高级区块',
+ basicFormatting: '基本格式',
+ cardsAndPanels: '卡片与面板',
+ coloredBlocks: '彩色区块',
+ colors: '颜色',
+ diagrams: '图表',
+ extendedSyntax: '扩展语法',
+ footnotes: '脚注',
+ layoutBlocks: '布局区块',
+ linksAndImages: '链接与图片',
+ mathSyntax: '数学语法',
+ subtitle: '本指南说明如何使用 Alexandrie 的扩展 Markdown 功能,写出更具表现力且结构清晰的笔记。',
+ tags: '标签',
+ title: 'Alexandrie Markdown 语法指南',
+ titles: '标题',
+ tooltips: '提示信息',
+ },
+ table: {
+ hoverHint: '将鼠标悬停以查看大小',
+ subtitle: '用鼠标选择表格大小',
+ tableSize: '{rows} × {columns} 表格',
+ title: '插入表格',
+ },
+ toolbar: {
+ bold: '加粗',
+ bulletList: '无序列表',
+ category: '分类',
+ clearFormatting: '清除格式',
+ codeBlock: '代码块',
+
+ color: '颜色',
+ editorSettings: '编辑器设置',
+ diagram: '图表',
+ footnote: '脚注',
+
+ goToDocument: '前往文档',
+ heading: '标题',
+ highlight: '高亮',
+ horizontalRule: '水平分隔线',
+ image: '图片',
+ inlineCode: '行内代码',
+
+ italic: '斜体',
+ link: '链接',
+ markdownSyntax: 'Markdown 语法',
+ math: '数学公式',
+ numberedList: '有序列表',
+ preview: '预览',
+ quote: '引用',
+
+ save: '保存',
+ strikethrough: '删除线',
+ subscript: '下标',
+
+ superscript: '上标',
+ table: '表格',
+ taskList: '任务列表',
+ underline: '下划线',
+ },
+ voice: {
+ notSupported: '此浏览器不支持语音识别',
+ startRecording: '开始语音识别',
+ stopRecording: '停止录音',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/nodes.ts b/frontend/i18n/locales/zh-CN/nodes.ts
new file mode 100644
index 00000000..f4a82dcb
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/nodes.ts
@@ -0,0 +1,145 @@
+export default {
+ nodes: '节点',
+ actions: {
+ copyPublicLink: '复制公开链接',
+ editMeta: '编辑元数据',
+ exportAsMarkdown: '导出为 Markdown',
+ managePermissions: '管理权限',
+ newDocument: '+ 创建新文档',
+ publicLink: '公开链接',
+ removeFromShared: '从共享中移除',
+ resetBoard: '重置看板',
+ share: '分享',
+ },
+
+ category: {
+ editTitle: '分类与工作区',
+ iconHint: '支持 SVG',
+ name: '分类',
+ new: '新增分类',
+ notifications: {
+ created: '已成功创建分类',
+ creationError: '创建分类时发生错误',
+ updated: '分类已更新',
+ },
+ orderHint: '分类在侧边栏中的排序',
+ uncategorized: '未分类',
+ },
+
+ container: {
+ createNewDocument: '+ 创建新文档',
+ import: '导入',
+ newCategory: '+ 分类',
+ newWorkspace: '+ 工作区',
+ noDocuments: '找不到文档',
+ noDocumentsDescription: '此分类中没有任何文档',
+ noWorkspaces: '找不到工作区或分类',
+ searchPlaceholder: '搜索工作区...',
+ title: '工作区与分类',
+ },
+
+ document: {
+ childs: '子文档',
+ editPage: '编辑页面',
+ lastUpdated: '最后更新',
+ nextPage: '下一页',
+ prevPage: '上一页',
+ TOC: '目录',
+ },
+
+ filter: {
+ footer: '{count} / {total} 个匹配项',
+ title: '筛选节点',
+ toClose: '以关闭',
+ },
+
+ modals: {
+ delete: {
+ bulkCount: '此操作将删除 {count} 个节点。',
+ confirm: '你确定要删除这个{type}吗?',
+ confirmBulk: '你确定要删除所选的节点吗?',
+ hasChildren: '此{type}有 {count} 个子文档,这些文档也会一并删除。',
+ irreversible: '此操作无法撤销',
+ title: '删除{type}',
+ titleBulk: '删除节点',
+ },
+ join: {
+ access: '节点访问权限',
+ title: '加入团队或工作区',
+ subtitle: '粘贴邀请码或完整的邀请链接。如果你已用其他权限等级加入过这个工作区,系统只会保留最高的权限。',
+ label: '邀请码或链接',
+ join: '加入',
+ joining: '加入中...',
+ inputPlaceholder: 'ABC123 或 https://.../join-workspace?code=ABC123',
+ },
+ metadata: {
+ emojiOrIcon: 'Emoji 或图标',
+ emojiOrIconHint: '支持 SVG 或 emoji',
+ labelAppearance: '外观',
+ labelOrganization: '组织',
+ labelMedia: '媒体',
+ pinDescription: '将此文档置顶至工作区顶部',
+ thumbnail: '缩略图',
+ thumbnailHint: '支持 SVG',
+ title: '元数据',
+ },
+ permissions: {
+ addPermission: '新增',
+ defaultPermission: '新用户的默认权限',
+ generalAccess: '常规访问权限',
+ inviteLabel: '节点邀请',
+ inviteCreate: '创建邀请',
+ inviteCreateProgress: '正在创建邀请...',
+ inviteEmpty: '尚无邀请',
+ invitePermission: '权限',
+ managePermissions: '管理权限',
+ noPermissions: '尚未设置权限',
+ noResults: '找不到结果',
+ publicInfo: '此文档将可通过专属网址公开访问。',
+ removePermission: '移除权限',
+ searchPlaceholder: '用户名或电子邮件',
+ searchUser: '搜索用户',
+ shareLink: '分享这个链接,让任何人不需账号即可查看文档:',
+ title: '管理权限',
+ },
+ removeShared: {
+ childWarning: '此文档有 {count} 个子文档,这些文档也会一并移除。',
+ confirm: '你确定要移除这个文档吗?',
+ noAccess: '执行此操作后,你将无法再访问这个文档。',
+ success: '文档已移除',
+ title: '移除此文档',
+ },
+ },
+
+ notifications: {
+ linkCopied: '已复制链接到剪贴板',
+ },
+
+ // From the shared_target api (PWA)
+ share: {
+ actionChoose: '你想要做什么?',
+ actionCreateDocument: '创建新文档',
+ actionCreateDocumentDesc: '使用分享的内容创建新的 Markdown 文档',
+ actionUploadResource: '上传为资源',
+ actionUploadResourceDesc: '将分享的内容上传为资源(图片、PDF 等),并获取可插入文档的链接',
+ chooseDestination: '选择要将此内容保存到哪里。',
+ description: '从其他应用程序接收到的内容。',
+ sharedContent: '分享的内容',
+ title: '分享内容',
+ },
+
+ tags: '标签',
+
+ types: {
+ category: '分类',
+ document: '文档',
+ resource: '资源',
+ workspace: '工作区',
+ },
+
+ workspace: {
+ all: '所有工作区',
+ new: '新增工作区',
+ shared: '与我共享',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/public.ts b/frontend/i18n/locales/zh-CN/public.ts
new file mode 100644
index 00000000..8eda0f9e
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/public.ts
@@ -0,0 +1,65 @@
+export default {
+ nav: {
+ login: '登录',
+ signup: '注册',
+ home: '首页',
+ },
+ login: {
+ title: '登录',
+ form: {
+ username: '用户名',
+ password: '密码',
+ confirmPassword: '确认密码',
+ submit: '登录',
+ },
+ disabled: '当前已禁用原生登录,请使用下方任一种验证方式。',
+ needAccount: '还没有账号吗?立即注册',
+ forgotPassword: '忘记密码?',
+ clickHere: '点击这里',
+ OTP_2FA: {
+ title: '两步验证',
+ description: '请输入验证器应用程序中的 6 位数验证码。',
+ placeholder: '000000 或 8 位数备用码',
+ code: '验证码',
+ submit: '验证',
+ back: '返回',
+ },
+ reset: {
+ title: '重置密码',
+ submit: '申请重置',
+ change: '修改密码',
+ havingIssues: '遇到问题?',
+ contactUs: '联系我们!',
+ done: {
+ title: '已发送说明',
+ description: '请查看你的电子邮件中的密码重置链接。如果几分钟内没有收到,请检查垃圾邮件箱。',
+ returnToLogin: '返回登录页',
+ },
+ },
+ oidc: {
+ title: '验证中...',
+ description: '正在完成登录,请稍候。',
+ divider: '或使用以下方式继续',
+ linked: '你的 {{ providerName }} 账号已成功关联。',
+ created: '你的账号已成功创建并链接。',
+ signIn: '你已成功登录。',
+ redirectSettings: '正在前往设置页面...',
+ redirectDashboard: '正在前往仪表板...',
+ error: '验证失败',
+ tryAgain: '再试一次',
+ createAccount: '创建账号',
+ },
+ },
+ signup: {
+ title: '创建账号',
+ form: {
+ username: '用户名',
+ email: '电子邮件',
+ emailDescription: '电子邮件仅用于账号找回,不会公开分享。',
+ password: '密码',
+ confirmPassword: '确认密码',
+ submit: '注册',
+ },
+ alreadyHaveAccount: '已经有账号了吗?立即登录',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/settings.ts b/frontend/i18n/locales/zh-CN/settings.ts
new file mode 100644
index 00000000..3ea0fd0f
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/settings.ts
@@ -0,0 +1,378 @@
+export default {
+ about: {
+ changelog: '更新日志',
+ client: '客户端',
+ contact: '如果你有任何问题、建议或发现错误,欢迎与我们联系!你可以提交 issue 于',
+ description: 'Alexandrie 是一套个人知识管理工具,协助你高效地整理与查找笔记。',
+ features: '它提供文档整理、标签与高级搜索等功能。',
+ githubRepo: 'GitHub 仓库',
+ pwa: 'PWA',
+ seeFullChangelog: '查看完整更新日志于',
+ subtitle: '应用程序信息。',
+ title: '关于 Alexandrie',
+ version: 'Alexandrie 版本',
+ website: '网站',
+ },
+
+ advanced: {
+ resetLocalStorage: '重置本地存储空间',
+ resetLocalStorageBtn: '清除本地存储空间',
+ resetLocalStorageDesc: '这会重置所有本地保存的数据,此操作无法撤销,偏好设置也会一并重置。',
+ resetPreferences: '重置所有偏好设置',
+ resetPreferencesBtn: '重置偏好设置',
+ resetPreferencesDesc: '这会将所有偏好设置恢复为默认值,此操作无法撤销。',
+ subtitle: '管理高级的应用程序设置。',
+ title: '高级',
+ },
+
+ appearance: {
+ chooseAccentColor: '选择强调色',
+ displayUncategorizedResources: '显示未分类的资源',
+ displayUncategorizedResourcesDesc: '在侧边栏顶部显示未分类的资源(CDN 上传文件)。',
+ displayTabs: '显示标签栏',
+ displayTabsDesc: '启用或禁用仪表板顶部的标签栏。',
+ displayFeatureTags: '显示功能标记',
+ displayFeatureTagsDesc: '显示用来标示新功能与实验性功能的“New”与“Beta”徽章。',
+ enableCompactMode: '启用紧凑模式',
+ enableCompactModeDesc: '缩小侧边栏项目尺寸,以显示更多内容。',
+ enableDarkMode: '启用深色模式',
+ general: '常规',
+ interfaceStyle: '界面样式',
+ interfaceStyleDesc: '毛玻璃样式会加入具模糊效果的半透明表面,营造现代的玻璃质感。',
+ navbar: '导航栏',
+ navbarItems: {
+ breadcrumb: '面包屑导航',
+ navigation: '导航',
+ search: '搜索',
+ theme: '主题',
+ },
+ navbarItemsToDisplay: '要显示的导航栏项目',
+ normalizeFileIcons: '统一文件图标',
+ normalizeFileIconsDesc: '让上级文件夹使用与常规文件相同的图标(非绿色)',
+ setLanguage: '设置语言',
+ setLanguageDesc: '选择界面语言。',
+ showItemsInSidebar: '要在侧边栏显示的项目',
+ sidebar: '侧边栏',
+ sidebarItems: {
+ cdn: 'CDN',
+ documents: '文档',
+ home: '首页',
+ importation: '导入',
+ manageCategories: '管理分类',
+ newPage: '新增页面',
+ settings: '设置',
+ teams: '团队',
+ },
+ styleDefault: '默认',
+ styleGlassmorphism: '毛玻璃',
+ subtitle: '管理你的偏好设置与各项设置。',
+ title: '偏好设置',
+ viewDock: '显示工具栏',
+ viewDockDesc: '在侧边栏右侧显示工具栏,以便快速访问应用程序。',
+ },
+
+ backups: {
+ backupLink: '备份链接',
+ createBackup: '创建备份',
+ creatingBackup: '正在创建备份...',
+ downloadBackup: '下载备份',
+ expiryNotice: '此链接将于 {date} 到期',
+ includeDocuments: '文档与分类',
+ includeFiles: '已上传的文件(图片、PDF 等)',
+ includeMetadata: '元数据',
+ includeSettings: '设置与偏好设置',
+ notifications: {
+ canceled: '已取消备份',
+ completed: '已成功创建备份',
+ completedTitle: '完成',
+ errorFetching: '获取备份状态时发生错误,请再试一次。',
+ failedToCancelBackup: '取消备份失败',
+ started: '已开始创建备份',
+ startedTitle: '已开始',
+ },
+ options: '备份选项',
+ subtitle: '使用可自定义的选项创建数据备份。',
+ title: '备份',
+ },
+
+ deleteAccountModal: {
+ confirm: '你确定要删除你的账号吗?',
+ irreversible: '此操作无法撤销',
+ notifications: {
+ deleted: '账号已删除',
+ error: '错误',
+ },
+ title: '删除账号',
+ waitTimer: '请等待 {seconds} 秒后再确认',
+ },
+
+ documents: {
+ defaultFontFamily: '默认字体',
+ defaultFontFamilyDesc: '设置所有文档的默认字体。',
+ defaultFontSize: '默认字体大小',
+ defaultFontSizeDesc: '设置所有文档的默认字体大小。',
+ defaultLineHeight: '默认行高',
+ defaultLineHeightDesc: '设置所有文档的默认行高。',
+ documentSize: '文档宽度',
+ documentTitlesNumbering: '为文档标题编号',
+ documentTitlesNumberingDesc: '启用文档标题(H1、H2、H3...)的自动编号。',
+ documentColoredTags: '彩色标签',
+ documentColoredTagsDesc: '依标签名称以不同颜色显示标签。若禁用,所有标签将使用相同颜色。',
+ documentShowAttachments: '显示附件',
+ documentShowAttachmentsDesc: '在文档结尾显示附加的资源(图片、PDF 等)。',
+ documentDefaultThumbnail: '默认缩略图',
+ documentDefaultThumbnailDesc: '为没有缩略图的文档显示默认缩略图,使用标准的文档图标。',
+ documentUseParentThumbnail: '使用上级项目的缩略图',
+ documentUseParentThumbnailDesc: '为没有自己缩略图的文档显示其上级项目的缩略图。若上级项目同样没有缩略图,则显示默认缩略图。',
+ enablePrintMode: '启用打印模式',
+ enablePrintModeDesc: '打印时简化文档头部(移除缩略图、标签与描述)',
+ hideTOC: '隐藏目录',
+ section: '文档',
+ subtitle: '管理你的文档设置与编辑偏好。',
+ theme: '主题',
+ themeDesc: '文档使用的默认主题,可针对单个文档修改。',
+ title: '文档偏好设置',
+ },
+
+ editor: {
+ displayStatsBar: '显示统计栏',
+ displayStatsBarDesc: '在编辑器顶部显示小型统计栏,包含字数、字符数与行数。',
+ enableAutoSave: '启用自动保存',
+ enableSnippets: '启用代码片段',
+ enableSnippetsDesc: '启用或禁用编辑器的代码片段功能。',
+ enableSpellCheck: '启用拼写检查',
+ enableSpellCheckDesc: '在编辑器中启用浏览器的拼写检查,修改后可能需要重新加载页面。',
+ fontFamily: '编辑器字体',
+ fontSize: '编辑器字体大小',
+ section: '编辑器',
+ simplifiedMobileView: '简化的移动设备视图',
+ simplifiedMobileViewDesc: '在移动设备上启用简化的编辑器视图,以提升使用体验。',
+ scrollBeyondLastLine: '可滚动超过最后一行',
+ scrollBeyondLastLineDesc: '允许编辑器滚动超过文档结尾,让最后一行不必停在屏幕底部。',
+ subtitle: '管理你的编辑器偏好设置。',
+ title: '编辑器偏好设置',
+ },
+
+ markdown: {
+ title: 'Markdown 语法',
+ },
+
+ menu: {
+ toggleClose: '关闭菜单',
+ toggleOpen: '菜单',
+ },
+
+ meta: {
+ accountSettings: '账号设置',
+ },
+
+ nav: {
+ general: '常规',
+ guides: '指南与信息',
+ new: '新增',
+ other: '其他',
+ preferences: '偏好设置',
+ tools: '工具',
+ },
+
+ other: {
+ datatable: '数据表格',
+ defaultItemsCount: '默认项目数量',
+ defaultUploadFolder: '默认上传文件夹',
+ defaultUploadFolderDesc: '选择上传文件的默认保存文件夹,可针对单个上传修改。',
+ developerMode: '开发者模式',
+ developerModeDesc: '启用额外的调试功能,例如在右键菜单中显示“复制 ID”。',
+ otherSection: '其他',
+ subtitle: '管理其他常规应用程序设置。',
+ title: '其他',
+ uploads: '上传',
+ sort: '项目排序',
+ sortKey: '排序依据',
+ sortKeyDesc: '选择列表中项目的默认排序字段。',
+ sortOrder: '排序方式',
+ sortOrderDesc: '选择列表中项目的默认排序方式。',
+ },
+
+ pages: {
+ about: '关于',
+ advanced: '高级',
+ appearance: '外观',
+ backup: '备份',
+ documents: '文档',
+ editor: '编辑器',
+ logout: '退出登录',
+ markdown: 'Markdown',
+ other: '其他',
+ profile: '我的个人资料',
+ security: '安全性',
+ shortcuts: '快捷键',
+ snippets: '代码片段',
+ styles: '样式注入',
+ teams: '团队',
+ },
+
+ profile: {
+ accountCreation: '账号创建时间',
+ avatar: '头像',
+ email: '电子邮件',
+ firstname: '名字',
+ lastname: '姓氏',
+ lastUpdate: '最后更新',
+ notifications: {
+ error: '更新时发生错误',
+ updated: '个人资料已更新',
+ },
+ subtitle: '管理你的个人资料设置与偏好。',
+ title: '我的个人资料',
+ username: '用户名',
+ },
+
+ security: {
+ activeSessions: '使用中的会话',
+ activeSessionsDesc: '以下是当前登录你账号的设备。',
+ backupHint: '删除账号前,请先导出你的数据。',
+ changePassword: '修改密码',
+ confirmPassword: '确认密码',
+ connected: '已关联',
+ connectedAccounts: '已关联的账号',
+ connectedAccountsDesc: '关联外部账号以便更轻松地登录。',
+ currentPassword: '当前的密码',
+ dangerZone: '危险区域',
+ dangerZoneDesc: '无法撤销的操作,请谨慎进行。',
+ deleteAccount: '删除账号',
+ deleteAccountDesc: '永久删除你的账号与所有相关数据,此操作无法撤销。',
+ deleteAccountDetails: '将会删除哪些数据?',
+ deleteAccountList: {
+ data: '你所有的账号数据(偏好设置、个人资料...)',
+ files: '你所有的文件与文件夹',
+ shares: '你所有的共享项目',
+ uploads: '你所有的上传文件',
+ },
+ link: '链接',
+ loadingAccounts: '正在加载已关联的账号...',
+ logout: '退出登录',
+ logoutAll: '退出所有设备登录',
+ logoutAllDesc: '结束所有设备上使用中的会话。你将会被跳转到登录页面,请先保存你的工作内容。',
+ logoutDesc: '结束此设备上当前的会话。你需要重新登录才能访问账号。',
+ newPassword: '新密码',
+ noProviders: '此应用程序尚未设置任何 SSO 提供商。',
+ noSessions: '找不到使用中的会话。',
+ notConnected: '未关联',
+ notifications: {
+ accountUnlinked: '已解除关联 {provider} 账号',
+ linkError: '无法启动账号关联程序',
+ passwordChanged: '密码已成功修改',
+ passwordError: '保存密码时发生错误',
+ unlinkError: '解除账号关联失败',
+ },
+ password: '密码',
+ passwordNotMatch: '两次输入的密码不一致!',
+ subtitle: '管理你的安全性设置并监控账号活动。',
+ title: '安全性',
+ totp: {
+ title: '两步验证(2FA)',
+ description: '登录时要求输入 6 位数验证码,以保护你的账号安全。',
+ enable: '启用 2FA',
+ disable: '禁用 2FA',
+ stateEnabled: '你的账号当前已启用 2FA。',
+ forced: '你的账号必须启用 2FA,请先启用才能继续使用本应用程序。',
+ enableStep1: '1. 使用你的验证器应用程序(Google Authenticator、Bitwarden 等)扫描此 QR code',
+ enableStep2: '2. 在下方输入验证器应用程序生成的 6 位数验证码,以完成验证并启用 2FA。',
+ backupCodes: {
+ title: '备用码',
+ warn: '请妥善保管这些备用码!',
+ description: '如果你丢失了 2FA 设备,这些备用码是找回账号的唯一方式。每组备用码只能使用一次。',
+ download: '下载备用码',
+ seen: '我已保存这些备用码',
+ copied: '已复制备用码!',
+ copy: '复制所有备用码',
+ },
+ },
+ unlink: '解除关联',
+ unrecognizedSession: '有不认识的会话吗?',
+ unrecognizedSessionDesc: '如果你看到不认识的会话,请立即修改密码,并点击下方的“退出所有设备登录”。',
+ },
+
+ shortcuts: {
+ actions: {
+ bold: '加粗文字',
+ closeModal: '关闭当前的对话框',
+ copy: '复制选中内容或当前行',
+ createCategory: '创建新分类',
+ createDocument: '创建新文档',
+ cut: '剪切选中内容或当前行',
+ editDocument: '编辑文档',
+ exitPage: '离开页面',
+ insertImage: '插入图片',
+ insertLink: '插入链接',
+ italic: '斜体文字',
+ nextDocument: '下一个文档',
+ nextResult: '下一个结果',
+ openCDNUploader: '打开 CDN 上传工具',
+ openCommandCenter: '打开命令中心并浏览',
+ openFindDialog: '打开查找对话框',
+ openResult: '打开选中的结果',
+ paste: '从剪贴板粘贴',
+ prevDocument: '上一个文档',
+ prevResult: '上一个结果',
+ printPage: '打印页面',
+ redo: '重做上一步操作',
+ reloadPage: '重新加载页面',
+ saveDocument: '保存文档',
+ savePage: '保存当前页面',
+ togglePreview: '切换预览',
+ underline: '下划线文字',
+ undo: '撤销上一步操作',
+ },
+ documentPage: '文档页面',
+ editorPage: '编辑器页面',
+ general: '常规',
+ searchPage: '搜索页面',
+ subtitle: '以下是各个仪表板页面的快捷键。',
+ title: '快捷键',
+ },
+
+ snippets: {
+ action: {
+ alreadyExists: '此快捷字符串已存在',
+ content: '片段内容',
+ contentPlaceholder: '片段内容...\n使用 ${0}、${1} 表示 Tab 停留点',
+ required: '快捷字符串与内容为必填',
+ restoreDefaults: '恢复默认值',
+ restoreDefaultsConfirm: '你确定要恢复默认的代码片段吗?',
+ shortcut: '快捷字符串',
+ shortcutHint: '以 {code} 之类的特殊字符作为开头,方便快速找到它',
+ titleEdit: '编辑代码片段',
+ titleNew: '新增代码片段',
+ },
+ actions: '操作',
+ content: '内容',
+ count: '{count} 个代码片段',
+ createSnippet: '创建代码片段',
+ export: '导出',
+ import: '导入',
+ jsonFile: 'JSON 文件',
+ noSnippets: '尚无代码片段',
+ notifications: {
+ bulkDeleted: '已删除 {count} 个代码片段',
+ deleted: '已删除代码片段',
+ },
+ restore: '恢复',
+ shortcut: '快捷字符串',
+ subtitle: '管理 Markdown 快捷字符串,在编辑器中使用它们来加速撰写。',
+ textDictionary: '文字字典',
+ title: '代码片段',
+ },
+
+ styles: {
+ appStyles: '应用程序样式',
+ appStylesDesc: '应用至整个应用程序的全局 CSS(布局、侧边栏、导航栏等)',
+ customStyles: '自定义样式',
+ documentStyles: '文档样式',
+ documentStylesDesc: '应用至文档内容的 CSS(Markdown 预览、排版、代码块等)',
+ enableInjection: '启用自定义样式注入',
+ enableInjectionDesc: '注入你自己的 CSS 来自定义应用程序与文档主题,修改会实时应用。',
+ subtitle: '继承并自定义应用程序与文档的样式。',
+ title: '样式注入',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/teams.ts b/frontend/i18n/locales/zh-CN/teams.ts
new file mode 100644
index 00000000..a46ba3c5
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/teams.ts
@@ -0,0 +1,39 @@
+export default {
+ title: '团队',
+ eyebrown: '组织视图',
+ subtitle: '团队可将工作区、分类、文档与资源整合在同一个共享的组织架构中。',
+
+ actions: {
+ create: '创建团队',
+ createDescription: '创建第一个团队,开始整理工作区与文档',
+ delete: '删除团队',
+ addContent: '新增内容',
+ leave: '离开团队',
+ noTeams: '尚无团队',
+ },
+ teamsCount: '个团队',
+ noDescription: '尚无描述',
+
+ overview: {
+ title: '团队总览',
+ team: '团队',
+
+ directItems: '个直属项目',
+ totalNodes: '个节点总计',
+
+ homepageNoContentTitle: '没有团队首页',
+ homepageNoContent: '此团队首页尚无任何内容。',
+ },
+
+ insights: {
+ title: '洞察',
+ trending: '热门',
+ stats: '统计',
+ },
+
+ members: {
+ title: '管理团队成员',
+ permissionsTitle: '管理整个团队的权限',
+ permissionsDescription: '在表格中新增用户并修改其权限。',
+ },
+};
diff --git a/frontend/i18n/locales/zh-CN/time.ts b/frontend/i18n/locales/zh-CN/time.ts
new file mode 100644
index 00000000..6e010fc1
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/time.ts
@@ -0,0 +1,9 @@
+export default {
+ daysAgo: '{count} 天前',
+ hoursAgo: '{count} 小时前',
+ justNow: '刚刚',
+ minutesAgo: '{count} 分钟前',
+ today: '今天',
+ weeksAgo: '{count} 周前',
+ yesterday: '昨天',
+};
diff --git a/frontend/i18n/locales/zh-CN/user.ts b/frontend/i18n/locales/zh-CN/user.ts
new file mode 100644
index 00000000..f360e976
--- /dev/null
+++ b/frontend/i18n/locales/zh-CN/user.ts
@@ -0,0 +1,7 @@
+export default {
+ accontDeletion: {
+ description: '你即将删除你的账号。',
+ title: '删除账号',
+ waitModal: '请等待 {seconds} 秒后才能删除账号。',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/admin.ts b/frontend/i18n/locales/zh-TW/admin.ts
new file mode 100644
index 00000000..429945bc
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/admin.ts
@@ -0,0 +1,43 @@
+export default {
+ dashboard: {
+ cards: {
+ totalNodes: '節點總數',
+ totalStorage: '總儲存空間',
+ totalUsers: '使用者總數',
+ },
+ charts: {
+ nodesGrowth: '節點成長(12 個月)',
+ usersGrowth: '使用者成長(12 個月)',
+ },
+ description: '你可以在此儀表板管理網站使用者與設定。',
+ error: '無法載入統計資料',
+ loading: '正在載入統計資料...',
+ manageUsers: '管理使用者',
+ top: {
+ byNodes: '節點數最多的使用者',
+ byStorage: '儲存空間用量最多的使用者',
+ nodes: '節點',
+ storage: '儲存空間',
+ user: '使用者',
+ },
+ title: '管理員儀表板',
+ },
+
+ users: {
+ headers: {
+ action: '操作',
+ createdAt: '建立於',
+ email: '電子郵件',
+ firstname: '名字',
+ lastname: '姓氏',
+ name: '名稱',
+ role: '角色',
+ },
+ noUsers: '找不到使用者。',
+ roles: {
+ admin: '管理員',
+ user: '使用者',
+ },
+ title: '使用者管理',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/application.ts b/frontend/i18n/locales/zh-TW/application.ts
new file mode 100644
index 00000000..fe6bd0bd
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/application.ts
@@ -0,0 +1,60 @@
+export default {
+ shortcuts: {
+ boldText: '粗體文字',
+ bulletList: '項目符號清單',
+ closeModal: '關閉目前的對話框',
+ copyText: '複製選取內容或目前行',
+ createCategory: '建立分類',
+ createDocument: '建立文件',
+ cutText: '剪下選取內容或目前行',
+ deleteElement: '刪除目前的元素',
+ editDocument: '編輯文件',
+ exitPage: '離開頁面',
+ headingLevel: '標題(1-6 級)',
+ highlightText: '螢光標示文字',
+ inlineCode: '行內程式碼',
+ insertCodeBlock: '插入程式碼區塊',
+ insertDiagram: '插入圖表',
+ insertFootnote: '插入註腳',
+ insertImage: '插入圖片',
+ insertLink: '插入連結',
+ insertQuote: '插入引言區塊',
+ insertSeparator: '插入分隔線',
+ insertTable: '插入表格',
+ italicText: '斜體文字',
+ mathInline: '行內數學公式',
+ nextDocument: '下一個文件',
+ nextSearchResult: '下一個搜尋結果',
+ openCDN: '開啟 CDN 上傳工具',
+ openCmdCenter: '開啟命令中心',
+ openFindDialog: '開啟尋找對話框',
+ openSelectedSearchResult: '開啟選取的結果',
+ openSettings: '開啟設定',
+ orderedList: '編號清單',
+ pasteText: '從剪貼簿貼上',
+ prevDocument: '上一個文件',
+ prevSearchResult: '上一個搜尋結果',
+ printPage: '列印頁面',
+ redoAction: '重做上一個動作',
+ reloadPage: '重新載入頁面',
+ savePage: '儲存目前頁面',
+ sections: {
+ commandCenter: '命令中心',
+ document: '文件',
+ editor: '編輯器',
+ general: '一般',
+ other: '其他',
+ search: '搜尋',
+ },
+ strikethroughText: '刪除線文字',
+ subscriptText: '下標',
+ superscriptText: '上標',
+ taskList: '任務清單',
+ textColor: '文字顏色',
+ toggleAdvancedView: '切換至進階檢視',
+ togglePreview: '切換預覽',
+ toggleQuickView: '切換至快速檢視',
+ underlineText: '底線文字',
+ undoAction: '復原上一個動作',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/cdn.ts b/frontend/i18n/locales/zh-TW/cdn.ts
new file mode 100644
index 00000000..37c25114
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/cdn.ts
@@ -0,0 +1,51 @@
+export default {
+ actions: {
+ download: '下載檔案',
+ upload: {
+ idle: '上傳',
+ multiple: '上傳 {n} 個檔案',
+ progress: '上傳中 {n} / {total}',
+ },
+ },
+
+ appdrop: {
+ addMore: '新增更多檔案',
+ link: '按這裡',
+ max: '最多 {n} 個檔案',
+ prompt: '將檔案拖曳至此,或{link}選擇檔案',
+ promptPlural: '將檔案拖曳至此,或{link}選擇檔案',
+ removeFile: '移除檔案',
+ },
+ diagram: '圖表編輯器',
+ edit: {
+ description: '管理伺服器上的資源與檔案。你可以編輯中繼資料或刪除檔案。',
+ title: '更新檔案',
+ },
+
+ labels: {
+ originalPath: '原始路徑',
+ path: '路徑',
+ },
+
+ meta: {
+ shortTitle: 'CDN',
+ title: '檔案管理員',
+ },
+
+ notifications: {
+ error: '{file} 上傳失敗:{error}',
+ successMsg: '已成功上傳 {n} 個檔案',
+ successTitle: '上傳完成',
+ },
+
+ page: {
+ empty: '尚未上傳任何檔案。',
+ },
+
+ preview: {
+ title: '預覽',
+ unavailable: '此檔案類型無法預覽',
+ },
+
+ storageUsed: '已使用的儲存空間',
+};
diff --git a/frontend/i18n/locales/zh-TW/common.ts b/frontend/i18n/locales/zh-TW/common.ts
new file mode 100644
index 00000000..6fcaf0d3
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/common.ts
@@ -0,0 +1,97 @@
+export default {
+ actions: {
+ cancel: '取消',
+ clear: '清除',
+ close: '關閉',
+ confirm: '確認',
+ copy: '複製',
+ copyLink: '複製連結',
+ create: '建立',
+ delete: '刪除',
+ download: '下載',
+ duplicate: '建立副本',
+ edit: '編輯',
+ export: '匯出',
+ import: '匯入',
+ new: '新增',
+ open: '開啟',
+ pin: '釘選至頂端',
+ preview: '預覽',
+ print: '列印',
+ reset: '重設',
+ revoke: '撤銷',
+ save: '儲存',
+ search: '搜尋',
+ share: '分享',
+ toggleFullscreen: '切換全螢幕',
+ unpin: '取消釘選',
+ update: '更新',
+ upload: '上傳',
+ },
+
+ confirm: {
+ irreversible: '此操作無法復原',
+ },
+
+ errors: {
+ generic: '發生錯誤',
+ notFound: '找不到',
+ unknown: '發生未知的錯誤',
+ },
+
+ labels: {
+ action: '操作',
+ advanced: '進階',
+ all: '全部',
+ basic: '基本',
+ color: '顏色',
+ content: '內容',
+ date: '日期',
+ description: '描述',
+ email: '電子郵件',
+ icon: '圖示',
+ id: 'ID',
+ name: '名稱',
+ order: '排序',
+ parent: '上層項目',
+ pinned: '已釘選',
+ role: '角色',
+ size: '大小',
+ status: '狀態',
+ tags: '標籤',
+ type: '類型',
+ },
+
+ nothing: '沒有可顯示的內容',
+
+ notifications: {
+ copiedMessage: '已成功複製內容。',
+ copiedTitle: '已複製到剪貼簿',
+ },
+
+ pagination: {
+ rowsPerPage: '每頁顯示筆數',
+ showing: '顯示第 {start} 至 {end} 筆,共 {total} 筆',
+ },
+
+ placeholder: {
+ parent: '選擇上層項目',
+ search: '搜尋...',
+ },
+
+ search: {
+ noResults: '找不到符合「{filter}」的結果',
+ },
+
+ status: {
+ cancelled: '已取消',
+ completed: '已完成',
+ error: '錯誤',
+ failed: '失敗',
+ loading: '載入中...',
+ pending: '待處理',
+ processing: '處理中',
+ success: '成功',
+ unknown: '未知',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/components.ts b/frontend/i18n/locales/zh-TW/components.ts
new file mode 100644
index 00000000..17fbbaf8
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/components.ts
@@ -0,0 +1,138 @@
+export default {
+ commandCenter: {
+ advanced: {
+ allCategories: '所有分類',
+ category: '分類',
+ clear: '清除',
+ created: '建立時間',
+ dateRange: '日期範圍',
+ from: '從',
+ modified: '修改時間',
+ searchInContent: '搜尋內文',
+ searchInContentHint: '在文件內文中搜尋(需輸入完整單字)',
+ tags: '標籤',
+ title: '進階篩選',
+ to: '至',
+ },
+ beta: 'Beta',
+ close: '關閉',
+ navigate: '瀏覽',
+ noResults: '找不到「{query}」的結果',
+ searchPlaceholder: '搜尋頁面、操作或文件...',
+ sections: {
+ documents: '文件',
+ pagesAndActions: '頁面與操作',
+ },
+ select: '選擇',
+ switchTabs: '切換分頁',
+ tabs: {
+ advanced: '進階',
+ quick: '快速',
+ },
+ },
+
+ dataTable: {
+ rowsPerPage: '每頁顯示筆數',
+ searchPlaceholder: '搜尋...',
+ showing: '顯示第 {start} 至 {end} 筆,共 {total} 筆',
+ },
+
+ editor: {
+ title: 'Markdown 編輯器',
+ placeholder: {
+ title: '文件標題',
+ description: '文件描述',
+ },
+ },
+
+ filter: {
+ ascending: '遞增',
+ descending: '遞減',
+ match: '比對方式',
+ sort: '排序依據',
+ created: '建立時間',
+ modified: '修改時間',
+ contains: '包含',
+ startsWith: '開頭為',
+ exact: '完全相符',
+ tags: '標籤',
+ },
+
+ kanban: {
+ addColumn: '新增欄位',
+ addDocument: '新增文件',
+ changeColor: '變更顏色',
+ deleteColumn: '刪除欄位',
+ deleteColumnModal: {
+ confirm: '你確定要刪除「{title}」欄位嗎?',
+ emptyColumn: '此欄位是空的。',
+ hasDocuments: '此欄位包含 {count} 個文件,這些文件將被移動到第一個欄位。',
+ title: '刪除欄位',
+ },
+ dragHere: '將文件拖曳到這裡',
+ editName: '編輯名稱',
+ noDocuments: '沒有文件',
+ resetBoard: {
+ confirm: '你確定要重設看板嗎?',
+ reset: '重設',
+ title: '重設看板',
+ warning: '此操作無法復原。所有欄位都會被移除,卡片將移動到第一個欄位。',
+ },
+ },
+
+ navbar: {
+ commandCenter: '命令中心(Ctrl+K)',
+ searchHint: '按 {key} 進行瀏覽',
+ },
+
+ noContent: {
+ nothingHere: '這裡沒有可顯示的內容',
+ },
+
+ sessionCard: {
+ current: '目前',
+ inactive: '未使用',
+ lastActivity: '最後活動時間',
+ loggedOut: '已登出',
+ login: '登入',
+ unknownIP: '未知的 IP',
+ unknownLocation: '未知的位置',
+ userAgent: '使用者代理',
+ },
+
+ sidebar: {
+ allWorkspaces: '所有工作區',
+ closeAll: '全部收合',
+ editWorkspace: '編輯工作區',
+ joinWorkspace: '加入工作區',
+ nav: {
+ cdn: 'CDN',
+ documents: '文件',
+ home: '首頁',
+ imports: '匯入',
+ manageCategories: '管理分類',
+ teams: '團隊',
+ newPage: '新增頁面',
+ settings: '設定',
+ },
+ newCategory: '新增分類',
+ newDoc: '新增文件',
+ newWorkspace: '新增工作區',
+ noWorkspaces: '找不到工作區',
+ openAll: '全部展開',
+ searchPlaceholder: '搜尋或按 ctrl + q',
+ sharedWithMe: '與我共用',
+ toggleDock: '切換工具列',
+ workspaces: '工作區',
+ },
+
+ tagInput: {
+ placeholder: '按 Enter 新增標籤',
+ },
+
+ viewSelection: {
+ kanban: '看板',
+ list: '清單',
+ table: '表格',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/dashboard.ts b/frontend/i18n/locales/zh-TW/dashboard.ts
new file mode 100644
index 00000000..e252b56f
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/dashboard.ts
@@ -0,0 +1,31 @@
+export default {
+ actions: {
+ import: '匯入',
+ joinWorkspace: '加入工作區',
+ newDocument: '+ 新增文件',
+ newWorkspace: '新增工作區',
+ },
+
+ dashboard: '儀表板',
+ greeting: '👋 嗨,{userName}',
+
+ pages: {
+ home: '首頁',
+ },
+
+ search: '搜尋文件、工作區、分類...',
+
+ sections: {
+ continueWorking: '繼續編輯',
+ pinnedDocuments: '已釘選的文件',
+ recentActivity: '最近活動',
+ yourWorkspaces: '你的工作區',
+ },
+
+ stats: {
+ cdnFiles: 'CDN 檔案',
+ documents: '文件',
+ tags: '標籤',
+ workspaces: '工作區',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/import.ts b/frontend/i18n/locales/zh-TW/import.ts
new file mode 100644
index 00000000..d6df9969
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/import.ts
@@ -0,0 +1,115 @@
+export default {
+ actions: {
+ cancel: '取消',
+ importAll: '全部匯入',
+ importing: '匯入中...',
+ optionsTitle: '匯入選項',
+ extractFrontMatter: '將 front matter 擷取為中繼資料',
+ normalizeLineEndings: '正規化換行字元',
+ preserveTimestamps: '保留原始時間戳記',
+ skipExisting: '略過已存在的文件(僅匯入新文件)',
+ },
+
+ advanced: {
+ options: '進階匯入選項',
+ defaultParent: '匯入文件的預設上層分類',
+ defaultDescription: '匯入文件的預設描述',
+ defaultTags: '匯入文件的預設標籤(以逗號分隔)',
+ defaultColor: '匯入文件的預設顏色',
+ defaultThumbnail: '匯入文件的預設縮圖(SVG 或 Unicode emoji)',
+ defaultIcon: '匯入文件的預設圖示(SVG 或 Unicode emoji)',
+ defaultTheme: '匯入文件的預設主題',
+ },
+
+ files: {
+ meta: {
+ title: '從 Markdown 檔案匯入',
+ description: '快速匯入 Markdown 檔案,並可設定目的地與處理方式。',
+ },
+ importable:
+ '你可以匯入 Markdown 檔案,或包含 Markdown 檔案的資料夾。資料夾會遞迴匯入;若選擇全部匯入,將保留原有的結構。',
+ toImport: '待匯入的項目',
+ },
+
+ categories: {
+ backup: {
+ title: '從備份匯入',
+ description: '還原包含文件與設定的完整 Alexandrie 備份。',
+ },
+ files: {
+ title: '從檔案匯入',
+ description: '透過彈性的選項從 Markdown 檔案匯入文件。',
+ },
+ advanced: {
+ title: '進階匯入',
+ description: '匯入整個資料夾(包含子資料夾與上傳檔案),並使用自訂選項取得最大的控制權。',
+ },
+ },
+
+ header: {
+ changeFile: '變更檔案',
+ created: '建立時間',
+ documents: '文件',
+ files: '檔案',
+ metadata: '中繼資料',
+ settings: '設定',
+ title: '備份資訊',
+ totalDocuments: '文件總數',
+ totalSize: '總大小',
+ version: '版本',
+ },
+
+ meta: {
+ breadcrumb: '匯入',
+ description: '你可以從先前的匯出檔匯入文件。如果你還沒有匯出檔,請前往',
+ settingsLink: '設定',
+ title: '匯入文件',
+ },
+
+ notifications: {
+ importCompleteMessage: '文件已成功匯入。',
+ importCompleteTitle: '匯入完成',
+ importFailedMessage: '匯入過程中發生錯誤,請再試一次。',
+ importFailedTitle: '匯入失敗',
+ localImportedMessage: '你的本機設定已被備份內容取代。',
+ localImportedTitle: '已匯入本機設定',
+ },
+
+ progress: {
+ title: '匯入進度',
+ },
+
+ steps: {
+ select: {
+ analyzing: '分析中...',
+ startImport: '開始匯入',
+ },
+ },
+
+ summary: {
+ documentsToUpdate: '待更新的文件',
+ newDocuments: '新文件',
+ title: '匯入摘要',
+ unchanged: '未變更',
+ },
+
+ tabs: {
+ backup: '備份',
+ current: '目前',
+ import: '匯入',
+ importFromBackup: '從備份匯入',
+ importLocalSettings: '匯入本機設定',
+ importSelected: '匯入所選項目({count})',
+ localSettings: '本機設定與偏好設定',
+ localSettingsAvailable: '可匯入本機設定與偏好設定',
+ localSettingsWarning: '這會覆蓋你目前的本機設定,包含程式碼片段',
+ newDocuments: '新文件',
+ noLocalSettings: '備份中找不到本機設定',
+ noNewDocuments: '沒有可匯入的新文件',
+ noUpdates: '沒有需要更新的文件',
+ replaceLocalSettings: '要以備份內容取代你的本機設定嗎?',
+ selectAll: '全選',
+ updates: '更新',
+ updateSelected: '更新所選項目({count})',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/index.ts b/frontend/i18n/locales/zh-TW/index.ts
new file mode 100644
index 00000000..ab306b7e
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/index.ts
@@ -0,0 +1,35 @@
+import type { MessageSchema } from '../../i18n.config';
+
+import admin from './admin';
+import application from './application';
+import cdn from './cdn';
+import common from './common';
+import components from './components';
+import dashboard from './dashboard';
+import importPage from './import';
+import markdown from './markdown';
+import landing from './landing';
+import nodes from './nodes';
+import publicPages from './public';
+import settings from './settings';
+import time from './time';
+import user from './user';
+import teams from './teams';
+
+export default {
+ admin,
+ application,
+ cdn,
+ common,
+ components,
+ dashboard,
+ import: importPage,
+ landing,
+ markdown,
+ nodes,
+ public: publicPages,
+ settings,
+ time,
+ user,
+ teams,
+} satisfies MessageSchema;
diff --git a/frontend/i18n/locales/zh-TW/landing.ts b/frontend/i18n/locales/zh-TW/landing.ts
new file mode 100644
index 00000000..64fbd83f
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/landing.ts
@@ -0,0 +1,229 @@
+export default {
+ seo: {
+ description: 'Alexandrie 是一個快速、可自架的 Markdown 工作區,適用於筆記、知識庫、協作與公開文件。',
+ keywords: 'Markdown 筆記, 知識庫, 自架筆記, 公開文件, 協作, 筆記應用程式',
+ title: 'Alexandrie | 現代化的 Markdown 工作區',
+ },
+ hero: {
+ badges: {
+ markdown: 'Markdown',
+ openSource: '開放原始碼',
+ organization: '組織',
+ },
+ ctaPrimary: '立即開始',
+ ctaSecondary: 'GitHub',
+ titleHighlight: '你的筆記',
+ titleSuffix: ',井然有序又賞心悅目',
+ tagline: '為速度、清晰與創意而生的強大 Markdown 工作區。',
+ previewAlt: 'Alexandrie 應用程式預覽',
+ },
+ bento: {
+ title: '寫得更好所需的一切',
+ subtitle: '將強大的功能濃縮在美觀且直覺的介面中',
+ editor: {
+ description: '寫作時享有語法高亮、即時預覽與鍵盤快捷鍵,並支援表格、程式碼區塊、數學公式等等。',
+ heading: '強大的 Markdown 編輯器',
+ sampleHeading: '歡迎使用 Alexandrie',
+ sampleList: '清單輕鬆上手',
+ sampleMarkdown: '用 Markdown 撰寫你的筆記',
+ sampleText: ' 與 ',
+ },
+ organization: {
+ description: '巢狀資料夾、工作區、標籤與強大的搜尋功能,讓每件事都各就各位。',
+ heading: '智慧整理',
+ },
+ collaboration: {
+ description: '與團隊一起協作。分享筆記、管理權限,還有更多功能。',
+ heading: '協作與分享',
+ editing: '3 人正在編輯...',
+ },
+ cdn: {
+ description: '上傳圖片與檔案',
+ heading: '內建 CDN',
+ },
+ themes: {
+ description: '各種心情都有對應主題',
+ extra: '你也可以變更配色、文件主題,並加入自訂顏色、圖示等等。',
+ heading: '深色與淺色',
+ },
+ search: {
+ description: '跨所有文件的全文搜尋,毫秒之間找到任何內容。',
+ heading: '閃電般快速的搜尋',
+ input: 'react hooks...',
+ },
+ publish: {
+ description: '公開分享你的作品,或只分享給特定對象,並產生美觀的唯讀頁面。',
+ heading: '一鍵發布',
+ status: '上線中',
+ url: 'docs.yoursite.com/guide',
+ },
+ organizationSamples: {
+ knowledgeBase: '知識庫',
+ projects: '專案',
+ roadmap: 'Roadmap.md',
+ ideas: 'Ideas.md',
+ development: '開發',
+ reactTips: 'React Tips.md',
+ },
+ searchResults: {
+ customHooks: 'Custom Hooks',
+ reactHooksGuide: 'React Hooks 指南',
+ path1: '知識庫 / 開發',
+ path2: '專案 / 前端',
+ },
+ theme: {
+ subtitle: '你也可以變更配色、文件主題,並加入自訂顏色、圖示等等。',
+ },
+ },
+ showcase: {
+ features: [
+ {
+ description: '使用零干擾的編輯器立即開始寫作,所有內容都會自動同步。',
+ points: ['即時自動儲存', '快速鍵盤快捷鍵', '零干擾模式', '常用格式範本'],
+ shortDesc: '快速筆記與草稿',
+ title: '即刻捕捉靈感',
+ },
+ {
+ description: '透過巢狀資料夾、工作區與智慧標籤,打造強大的知識庫。',
+ points: ['無限層級的巢狀資料夾', '多個工作區', '以標籤整理', '智慧篩選與檢視'],
+ shortDesc: '建立結構與分類',
+ title: '整理你的知識',
+ },
+ {
+ description: '與團隊分享筆記、管理權限,並即時協作。',
+ points: ['細緻的權限控制', '即時協作', '留言與回饋', '活動紀錄'],
+ shortDesc: '團隊工作流程',
+ title: '無縫協作',
+ },
+ {
+ description: '一鍵將你的筆記轉換成美觀的公開文件。',
+ points: ['自訂網域', 'SEO 最佳化', '內建分析', '密碼保護'],
+ shortDesc: '立即上線',
+ title: '發布與分享',
+ },
+ ],
+ subtitle: '看看 Alexandrie 如何簡化你的整個工作流程',
+ title: '從靈感到發布文件',
+ },
+ selfHost: {
+ notes: ['沒有遙測資料', '完全掌握資料', 'MIT 授權', '支援 Docker'],
+ steps: [
+ {
+ description:
+ '從 GitHub 取得設定檔 <br /> <a target="_blank" style="color: var(--primary);text-decoration: underline;font-weight: 500;" href="https://github.com/Smaug6739/Alexandrie/blob/main/docker-compose.yml">下載 docker-compose.yml 檔案</a> <br /><a target="_blank" style="color: var(--primary);text-decoration: underline;font-weight: 500;" href="https://github.com/Smaug6739/Alexandrie/blob/main/.env.example">下載 .env.example 檔案</a> ',
+ title: '複製儲存庫',
+ },
+ {
+ code: 'cp .env.example .env && nano .env',
+ description: '視需要修改環境變數(選用)',
+ title: '設定',
+ },
+ {
+ code: 'docker compose up -d',
+ description: '使用 Docker Compose 啟動所有服務',
+ title: '啟動',
+ },
+ ],
+ subtitle: '透過簡單的部署方式,完全掌控你的資料',
+ terminal: {
+ lines: ['[+] Running 3/3', '✓ Container alexandrie-db Started', '✓ Container alexandrie-minio Started', '✓ Container alexandrie-app Started'],
+ title: '終端機',
+ },
+ title: '幾分鐘內完成自架',
+ },
+ stats: {
+ actions: {
+ contribute: '參與貢獻',
+ star: '在 GitHub 上加星',
+ tryApp: '試用應用程式',
+ },
+ badge: '開放原始碼',
+ cardDescription: '為習慣以 Markdown 思考的開發者打造的開源工作區',
+ labels: {
+ contributors: '貢獻者',
+ latestRelease: '最新版本',
+ stars: 'GitHub 星數',
+ },
+ subtitle: '透明的開發流程、由社群主導的決策,以及完整的原始碼存取權',
+ title: '公開透明地打造',
+ },
+ contributors: {
+ commitLabel: '次提交',
+ cta: '成為貢獻者',
+ subtitle: '認識讓 Alexandrie 得以誕生的這群夥伴',
+ title: '由社群共同打造',
+ },
+ faq: {
+ answer1: '是的,Alexandrie 採用 MIT 授權,100% 開放原始碼。你可以自由使用、修改與散布,沒有隱藏費用,也沒有付費方案。',
+ answer2: '當然可以!你可以使用 Docker 在自己的基礎設施上執行 Alexandrie。我們提供完整文件,幫助你在幾分鐘內完成部署。',
+ answer3: '可以,Alexandrie 以離線優先的原則設計。你的筆記可在本機取用,並在重新連線時同步。',
+ answer4: '自架時,你的資料會留在自己的伺服器上。我們採用業界標準的安全實務,所有資料傳輸皆經過加密。',
+ answer5: '可以!你可以從 Notion、Obsidian 或任何 Markdown 編輯器匯入 Markdown 檔案,也支援匯出為排版精美的 PDF。',
+ answer6: '當然!我們支援 100 種以上程式語言的語法高亮,以及 LaTeX 數學公式渲染。',
+ answer7: 'Alexandrie 是響應式網頁應用程式,在行動裝置瀏覽器上也能順暢使用。原生應用程式已列入我們的開發藍圖。',
+ ctaDescription: '找不到你想知道的答案嗎?加入我們的社群吧!',
+ ctaTitle: '還有其他問題嗎?',
+ discord: '加入 Discord',
+ subtitle: '關於 Alexandrie,你需要知道的一切',
+ title: '常見問題',
+ questions: [
+ 'Alexandrie 真的免費且開放原始碼嗎?',
+ '我可以在自己的伺服器上自架 Alexandrie 嗎?',
+ 'Alexandrie 可以離線使用嗎?',
+ '我的資料如何儲存與保護?',
+ '我可以從其他應用程式匯入筆記嗎?',
+ '支援程式碼區塊與數學公式嗎?',
+ '有行動裝置應用程式嗎?',
+ ],
+ },
+ cta: {
+ discord: 'Discord 伺服器',
+ description: '和我們一起踏上更好的筆記之旅。',
+ title: '準備好開始寫出更好的筆記了嗎?',
+ button: '立即開始',
+ contributionPrefix: '想要參與貢獻或討論嗎?歡迎前往我們的',
+ },
+ support: {
+ badge: '來自作者的話',
+ confirm: '我了解了,謝謝!',
+ paragraph1:
+ 'Alexandrie 一開始並不是一門生意,而是我為自己打造的工具。多年之後,我仍利用空閒時間維護與改進它,也很樂意分享給任何覺得它有用的人。',
+ paragraph2:
+ '這個應用程式不會追蹤你、不投放廣告,而且完全開放原始碼。不過,維持線上平台運作仍需要主機與基礎設施費用。如果 Alexandrie 為你的日常工作帶來價值,歡迎支持它的獨立運作。即使是最小額的贊助,也足以支付好幾個月的伺服器費用。',
+ title: 'Alexandrie 是免費的,未來也會一直如此。',
+ signature: '— Smaug',
+ cards: {
+ sponsorDesc: '協助分擔主機、備份基礎設施與開發成本,讓 Alexandrie 保持線上且獨立。',
+ sponsorTitle: '在財務上支持',
+ starDesc: '表達你的支持,並幫助其他開發者發現這個專案。這不需要任何花費,卻意義非凡。',
+ starTitle: '在 GitHub 上加星',
+ },
+ },
+ footer: {
+ brandDescription: '為習慣以 Markdown 思考的開發者打造的開源工作區。美觀的文件、強大的組織能力、零阻力的體驗。',
+ madeWith: '用',
+ columns: {
+ community: '社群',
+ legal: '法律資訊',
+ product: '產品',
+ resources: '資源',
+ },
+ links: {
+ about: '關於',
+ apiReference: 'API 參考文件',
+ changelog: '更新日誌',
+ contribute: '參與貢獻',
+ dashboard: '儀表板',
+ discord: 'Discord',
+ documentation: '說明文件',
+ features: '功能',
+ github: 'GitHub',
+ issues: 'Issues',
+ mitLicense: 'MIT 授權',
+ privacyPolicy: '隱私權政策',
+ roadmap: '開發藍圖',
+ terms: '服務條款',
+ },
+ by: '打造,作者為',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/markdown.ts b/frontend/i18n/locales/zh-TW/markdown.ts
new file mode 100644
index 00000000..64eee6be
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/markdown.ts
@@ -0,0 +1,90 @@
+export default {
+ colors: {
+ customColors: '自訂顏色',
+ quickColors: '快速顏色',
+ subtitle: '為你的文字選擇顏色',
+ title: '顏色',
+ useColor: '使用顏色',
+ },
+ image: {
+ noImages: '找不到圖片',
+ searchPlaceholder: '搜尋圖片...',
+ subtitle: '選擇要插入文件的圖片。',
+ title: '選擇圖片',
+ uploadError: '上傳時發生錯誤。',
+ },
+ drawio: {
+ linked: '已連結的圖表',
+ title: '圖表編輯器',
+ },
+ stats: {
+ chars: '字元',
+ lines: '行',
+ words: '字',
+ },
+ syntax: {
+ advancedBlocks: '進階區塊',
+ basicFormatting: '基本格式',
+ cardsAndPanels: '卡片與面板',
+ coloredBlocks: '彩色區塊',
+ colors: '顏色',
+ diagrams: '圖表',
+ extendedSyntax: '擴充語法',
+ footnotes: '註腳',
+ layoutBlocks: '版面區塊',
+ linksAndImages: '連結與圖片',
+ mathSyntax: '數學語法',
+ subtitle: '本指南說明如何使用 Alexandrie 的擴充 Markdown 功能,寫出更具表現力且結構清晰的筆記。',
+ tags: '標籤',
+ title: 'Alexandrie Markdown 語法指南',
+ titles: '標題',
+ tooltips: '提示訊息',
+ },
+ table: {
+ hoverHint: '將游標移上以檢視大小',
+ subtitle: '用滑鼠選擇表格大小',
+ tableSize: '{rows} × {columns} 表格',
+ title: '插入表格',
+ },
+ toolbar: {
+ bold: '粗體',
+ bulletList: '項目符號清單',
+ category: '分類',
+ clearFormatting: '清除格式',
+ codeBlock: '程式碼區塊',
+
+ color: '顏色',
+ editorSettings: '編輯器設定',
+ diagram: '圖表',
+ footnote: '註腳',
+
+ goToDocument: '前往文件',
+ heading: '標題',
+ highlight: '螢光標示',
+ horizontalRule: '水平分隔線',
+ image: '圖片',
+ inlineCode: '行內程式碼',
+
+ italic: '斜體',
+ link: '連結',
+ markdownSyntax: 'Markdown 語法',
+ math: '數學公式',
+ numberedList: '編號清單',
+ preview: '預覽',
+ quote: '引言',
+
+ save: '儲存',
+ strikethrough: '刪除線',
+ subscript: '下標',
+
+ superscript: '上標',
+ table: '表格',
+ taskList: '任務清單',
+ underline: '底線',
+ },
+ voice: {
+ notSupported: '此瀏覽器不支援語音辨識',
+ startRecording: '開始語音辨識',
+ stopRecording: '停止錄音',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/nodes.ts b/frontend/i18n/locales/zh-TW/nodes.ts
new file mode 100644
index 00000000..f2745449
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/nodes.ts
@@ -0,0 +1,145 @@
+export default {
+ nodes: '節點',
+ actions: {
+ copyPublicLink: '複製公開連結',
+ editMeta: '編輯中繼資料',
+ exportAsMarkdown: '匯出為 Markdown',
+ managePermissions: '管理權限',
+ newDocument: '+ 建立新文件',
+ publicLink: '公開連結',
+ removeFromShared: '從共用中移除',
+ resetBoard: '重設看板',
+ share: '分享',
+ },
+
+ category: {
+ editTitle: '分類與工作區',
+ iconHint: '支援 SVG',
+ name: '分類',
+ new: '新增分類',
+ notifications: {
+ created: '已成功建立分類',
+ creationError: '建立分類時發生錯誤',
+ updated: '分類已更新',
+ },
+ orderHint: '分類在側邊欄中的排序',
+ uncategorized: '未分類',
+ },
+
+ container: {
+ createNewDocument: '+ 建立新文件',
+ import: '匯入',
+ newCategory: '+ 分類',
+ newWorkspace: '+ 工作區',
+ noDocuments: '找不到文件',
+ noDocumentsDescription: '此分類中沒有任何文件',
+ noWorkspaces: '找不到工作區或分類',
+ searchPlaceholder: '搜尋工作區...',
+ title: '工作區與分類',
+ },
+
+ document: {
+ childs: '子文件',
+ editPage: '編輯頁面',
+ lastUpdated: '最後更新',
+ nextPage: '下一頁',
+ prevPage: '上一頁',
+ TOC: '目錄',
+ },
+
+ filter: {
+ footer: '{count} / {total} 個符合項目',
+ title: '篩選節點',
+ toClose: '以關閉',
+ },
+
+ modals: {
+ delete: {
+ bulkCount: '此操作將刪除 {count} 個節點。',
+ confirm: '你確定要刪除這個{type}嗎?',
+ confirmBulk: '你確定要刪除所選的節點嗎?',
+ hasChildren: '此{type}有 {count} 個子文件,這些文件也會一併刪除。',
+ irreversible: '此操作無法復原',
+ title: '刪除{type}',
+ titleBulk: '刪除節點',
+ },
+ join: {
+ access: '節點存取權',
+ title: '加入團隊或工作區',
+ subtitle: '貼上邀請碼或完整的邀請連結。如果你已用其他權限等級加入過這個工作區,系統只會保留最高的權限。',
+ label: '邀請碼或連結',
+ join: '加入',
+ joining: '加入中...',
+ inputPlaceholder: 'ABC123 或 https://.../join-workspace?code=ABC123',
+ },
+ metadata: {
+ emojiOrIcon: 'Emoji 或圖示',
+ emojiOrIconHint: '支援 SVG 或 emoji',
+ labelAppearance: '外觀',
+ labelOrganization: '組織',
+ labelMedia: '媒體',
+ pinDescription: '將此文件釘選至工作區頂端',
+ thumbnail: '縮圖',
+ thumbnailHint: '支援 SVG',
+ title: '中繼資料',
+ },
+ permissions: {
+ addPermission: '新增',
+ defaultPermission: '新使用者的預設權限',
+ generalAccess: '一般存取權',
+ inviteLabel: '節點邀請',
+ inviteCreate: '建立邀請',
+ inviteCreateProgress: '正在建立邀請...',
+ inviteEmpty: '尚無邀請',
+ invitePermission: '權限',
+ managePermissions: '管理權限',
+ noPermissions: '尚未設定權限',
+ noResults: '找不到結果',
+ publicInfo: '此文件將可透過專屬網址公開存取。',
+ removePermission: '移除權限',
+ searchPlaceholder: '使用者名稱或電子郵件',
+ searchUser: '搜尋使用者',
+ shareLink: '分享這個連結,讓任何人不需帳號即可檢視文件:',
+ title: '管理權限',
+ },
+ removeShared: {
+ childWarning: '此文件有 {count} 個子文件,這些文件也會一併移除。',
+ confirm: '你確定要移除這個文件嗎?',
+ noAccess: '執行此操作後,你將無法再存取這個文件。',
+ success: '文件已移除',
+ title: '移除此文件',
+ },
+ },
+
+ notifications: {
+ linkCopied: '已複製連結到剪貼簿',
+ },
+
+ // From the shared_target api (PWA)
+ share: {
+ actionChoose: '你想要做什麼?',
+ actionCreateDocument: '建立新文件',
+ actionCreateDocumentDesc: '使用分享的內容建立新的 Markdown 文件',
+ actionUploadResource: '上傳為資源',
+ actionUploadResourceDesc: '將分享的內容上傳為資源(圖片、PDF 等),並取得可插入文件的連結',
+ chooseDestination: '選擇要將此內容儲存到哪裡。',
+ description: '從其他應用程式接收到的內容。',
+ sharedContent: '分享的內容',
+ title: '分享內容',
+ },
+
+ tags: '標籤',
+
+ types: {
+ category: '分類',
+ document: '文件',
+ resource: '資源',
+ workspace: '工作區',
+ },
+
+ workspace: {
+ all: '所有工作區',
+ new: '新增工作區',
+ shared: '與我共用',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/public.ts b/frontend/i18n/locales/zh-TW/public.ts
new file mode 100644
index 00000000..ba7b698c
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/public.ts
@@ -0,0 +1,65 @@
+export default {
+ nav: {
+ login: '登入',
+ signup: '註冊',
+ home: '首頁',
+ },
+ login: {
+ title: '登入',
+ form: {
+ username: '使用者名稱',
+ password: '密碼',
+ confirmPassword: '確認密碼',
+ submit: '登入',
+ },
+ disabled: '目前已停用原生登入,請使用下方任一種驗證方式。',
+ needAccount: '還沒有帳號嗎?立即註冊',
+ forgotPassword: '忘記密碼?',
+ clickHere: '按這裡',
+ OTP_2FA: {
+ title: '兩步驟驗證',
+ description: '請輸入驗證器應用程式中的 6 位數驗證碼。',
+ placeholder: '000000 或 8 位數備用碼',
+ code: '驗證碼',
+ submit: '驗證',
+ back: '返回',
+ },
+ reset: {
+ title: '重設密碼',
+ submit: '要求重設',
+ change: '變更密碼',
+ havingIssues: '遇到問題?',
+ contactUs: '聯絡我們!',
+ done: {
+ title: '已寄出指示',
+ description: '請查看你的電子郵件中的密碼重設連結。如果幾分鐘內沒有收到,請檢查垃圾郵件匣。',
+ returnToLogin: '返回登入頁',
+ },
+ },
+ oidc: {
+ title: '驗證中...',
+ description: '正在完成登入,請稍候。',
+ divider: '或使用以下方式繼續',
+ linked: '你的 {{ providerName }} 帳號已成功連結。',
+ created: '你的帳號已成功建立並連結。',
+ signIn: '你已成功登入。',
+ redirectSettings: '正在前往設定頁面...',
+ redirectDashboard: '正在前往儀表板...',
+ error: '驗證失敗',
+ tryAgain: '再試一次',
+ createAccount: '建立帳號',
+ },
+ },
+ signup: {
+ title: '建立帳號',
+ form: {
+ username: '使用者名稱',
+ email: '電子郵件',
+ emailDescription: '電子郵件僅用於帳號救援,不會公開分享。',
+ password: '密碼',
+ confirmPassword: '確認密碼',
+ submit: '註冊',
+ },
+ alreadyHaveAccount: '已經有帳號了嗎?立即登入',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/settings.ts b/frontend/i18n/locales/zh-TW/settings.ts
new file mode 100644
index 00000000..e89e7d10
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/settings.ts
@@ -0,0 +1,378 @@
+export default {
+ about: {
+ changelog: '更新日誌',
+ client: '用戶端',
+ contact: '如果你有任何問題、建議或發現錯誤,歡迎與我們聯絡!你可以開立 issue 於',
+ description: 'Alexandrie 是一套個人知識管理工具,協助你有效率地整理與查找筆記。',
+ features: '它提供文件整理、標籤與進階搜尋等功能。',
+ githubRepo: 'GitHub 儲存庫',
+ pwa: 'PWA',
+ seeFullChangelog: '查看完整更新日誌於',
+ subtitle: '應用程式資訊。',
+ title: '關於 Alexandrie',
+ version: 'Alexandrie 版本',
+ website: '網站',
+ },
+
+ advanced: {
+ resetLocalStorage: '重設本機儲存空間',
+ resetLocalStorageBtn: '清除本機儲存空間',
+ resetLocalStorageDesc: '這會重設所有本機儲存的資料,此操作無法復原,偏好設定也會一併重設。',
+ resetPreferences: '重設所有偏好設定',
+ resetPreferencesBtn: '重設偏好設定',
+ resetPreferencesDesc: '這會將所有偏好設定還原為預設值,此操作無法復原。',
+ subtitle: '管理進階的應用程式設定。',
+ title: '進階',
+ },
+
+ appearance: {
+ chooseAccentColor: '選擇強調色',
+ displayUncategorizedResources: '顯示未分類的資源',
+ displayUncategorizedResourcesDesc: '在側邊欄頂端顯示未分類的資源(CDN 上傳檔案)。',
+ displayTabs: '顯示分頁列',
+ displayTabsDesc: '啟用或停用儀表板頂端的分頁列。',
+ displayFeatureTags: '顯示功能標記',
+ displayFeatureTagsDesc: '顯示用來標示新功能與實驗性功能的「New」與「Beta」徽章。',
+ enableCompactMode: '啟用精簡模式',
+ enableCompactModeDesc: '縮小側邊欄項目尺寸,以顯示更多內容。',
+ enableDarkMode: '啟用深色模式',
+ general: '一般',
+ interfaceStyle: '介面樣式',
+ interfaceStyleDesc: '毛玻璃樣式會加入具模糊效果的半透明表面,營造現代的玻璃質感。',
+ navbar: '導覽列',
+ navbarItems: {
+ breadcrumb: '麵包屑導覽',
+ navigation: '導覽',
+ search: '搜尋',
+ theme: '主題',
+ },
+ navbarItemsToDisplay: '要顯示的導覽列項目',
+ normalizeFileIcons: '統一檔案圖示',
+ normalizeFileIconsDesc: '讓上層資料夾使用與一般檔案相同的圖示(非綠色)',
+ setLanguage: '設定語言',
+ setLanguageDesc: '選擇介面語言。',
+ showItemsInSidebar: '要在側邊欄顯示的項目',
+ sidebar: '側邊欄',
+ sidebarItems: {
+ cdn: 'CDN',
+ documents: '文件',
+ home: '首頁',
+ importation: '匯入',
+ manageCategories: '管理分類',
+ newPage: '新增頁面',
+ settings: '設定',
+ teams: '團隊',
+ },
+ styleDefault: '預設',
+ styleGlassmorphism: '毛玻璃',
+ subtitle: '管理你的偏好設定與各項設定。',
+ title: '偏好設定',
+ viewDock: '顯示工具列',
+ viewDockDesc: '在側邊欄右側顯示工具列,以便快速存取應用程式。',
+ },
+
+ backups: {
+ backupLink: '備份連結',
+ createBackup: '建立備份',
+ creatingBackup: '正在建立備份...',
+ downloadBackup: '下載備份',
+ expiryNotice: '此連結將於 {date} 到期',
+ includeDocuments: '文件與分類',
+ includeFiles: '已上傳的檔案(圖片、PDF 等)',
+ includeMetadata: '中繼資料',
+ includeSettings: '設定與偏好設定',
+ notifications: {
+ canceled: '已取消備份',
+ completed: '已成功建立備份',
+ completedTitle: '完成',
+ errorFetching: '取得備份狀態時發生錯誤,請再試一次。',
+ failedToCancelBackup: '取消備份失敗',
+ started: '已開始建立備份',
+ startedTitle: '已開始',
+ },
+ options: '備份選項',
+ subtitle: '使用可自訂的選項建立資料備份。',
+ title: '備份',
+ },
+
+ deleteAccountModal: {
+ confirm: '你確定要刪除你的帳號嗎?',
+ irreversible: '此操作無法復原',
+ notifications: {
+ deleted: '帳號已刪除',
+ error: '錯誤',
+ },
+ title: '刪除帳號',
+ waitTimer: '請等待 {seconds} 秒後再確認',
+ },
+
+ documents: {
+ defaultFontFamily: '預設字型',
+ defaultFontFamilyDesc: '設定所有文件的預設字型。',
+ defaultFontSize: '預設字型大小',
+ defaultFontSizeDesc: '設定所有文件的預設字型大小。',
+ defaultLineHeight: '預設行高',
+ defaultLineHeightDesc: '設定所有文件的預設行高。',
+ documentSize: '文件寬度',
+ documentTitlesNumbering: '為文件標題編號',
+ documentTitlesNumberingDesc: '啟用文件標題(H1、H2、H3...)的自動編號。',
+ documentColoredTags: '彩色標籤',
+ documentColoredTagsDesc: '依標籤名稱以不同顏色顯示標籤。若停用,所有標籤將使用相同顏色。',
+ documentShowAttachments: '顯示附件',
+ documentShowAttachmentsDesc: '在文件結尾顯示附加的資源(圖片、PDF 等)。',
+ documentDefaultThumbnail: '預設縮圖',
+ documentDefaultThumbnailDesc: '為沒有縮圖的文件顯示預設縮圖,使用標準的文件圖示。',
+ documentUseParentThumbnail: '使用上層項目的縮圖',
+ documentUseParentThumbnailDesc: '為沒有自己縮圖的文件顯示其上層項目的縮圖。若上層項目同樣沒有縮圖,則顯示預設縮圖。',
+ enablePrintMode: '啟用列印模式',
+ enablePrintModeDesc: '列印時簡化文件標頭(移除縮圖、標籤與描述)',
+ hideTOC: '隱藏目錄',
+ section: '文件',
+ subtitle: '管理你的文件設定與編輯偏好。',
+ theme: '主題',
+ themeDesc: '文件使用的預設主題,可針對個別文件變更。',
+ title: '文件偏好設定',
+ },
+
+ editor: {
+ displayStatsBar: '顯示統計列',
+ displayStatsBarDesc: '在編輯器頂端顯示小型統計列,包含字數、字元數與行數。',
+ enableAutoSave: '啟用自動儲存',
+ enableSnippets: '啟用程式碼片段',
+ enableSnippetsDesc: '啟用或停用編輯器的程式碼片段功能。',
+ enableSpellCheck: '啟用拼字檢查',
+ enableSpellCheckDesc: '在編輯器中啟用瀏覽器的拼字檢查,變更後可能需要重新載入頁面。',
+ fontFamily: '編輯器字型',
+ fontSize: '編輯器字型大小',
+ section: '編輯器',
+ simplifiedMobileView: '簡化的行動裝置檢視',
+ simplifiedMobileViewDesc: '在行動裝置上啟用簡化的編輯器檢視,以提升使用體驗。',
+ scrollBeyondLastLine: '可捲動超過最後一行',
+ scrollBeyondLastLineDesc: '允許編輯器捲動超過文件結尾,讓最後一行不必停在螢幕底部。',
+ subtitle: '管理你的編輯器偏好設定。',
+ title: '編輯器偏好設定',
+ },
+
+ markdown: {
+ title: 'Markdown 語法',
+ },
+
+ menu: {
+ toggleClose: '關閉選單',
+ toggleOpen: '選單',
+ },
+
+ meta: {
+ accountSettings: '帳號設定',
+ },
+
+ nav: {
+ general: '一般',
+ guides: '指南與資訊',
+ new: '新增',
+ other: '其他',
+ preferences: '偏好設定',
+ tools: '工具',
+ },
+
+ other: {
+ datatable: '資料表格',
+ defaultItemsCount: '預設項目數量',
+ defaultUploadFolder: '預設上傳資料夾',
+ defaultUploadFolderDesc: '選擇上傳檔案的預設儲存資料夾,可針對個別上傳變更。',
+ developerMode: '開發者模式',
+ developerModeDesc: '啟用額外的除錯功能,例如在右鍵選單中顯示「複製 ID」。',
+ otherSection: '其他',
+ subtitle: '管理其他一般應用程式設定。',
+ title: '其他',
+ uploads: '上傳',
+ sort: '項目排序',
+ sortKey: '排序依據',
+ sortKeyDesc: '選擇清單中項目的預設排序欄位。',
+ sortOrder: '排序方式',
+ sortOrderDesc: '選擇清單中項目的預設排序方式。',
+ },
+
+ pages: {
+ about: '關於',
+ advanced: '進階',
+ appearance: '外觀',
+ backup: '備份',
+ documents: '文件',
+ editor: '編輯器',
+ logout: '登出',
+ markdown: 'Markdown',
+ other: '其他',
+ profile: '我的個人檔案',
+ security: '安全性',
+ shortcuts: '快捷鍵',
+ snippets: '程式碼片段',
+ styles: '樣式注入',
+ teams: '團隊',
+ },
+
+ profile: {
+ accountCreation: '帳號建立時間',
+ avatar: '頭像',
+ email: '電子郵件',
+ firstname: '名字',
+ lastname: '姓氏',
+ lastUpdate: '最後更新',
+ notifications: {
+ error: '更新時發生錯誤',
+ updated: '個人檔案已更新',
+ },
+ subtitle: '管理你的個人檔案設定與偏好。',
+ title: '我的個人檔案',
+ username: '使用者名稱',
+ },
+
+ security: {
+ activeSessions: '使用中的工作階段',
+ activeSessionsDesc: '以下是目前登入你帳號的裝置。',
+ backupHint: '刪除帳號前,請先匯出你的資料。',
+ changePassword: '變更密碼',
+ confirmPassword: '確認密碼',
+ connected: '已連結',
+ connectedAccounts: '已連結的帳號',
+ connectedAccountsDesc: '連結外部帳號以便更輕鬆地登入。',
+ currentPassword: '目前的密碼',
+ dangerZone: '危險區域',
+ dangerZoneDesc: '無法復原的操作,請謹慎進行。',
+ deleteAccount: '刪除帳號',
+ deleteAccountDesc: '永久刪除你的帳號與所有相關資料,此操作無法復原。',
+ deleteAccountDetails: '將會刪除哪些資料?',
+ deleteAccountList: {
+ data: '你所有的帳號資料(偏好設定、個人檔案...)',
+ files: '你所有的檔案與資料夾',
+ shares: '你所有的共用項目',
+ uploads: '你所有的上傳檔案',
+ },
+ link: '連結',
+ loadingAccounts: '正在載入已連結的帳號...',
+ logout: '登出',
+ logoutAll: '登出所有裝置',
+ logoutAllDesc: '結束所有裝置上使用中的工作階段。你將會被導向登入頁面,請先儲存你的工作內容。',
+ logoutDesc: '結束此裝置上目前的工作階段。你需要重新登入才能存取帳號。',
+ newPassword: '新密碼',
+ noProviders: '此應用程式尚未設定任何 SSO 提供者。',
+ noSessions: '找不到使用中的工作階段。',
+ notConnected: '未連結',
+ notifications: {
+ accountUnlinked: '已解除連結 {provider} 帳號',
+ linkError: '無法啟動帳號連結程序',
+ passwordChanged: '密碼已成功變更',
+ passwordError: '儲存密碼時發生錯誤',
+ unlinkError: '解除帳號連結失敗',
+ },
+ password: '密碼',
+ passwordNotMatch: '兩次輸入的密碼不一致!',
+ subtitle: '管理你的安全性設定並監控帳號活動。',
+ title: '安全性',
+ totp: {
+ title: '兩步驟驗證(2FA)',
+ description: '登入時要求輸入 6 位數驗證碼,以保護你的帳號安全。',
+ enable: '啟用 2FA',
+ disable: '停用 2FA',
+ stateEnabled: '你的帳號目前已啟用 2FA。',
+ forced: '你的帳號必須啟用 2FA,請先啟用才能繼續使用本應用程式。',
+ enableStep1: '1. 使用你的驗證器應用程式(Google Authenticator、Bitwarden 等)掃描此 QR code',
+ enableStep2: '2. 在下方輸入驗證器應用程式產生的 6 位數驗證碼,以完成驗證並啟用 2FA。',
+ backupCodes: {
+ title: '備用碼',
+ warn: '請妥善保管這些備用碼!',
+ description: '如果你遺失了 2FA 裝置,這些備用碼是救回帳號的唯一方式。每組備用碼只能使用一次。',
+ download: '下載備用碼',
+ seen: '我已儲存這些備用碼',
+ copied: '已複製備用碼!',
+ copy: '複製所有備用碼',
+ },
+ },
+ unlink: '解除連結',
+ unrecognizedSession: '有不認識的工作階段嗎?',
+ unrecognizedSessionDesc: '如果你看到不認識的工作階段,請立即變更密碼,並點擊下方的「登出所有裝置」。',
+ },
+
+ shortcuts: {
+ actions: {
+ bold: '粗體文字',
+ closeModal: '關閉目前的對話框',
+ copy: '複製選取內容或目前行',
+ createCategory: '建立新分類',
+ createDocument: '建立新文件',
+ cut: '剪下選取內容或目前行',
+ editDocument: '編輯文件',
+ exitPage: '離開頁面',
+ insertImage: '插入圖片',
+ insertLink: '插入連結',
+ italic: '斜體文字',
+ nextDocument: '下一個文件',
+ nextResult: '下一個結果',
+ openCDNUploader: '開啟 CDN 上傳工具',
+ openCommandCenter: '開啟命令中心並瀏覽',
+ openFindDialog: '開啟尋找對話框',
+ openResult: '開啟選取的結果',
+ paste: '從剪貼簿貼上',
+ prevDocument: '上一個文件',
+ prevResult: '上一個結果',
+ printPage: '列印頁面',
+ redo: '重做上一個動作',
+ reloadPage: '重新載入頁面',
+ saveDocument: '儲存文件',
+ savePage: '儲存目前頁面',
+ togglePreview: '切換預覽',
+ underline: '底線文字',
+ undo: '復原上一個動作',
+ },
+ documentPage: '文件頁面',
+ editorPage: '編輯器頁面',
+ general: '一般',
+ searchPage: '搜尋頁面',
+ subtitle: '以下是各個儀表板頁面的快捷鍵。',
+ title: '快捷鍵',
+ },
+
+ snippets: {
+ action: {
+ alreadyExists: '此快捷字串已存在',
+ content: '片段內容',
+ contentPlaceholder: '片段內容...\n使用 ${0}、${1} 表示 Tab 停留點',
+ required: '快捷字串與內容為必填',
+ restoreDefaults: '還原預設值',
+ restoreDefaultsConfirm: '你確定要還原預設的程式碼片段嗎?',
+ shortcut: '快捷字串',
+ shortcutHint: '以 {code} 之類的特殊字元作為開頭,方便快速找到它',
+ titleEdit: '編輯程式碼片段',
+ titleNew: '新增程式碼片段',
+ },
+ actions: '操作',
+ content: '內容',
+ count: '{count} 個程式碼片段',
+ createSnippet: '建立程式碼片段',
+ export: '匯出',
+ import: '匯入',
+ jsonFile: 'JSON 檔案',
+ noSnippets: '尚無程式碼片段',
+ notifications: {
+ bulkDeleted: '已刪除 {count} 個程式碼片段',
+ deleted: '已刪除程式碼片段',
+ },
+ restore: '還原',
+ shortcut: '快捷字串',
+ subtitle: '管理 Markdown 快捷字串,在編輯器中使用它們來加速撰寫。',
+ textDictionary: '文字字典',
+ title: '程式碼片段',
+ },
+
+ styles: {
+ appStyles: '應用程式樣式',
+ appStylesDesc: '套用至整個應用程式的全域 CSS(版面、側邊欄、導覽列等)',
+ customStyles: '自訂樣式',
+ documentStyles: '文件樣式',
+ documentStylesDesc: '套用至文件內容的 CSS(Markdown 預覽、排版、程式碼區塊等)',
+ enableInjection: '啟用自訂樣式注入',
+ enableInjectionDesc: '注入你自己的 CSS 來自訂應用程式與文件主題,變更會即時套用。',
+ subtitle: '繼承並自訂應用程式與文件的樣式。',
+ title: '樣式注入',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/teams.ts b/frontend/i18n/locales/zh-TW/teams.ts
new file mode 100644
index 00000000..67f72475
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/teams.ts
@@ -0,0 +1,39 @@
+export default {
+ title: '團隊',
+ eyebrown: '組織檢視',
+ subtitle: '團隊可將工作區、分類、文件與資源整合在同一個共用的組織架構中。',
+
+ actions: {
+ create: '建立團隊',
+ createDescription: '建立第一個團隊,開始整理工作區與文件',
+ delete: '刪除團隊',
+ addContent: '新增內容',
+ leave: '離開團隊',
+ noTeams: '尚無團隊',
+ },
+ teamsCount: '個團隊',
+ noDescription: '尚無描述',
+
+ overview: {
+ title: '團隊總覽',
+ team: '團隊',
+
+ directItems: '個直屬項目',
+ totalNodes: '個節點總計',
+
+ homepageNoContentTitle: '沒有團隊首頁',
+ homepageNoContent: '此團隊首頁尚無任何內容。',
+ },
+
+ insights: {
+ title: '洞察',
+ trending: '熱門',
+ stats: '統計',
+ },
+
+ members: {
+ title: '管理團隊成員',
+ permissionsTitle: '管理整個團隊的權限',
+ permissionsDescription: '在表格中新增使用者並變更其權限。',
+ },
+};
diff --git a/frontend/i18n/locales/zh-TW/time.ts b/frontend/i18n/locales/zh-TW/time.ts
new file mode 100644
index 00000000..5c14afc8
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/time.ts
@@ -0,0 +1,9 @@
+export default {
+ daysAgo: '{count} 天前',
+ hoursAgo: '{count} 小時前',
+ justNow: '剛剛',
+ minutesAgo: '{count} 分鐘前',
+ today: '今天',
+ weeksAgo: '{count} 週前',
+ yesterday: '昨天',
+};
diff --git a/frontend/i18n/locales/zh-TW/user.ts b/frontend/i18n/locales/zh-TW/user.ts
new file mode 100644
index 00000000..7b1bb290
--- /dev/null
+++ b/frontend/i18n/locales/zh-TW/user.ts
@@ -0,0 +1,7 @@
+export default {
+ accontDeletion: {
+ description: '你即將刪除你的帳號。',
+ title: '刪除帳號',
+ waitModal: '請等待 {seconds} 秒後才能刪除帳號。',
+ },
+};
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index 3e335707..f221627e 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -143,6 +143,11 @@ export default defineNuxtConfig({
{ code: 'uk', file: 'uk/index.ts', language: 'uk-UA' },
{ code: 'ko', file: 'ko/index.ts', language: 'ko-KR' },
{ code: 'it', file: 'it/index.ts', language: 'it-IT' },
+ // zh-CN is listed first on purpose: any inexact zh-* tag (zh, zh-Hans, zh-Hant)
+ // falls back to the first zh-* entry, and zh-Hans is what Chrome/Android actually send.
+ // Exact zh-TW / zh-HK matches are unaffected by the order.
+ { code: 'zh-CN', file: 'zh-CN/index.ts', language: 'zh-CN' },
+ { code: 'zh-TW', file: 'zh-TW/index.ts', language: 'zh-TW' },
],
strategy: 'prefix_except_default',
skipSettingLocaleOnNavigate: true,