同步插件源代码并补齐标准项目文件

This commit is contained in:
XIGE
2026-11-26 15:04:45 +08:00
parent 373b563f86
commit 588e7a51f6
28 changed files with 8229 additions and 1 deletions

217
locales/en.json Normal file
View File

@@ -0,0 +1,217 @@
{
"common": {
"success": "success",
"failed": "failed",
"add": "add",
"get": "get",
"empty": "Cannot be empty",
"input": "Please input",
"enter": "(Press Enter to add)",
"loading": "Loading...",
"previousPage": "Previous",
"nextPage": "Next",
"pageOf": "Page {page} / {total}",
"noDataFound": "No data found",
"errorOccurred": "An error occurred"
},
"sync": {
"title": "Sync to Typecho",
"publish": "publish",
"publishing": "Publishing...",
"created": "published",
"updated": "updated",
"adding": "adding",
"addSuccess": "add success",
"advancedOptions": "Advanced Options",
"alias": "Alias",
"selectSite": "Select site:",
"switchedTo": "Switched to: {name}",
"noCategories": "No categories",
"noTags": "No tags",
"tagSearchPlaceholder": "Search tags (fuzzy match)",
"tagSearchNoMatch": "No matching tag. Try another keyword or click Add",
"tagSearchMore": "{count} more tags, keep typing to narrow down",
"tagSelectedCount": "{selected} / {total} selected",
"permalinkMissing": "Published, but no article link was returned (cid: {cid})"
},
"setting": {
"siteManagement": "Sites",
"addSite": "Add site",
"addSiteDesc": "Add a new Typecho site",
"add": "+ Add",
"noSite": "No site yet, click the button above to add one",
"unnamedSite": "Unnamed site",
"notConfigured": "Not configured",
"inUse": " (in use)",
"setDefault": "Set default",
"edit": "Edit",
"test": "Test",
"delete": "Delete",
"keepAtLeastOne": "At least one site must be kept",
"globalSettings": "Global settings",
"enableSignature": "Add Obsidian signature",
"enableSignatureDesc": "Insert an \"published from Obsidian\" block at the beginning of the article (requires theme CSS support)",
"openAfterPublish": "Open article after publishing",
"openAfterPublishDesc": "Open the published article in your browser right after a successful publish",
"addSiteTitle": "Add site",
"editSiteTitle": "Edit site",
"siteName": "Site name",
"siteNameDesc": "Used to distinguish multiple sites",
"siteNamePlaceholder": "e.g. My Blog",
"host": "Host",
"hostDesc": "Typecho API address, e.g. https://example.com/index.php/api",
"token": "Token",
"tokenDesc": "API Token",
"tokenPlaceholder": "Enter your API Token",
"importFolder": "Local import folder",
"importFolderDesc": "Downloaded posts are saved under \"this folder / category slug / post title.md\". Each site can use a different folder. Leave empty to use Typecho.",
"importFolderPreview": "Posts will be saved to: {folder}/category-slug/post-title.md",
"importFolderShort": "Import folder: {folder}",
"save": "Save",
"saveSuccess": "Saved",
"fillAllFields": "Please fill in all fields",
"cannotFetchUser": "Cannot fetch user info, please check Host and Token",
"connectFailed": "Connection failed, please check Host and Token",
"connectOk": "Connected! User: {name}",
"connectFailNoUser": "Connection failed: cannot fetch user info",
"connectFailDetail": "Connection failed: {message}",
"defaultSiteName": "Default site",
"managerSection": "Sidebar",
"managerPageSize": "Items per page",
"managerPageSizeDesc": "How many posts and comments to show per page in the sidebar (5-200). The sidebar reloads right after the change.",
"refreshOnStartup": "Refresh on startup",
"refreshOnStartupDesc": "Fetch posts, categories, tags and comments again after Obsidian starts, so you don't have to refresh manually.",
"autoRefreshInterval": "Auto-refresh interval (minutes)",
"autoRefreshIntervalDesc": "How often to refresh the sidebar posts, categories, tags and comments. 0 = disabled (manual refresh only). Refreshing keeps your current page, search term and filters."
},
"notice": {
"imageUploading": "📥 Uploading image: {fileName}",
"imageUploadFailed": "❌ Image upload failed",
"imageUploaded": "✅ Image uploaded and inserted",
"pasteUploadFailed": "❌ Failed to upload pasted image, please retry"
},
"error": {
"requestFailed": "Request failed, please check the network or API configuration",
"noFileSelected": "No file selected",
"titleOrContentCannotBeEmpty": "Title or content cannot be empty",
"readFileError": "Read file error, please check the file content",
"noTypechoUser": "No Typecho user, please input the user who uses the operation",
"failedToFetchArticles": "Failed to fetch articles",
"failedToFetchPostDetails": "Failed to fetch post details",
"noFiles": "No files found",
"noEditor": "❌ No editor found, please open a Markdown file first",
"inserted": "✅ Inserted: {title}",
"insertFailed": "❌ Insert failed: {message}",
"unknownError": "Unknown error"
},
"field": {
"title": "title",
"tag": "tag",
"file": "file",
"domainName": "domain name",
"category": "category",
"typechoUser": "Typecho user, the user who uses the operation",
"article": "article",
"allArticle": "all article",
"type": "Type",
"size": "Size",
"time": "Time"
},
"file": {
"uploadFile": "Upload File",
"deleteFile": "Delete File",
"copyUrl": "Copy URL to Clipboard",
"uploadingFile": "Uploading file...",
"uploadSuccess": "File uploaded successfully",
"uploadFailed": "File upload failed",
"uploadError": "Error occurred during file upload",
"deleteSuccess": "File deleted successfully",
"deleteFailed": "File deletion failed",
"deleteError": "Error occurred during file deletion",
"deleteConfirm": "Are you sure you want to delete the file {fileName}?",
"copySuccess": "URL for {fileName} has been copied to clipboard",
"copyFailed": "Copy failed: URL is empty",
"itemsPerPage": "Items per page",
"fileType": "Type",
"fileSize": "Size",
"enablePasteUpload": "Auto Upload Pasted Images",
"enablePasteUploadDesc": "Enable automatic upload and Markdown link insertion when pasting images with Ctrl+V",
"removeMetadata": "Remove Metadata",
"removeMetadataDesc": "Automatically remove YAML metadata (--- ... ---) from the top of the article during publication",
"insertToEditor": "Insert into editor",
"cancelUpload": "Cancel upload",
"uploadCancelled": "Upload cancelled",
"preparingUpload": "Preparing upload...",
"preparing": "Preparing...",
"uploadingProgress": "Uploading ({current}/{total})",
"uploadItemFailed": "⚠️ {fileName} failed, skipped",
"uploadAllDone": "✅ All uploads finished!",
"uploadProcessError": "❌ Error occurred during upload",
"uploadPanelTitle": "📎 File upload"
},
"manager": {
"title": "Site manager",
"open": "Open site manager panel",
"refresh": "Refresh",
"refreshed": "Refreshed",
"switchSite": "Switch site",
"noSites": "No site configured yet. Add one in settings first.",
"pendingComments": "{count} pending",
"pendingCommentsTitle": "{count} pending comments, click to review",
"posts": "Posts",
"newPost": "New post",
"draftName": "Untitled post",
"draftCreated": "Created note: {name}",
"loadMore": "Load more",
"totalItems": "{count} items",
"commentCount": "{count} comments",
"edit": "Edit",
"delete": "Delete",
"reply": "Reply",
"approve": "Approve",
"cancel": "Cancel",
"confirm": "Confirm",
"save": "Save",
"textRequired": "Content cannot be empty",
"nameRequired": "Name cannot be empty",
"actionDone": "Done",
"replyNoMail": "Replied, but no comment-notification plugin hook was found (reply saved)",
"saved": "Saved",
"noComments": "No comments",
"untitled": "Untitled post",
"imported": "Downloaded to: {name}",
"alreadyExists": "Already exists, opening: {name}",
"categories": "Categories",
"newCategory": "New category",
"editCategoryTitle": "Edit category",
"newCategoryTitle": "New category",
"tags": "Tags",
"newTag": "New tag",
"editTagTitle": "Edit tag",
"newTagTitle": "New tag",
"metaName": "Name",
"metaSlug": "Slug",
"metaSlugDesc": "English slug used in the URL, leave empty to keep the current value",
"metaDescription": "Description",
"metaParent": "Parent category",
"metaParentNone": "(none)",
"comments": "Comments",
"commentAll": "All",
"commentPending": "Pending",
"commentUnreplied": "Unreplied",
"replyTo": "Reply to {name}",
"replySubmit": "Send reply",
"replyPlaceholder": "Write your reply",
"editCommentTitle": "Edit comment",
"editCommentSubmit": "Save changes",
"deleteCommentTitle": "Delete comment",
"deleteCommentMessage": "Delete this comment and its replies? This cannot be undone.",
"searchPostsPlaceholder": "Search title / ID (fuzzy)",
"clearSearch": "Clear search",
"searchNoMatch": "No matching post",
"searchCount": "{count} found",
"copyId": "ID: {id} (click to copy)",
"idCopied": "ID copied: {id}",
"openPost": "Open post: {title}"
}
}

217
locales/zh.json Normal file
View File

@@ -0,0 +1,217 @@
{
"common": {
"success": "成功",
"failed": "失败",
"add": "添加",
"get": "获取",
"empty": "不能为空",
"input": "请输入",
"enter": "(按回车添加)",
"loading": "加载中...",
"previousPage": "上一页",
"nextPage": "下一页",
"pageOf": "第 {page} 页 / 共 {total} 页",
"noDataFound": "没有找到数据",
"errorOccurred": "发生错误"
},
"sync": {
"title": "同步到Typecho",
"publish": "发布",
"publishing": "发布中...",
"created": "已发布",
"updated": "已更新",
"adding": "添加中",
"addSuccess": "添加成功",
"advancedOptions": "高级选项",
"alias": "别名",
"selectSite": "选择网站:",
"switchedTo": "已切换到:{name}",
"noCategories": "暂无分类",
"noTags": "暂无标签",
"tagSearchPlaceholder": "搜索标签(支持模糊匹配,输几个字即可)",
"tagSearchNoMatch": "没有匹配的标签,换个关键词或点右上角「添加」新建",
"tagSearchMore": "还有 {count} 个标签,继续输入关键词可缩小范围",
"tagSelectedCount": "已选 {selected} / 共 {total}",
"permalinkMissing": "已发布,但没取到文章链接(cid: {cid}),可到站点后台打开"
},
"setting": {
"siteManagement": "网站管理",
"addSite": "添加网站",
"addSiteDesc": "添加新的 Typecho 站点",
"add": "+ 添加",
"noSite": "暂无网站,请点击上方按钮添加",
"unnamedSite": "未命名网站",
"notConfigured": "未配置地址",
"inUse": " (当前使用)",
"setDefault": "设为默认",
"edit": "编辑",
"test": "测试",
"delete": "删除",
"keepAtLeastOne": "至少需要保留一个网站",
"globalSettings": "全局设置",
"enableSignature": "自动添加 Obsidian 标识",
"enableSignatureDesc": "在文章开头自动插入「本文从 Obsidian 发布」标识(需 Typecho 主题支持 CSS 样式)",
"openAfterPublish": "发布后打开文章页",
"openAfterPublishDesc": "发布成功后自动在浏览器打开网站上的文章页面,方便立即查看文章",
"addSiteTitle": "添加网站",
"editSiteTitle": "编辑网站",
"siteName": "网站名称",
"siteNameDesc": "用于区分多个网站",
"siteNamePlaceholder": "例如:我的博客",
"host": "Host",
"hostDesc": "Typecho API 地址,如 https://example.com/index.php/api",
"token": "Token",
"tokenDesc": "API Token",
"tokenPlaceholder": "输入您的 API Token",
"importFolder": "本地导入目录",
"importFolderDesc": "下载的文章会存到「该目录 / 分类 slug / 文章标题.md」,不同网站可以指向不同目录。留空则用 Typecho。",
"importFolderPreview": "文章会存到:{folder}/分类slug/文章标题.md",
"importFolderShort": "导入目录:{folder}",
"save": "保存",
"saveSuccess": "保存成功",
"fillAllFields": "请填写完整信息",
"cannotFetchUser": "无法获取用户信息,请检查 Host 和 Token",
"connectFailed": "连接失败,请检查 Host 和 Token",
"connectOk": "连接成功!用户:{name}",
"connectFailNoUser": "连接失败:无法获取用户信息",
"connectFailDetail": "连接失败:{message}",
"defaultSiteName": "默认网站",
"managerSection": "侧边栏",
"managerPageSize": "列表每页条数",
"managerPageSizeDesc": "侧边栏文章、评论列表每页显示的条数(5-200),修改后侧边栏立即重新加载",
"refreshOnStartup": "启动时自动刷新",
"refreshOnStartupDesc": "打开 Obsidian 后自动重新拉取侧边栏的文章、分类、标签与评论数据,不用手动点刷新",
"autoRefreshInterval": "自动刷新间隔(分钟)",
"autoRefreshIntervalDesc": "每隔多少分钟自动刷新侧边栏的文章、分类、标签与评论数据。0 = 关闭自动刷新,只手动刷新;刷新不会重置当前分页、搜索词或筛选条件。"
},
"notice": {
"imageUploading": "📥 正在上传图片:{fileName}",
"imageUploadFailed": "❌ 图片上传失败",
"imageUploaded": "✅ 图片已上传并插入",
"pasteUploadFailed": "❌ 粘贴上传图片失败,请重试"
},
"error": {
"requestFailed": "请求失败,请检查网络或 API 配置",
"noFileSelected": "未选择文件",
"titleOrContentCannotBeEmpty": "标题或内容不能为空",
"readFileError": "读取文件错误,请检查文件内容",
"noTypechoUser": "未设置 Typecho 用户",
"failedToFetchArticles": "获取文章列表失败",
"failedToFetchPostDetails": "获取文章详情失败",
"noFiles": "没有找到文件",
"noEditor": "❌ 没有找到编辑器,请先打开一个 Markdown 文件",
"inserted": "✅ 已插入: {title}",
"insertFailed": "❌ 插入失败: {message}",
"unknownError": "未知错误"
},
"field": {
"title": "标题",
"tag": "标签",
"file": "文件",
"domainName": "域名",
"category": "分类",
"typechoUser": "Typecho 用户,操作时使用的用户",
"article": "文章",
"allArticle": "全部文章",
"type": "类型",
"size": "大小",
"time": "时间"
},
"file": {
"uploadFile": "上传文件",
"deleteFile": "删除文件",
"copyUrl": "复制URL到剪贴板",
"uploadingFile": "文件上传中...",
"uploadSuccess": "文件上传成功",
"uploadFailed": "文件上传失败",
"uploadError": "文件上传出错",
"deleteSuccess": "文件删除成功",
"deleteFailed": "文件删除失败",
"deleteError": "文件删除出错",
"deleteConfirm": "确定要删除文件 {fileName} 吗?",
"copySuccess": "已复制 {fileName} 的URL到剪贴板",
"copyFailed": "复制失败:URL为空",
"itemsPerPage": "每页显示",
"fileType": "类型",
"fileSize": "大小",
"enablePasteUpload": "粘贴图片自动上传",
"enablePasteUploadDesc": "启用后,Ctrl+V 粘贴图片将自动上传并插入 Markdown 链接",
"removeMetadata": "去除元数据",
"removeMetadataDesc": "发布时自动去除文章顶部的 YAML 元数据 (--- ... ---)",
"insertToEditor": "插入到编辑器",
"cancelUpload": "取消上传",
"uploadCancelled": "已取消上传",
"preparingUpload": "准备上传...",
"preparing": "准备中...",
"uploadingProgress": "正在上传 ({current}/{total})",
"uploadItemFailed": "⚠️ {fileName} 失败,跳过",
"uploadAllDone": "✅ 全部上传完成!",
"uploadProcessError": "❌ 上传过程异常",
"uploadPanelTitle": "📎 文件上传"
},
"manager": {
"title": "站点管理",
"open": "打开站点管理面板",
"refresh": "刷新",
"refreshed": "已刷新",
"switchSite": "切换网站",
"noSites": "还没有配置网站,请先在设置里添加",
"pendingComments": "待审核评论 {count}",
"pendingCommentsTitle": "待审核评论 {count} 条,点击查看",
"posts": "文章",
"newPost": "新增文章",
"draftName": "未命名文章",
"draftCreated": "已新建笔记:{name}",
"loadMore": "加载更多",
"totalItems": "共 {count} 项",
"commentCount": "{count} 条评论",
"edit": "编辑",
"delete": "删除",
"reply": "回复",
"approve": "通过",
"cancel": "取消",
"confirm": "确定",
"save": "保存",
"textRequired": "内容不能为空",
"nameRequired": "名称不能为空",
"actionDone": "操作成功",
"replyNoMail": "已回复,但没检测到评论通知插件(回复已保存)",
"saved": "已保存",
"noComments": "暂无评论",
"untitled": "未命名文章",
"imported": "已下载到:{name}",
"alreadyExists": "已存在,直接打开:{name}",
"categories": "分类",
"newCategory": "新增分类",
"editCategoryTitle": "编辑分类",
"newCategoryTitle": "新增分类",
"tags": "标签",
"newTag": "新增标签",
"editTagTitle": "编辑标签",
"newTagTitle": "新增标签",
"metaName": "名称",
"metaSlug": "别名",
"metaSlugDesc": "用于 URL 的英文别名,留空则保持原值",
"metaDescription": "描述",
"metaParent": "父分类",
"metaParentNone": "(无)",
"comments": "评论",
"commentAll": "全部",
"commentPending": "待审核",
"commentUnreplied": "待回复",
"replyTo": "回复 {name}",
"replySubmit": "发送回复",
"replyPlaceholder": "输入回复内容",
"editCommentTitle": "编辑评论",
"editCommentSubmit": "保存修改",
"deleteCommentTitle": "删除评论",
"deleteCommentMessage": "确定要删除这条评论及其回复吗?此操作不可恢复。",
"searchPostsPlaceholder": "搜索文章标题 / ID,模糊匹配",
"clearSearch": "清除搜索",
"searchNoMatch": "没有匹配的文章",
"searchCount": "找到 {count} 篇",
"copyId": "ID:{id}(点击复制)",
"idCopied": "已复制 ID:{id}",
"openPost": "打开文章:{title}"
}
}