Files
gh-christianlouis-docuelevate/frontend/translations/zh.json
T
copilot-swe-agent[bot] ff76855f29 feat(i18n): add internationalization framework with 10 languages
- Create i18n utility module (app/utils/i18n.py) with translation loading,
  browser language detection, AI fallback, and l10n helpers
- Add JSON translation files for EN, DE, FR, ES, IT, PT, NL, PL, ZH, RU
- Add preferred_language column to UserProfile model with migration
- Register _() translation function as Jinja2 global
- Update base.html with translated navigation, footer, cookie notice
- Add language selector dropdown in nav bar (desktop + mobile)
- Create API endpoints for language preference (POST/GET /api/i18n/)
- Support language detection: user profile > cookie > Accept-Language > default

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-09 23:28:02 +00:00

191 lines
6.2 KiB
JSON

{
"app.name": "DocuElevate",
"nav.dashboard": "仪表盘",
"nav.upload": "上传",
"nav.files": "文件",
"nav.search": "搜索",
"nav.pipelines": "处理流程",
"nav.integrations": "集成",
"nav.help": "帮助",
"nav.notifications": "通知",
"nav.pricing": "价格",
"nav.about": "关于",
"nav.admin": "管理",
"nav.settings": "设置",
"nav.users": "用户",
"nav.plan_designer": "方案设计",
"nav.credentials": "凭据",
"nav.file_manager": "文件管理器",
"nav.duplicates": "重复文件",
"nav.similarity": "相似度",
"nav.queue_monitor": "队列监控",
"nav.scheduled_jobs": "计划任务",
"nav.backup_restore": "备份与恢复",
"nav.status": "状态",
"nav.api_docs": "API 文档",
"nav.developer_docs": "开发者文档",
"nav.dark_mode": "深色模式",
"nav.light_mode": "浅色模式",
"nav.toggle_dark_mode": "切换深色模式",
"nav.toggle_nav": "切换导航菜单",
"nav.open_main_menu": "打开主菜单",
"nav.skip_to_content": "跳至主要内容",
"nav.main_navigation": "主导航",
"nav.admin_menu": "管理菜单",
"nav.admin_actions": "管理操作",
"nav.help_center": "帮助中心",
"auth.login": "登录",
"auth.logout": "退出",
"auth.signup": "注册",
"auth.my_account": "我的账户",
"auth.profile": "个人资料",
"footer.copyright": "DocuElevate {year}",
"footer.privacy": "隐私",
"footer.imprint": "法律声明",
"footer.terms": "条款",
"footer.cookies": "Cookie",
"footer.license": "许可",
"footer.attributions": "致谢",
"footer.version": "版本 {version}",
"footer.navigation": "页脚导航",
"cookie.notice": "DocuElevate 仅使用身份验证和服务运行所需的基本会话 Cookie。不使用任何跟踪或分析 Cookie。",
"cookie.policy_link": "Cookie 政策",
"cookie.privacy_link": "隐私声明",
"cookie.accept": "我知道了",
"cookie.notice_label": "Cookie 通知",
"common.save": "保存",
"common.cancel": "取消",
"common.delete": "删除",
"common.edit": "编辑",
"common.close": "关闭",
"common.confirm": "确认",
"common.back": "返回",
"common.next": "下一步",
"common.loading": "加载中...",
"common.error": "错误",
"common.success": "成功",
"common.warning": "警告",
"common.info": "信息",
"common.yes": "是",
"common.no": "否",
"common.search": "搜索",
"common.filter": "筛选",
"common.reset": "重置",
"common.refresh": "刷新",
"common.download": "下载",
"common.actions": "操作",
"common.details": "详情",
"common.name": "名称",
"common.description": "描述",
"common.type": "类型",
"common.status": "状态",
"common.date": "日期",
"common.size": "大小",
"common.created": "创建时间",
"common.updated": "更新时间",
"common.enabled": "已启用",
"common.disabled": "已禁用",
"common.active": "活跃",
"common.inactive": "不活跃",
"common.all": "全部",
"common.none": "无",
"common.select": "选择",
"common.upload": "上传",
"common.processing": "处理中",
"common.completed": "已完成",
"common.failed": "失败",
"common.pending": "待处理",
"common.retry": "重试",
"common.view": "查看",
"common.copy": "复制",
"common.copied": "已复制!",
"language.selector": "语言",
"language.en": "English",
"language.de": "Deutsch",
"language.fr": "Français",
"language.es": "Español",
"language.it": "Italiano",
"language.pt": "Português",
"language.nl": "Nederlands",
"language.pl": "Polski",
"language.zh": "中文",
"language.ru": "Русский",
"language.changed": "语言已更改为{language}",
"dashboard.title": "仪表盘",
"dashboard.total_files": "文件总数",
"dashboard.files_today": "今日文件",
"dashboard.files_this_month": "本月文件",
"dashboard.ocr_processed": "OCR 已处理",
"dashboard.active_integrations": "活跃集成",
"dashboard.storage_targets": "存储目标",
"dashboard.recent_activity": "最近活动",
"dashboard.quick_actions": "快捷操作",
"dashboard.welcome": "欢迎使用 DocuElevate",
"upload.title": "上传文档",
"upload.drag_drop": "将文件拖放到此处或点击浏览",
"upload.select_file": "选择文件",
"upload.uploading": "上传中...",
"upload.success": "文件上传成功",
"upload.error": "上传失败",
"upload.max_size": "最大文件大小:{size}",
"files.title": "文件",
"files.no_files": "未找到文件",
"files.filename": "文件名",
"files.document_title": "文档标题",
"files.uploaded": "已上传",
"files.file_size": "文件大小",
"files.ocr_status": "OCR 状态",
"files.tags": "标签",
"search.title": "搜索文档",
"search.placeholder": "按文件名、内容、标签搜索...",
"search.no_results": "未找到结果",
"search.results_count": "找到 {count} 个结果",
"settings.title": "设置",
"settings.save_success": "设置保存成功",
"settings.save_error": "设置保存失败",
"settings.reset_confirm": "确定要重置此设置吗?",
"integrations.title": "集成",
"integrations.connect": "连接",
"integrations.disconnect": "断开",
"integrations.connected": "已连接",
"integrations.not_connected": "未连接",
"integrations.configure": "配置",
"pipelines.title": "处理流程",
"pipelines.create": "创建流程",
"pipelines.edit": "编辑流程",
"help.title": "帮助中心",
"help.getting_started": "入门指南",
"help.faq": "常见问题",
"help.documentation": "文档",
"help.support": "支持",
"error.not_found": "页面未找到",
"error.not_found_message": "您要查找的页面不存在。",
"error.server_error": "服务器内部错误",
"error.server_error_message": "出了点问题,请稍后再试。",
"error.unauthorized": "未授权",
"error.unauthorized_message": "您需要登录才能访问此页面。",
"error.forbidden": "禁止访问",
"error.forbidden_message": "您没有权限访问此页面。",
"notifications.title": "通知",
"notifications.mark_read": "标记为已读",
"notifications.mark_all_read": "全部标记为已读",
"notifications.no_notifications": "没有通知",
"notifications.unread_count": "{count} 条未读通知"
}