diff --git a/apps/main/src/lib/download.ts b/apps/main/src/lib/download.ts index a30d6aeff..d31f9d3a0 100644 --- a/apps/main/src/lib/download.ts +++ b/apps/main/src/lib/download.ts @@ -7,7 +7,7 @@ const streamPipeline = promisify(pipeline) export async function downloadFile(url: string, dest: string) { const res = await fetch(url) - // 检查响应是否成功 + // Check whether it responds successfully. if (!res.ok) { throw new Error(`Failed to fetch ${url}: ${res.statusText}`) } diff --git a/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css b/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css index 6fd7de9df..6918e59d4 100644 --- a/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css +++ b/apps/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css @@ -52,7 +52,7 @@ @apply mr-5; } - /* 撑开没有内容的行 */ + /* Expand the row without content */ &::after { content: " "; } diff --git a/apps/renderer/src/components/ux/pull-to-refresh/index.tsx b/apps/renderer/src/components/ux/pull-to-refresh/index.tsx index 5325b58ab..d0adff9e3 100644 --- a/apps/renderer/src/components/ux/pull-to-refresh/index.tsx +++ b/apps/renderer/src/components/ux/pull-to-refresh/index.tsx @@ -103,12 +103,12 @@ export function PullToRefresh({ isRefreshing, ]) - // 计算实际的下拉距离 + // Calculate the actual pull-down distance const actualPullDistance = isRefreshing - ? THRESHOLD // 刷新时保持在阈值位置 + ? THRESHOLD // Stay at threshold position when refreshing : pullDistance - // 计算下拉进度 (0-1) + // Calculate the pull-down progress (0-1) const pullProgress = Math.max(Math.min(pullDistance / THRESHOLD - 0.2, 1), 0) const SIZE = 24 const STROKE_WIDTH = 2 diff --git a/plugins/eslint/eslint-check-i18n-json.js b/plugins/eslint/eslint-check-i18n-json.js index 02c639f7a..64877a94f 100644 --- a/plugins/eslint/eslint-check-i18n-json.js +++ b/plugins/eslint/eslint-check-i18n-json.js @@ -72,7 +72,7 @@ export default { category: "Possible Errors", recommended: true, }, - fixable: "code", // 将 fixable 设置为 "code" + fixable: "code", // Set fixable to "code" }, create(context) { return {