refactor: 将 UI 文案改为中文并优化相关逻辑

- 在 background.ts 中将错误信息翻译为中文。
- 在 uiPopover.ts 中移除注释并更新弹出框标题。
- 在 Base64ConverterSection.tsx 中动态显示最大文件大小。
- 在 DecodeResultPaper.tsx 中简化标题文案注释。
- 在 GenerateButton.tsx 中动态显示生成进度和预计剩余时间。
- 在 base64Converter.ts 中将错误信息翻译为中文。
This commit is contained in:
雨霖铃
2026-06-19 00:53:56 +08:00
parent f0292acbb7
commit cd21d11fa1
6 changed files with 17 additions and 20 deletions
@@ -14,7 +14,7 @@ import { Label } from '@/components/ui/label';
import { formatBytes } from '@/utils/format';
interface DecodeResultPaperProps {
/** 标题文案,由调用方传入 i18n key 对应的值(如 decodedFileOutput / decodedImageOutput */
/** 标题文案 */
title: string;
/** 解码后推断的 MIME 类型 */
mimeType: string;