Files
beabigegg 4b7e523f84 feat: implement debug logging cleanup and i18n coverage proposals
## cleanup-debug-logging
- Create environment-aware logger utility (logger.ts)
- Replace 60+ console.log/error statements across 28 files
- Production: only warn/error logs visible
- Development: all log levels with prefixes

Updated files:
- Contexts: NotificationContext, ProjectSyncContext, AuthContext
- Components: GanttChart, CalendarView, ErrorBoundary, and 11 others
- Pages: Tasks, Projects, Dashboard, and 7 others
- Services: api.ts

## complete-i18n-coverage
- WeeklyReportPreview: all strings translated, dynamic locale
- ReportHistory: all strings translated, dynamic locale
- AuditPage: detail modal and verification modal translated
- WorkloadPage: error message translated

Locale files updated:
- en/common.json, zh-TW/common.json: reports section
- en/audit.json, zh-TW/audit.json: modal sections
- en/workload.json, zh-TW/workload.json: errors section

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 21:37:29 +08:00

76 lines
2.2 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"title": "工作負載",
"subtitle": "檢視團隊成員的工作負載分佈",
"filters": {
"project": "專案",
"allProjects": "所有專案",
"dateRange": "日期範圍",
"thisWeek": "本週",
"thisMonth": "本月",
"custom": "自訂"
},
"metrics": {
"totalHours": "總工時",
"assignedTasks": "指派任務數",
"completedTasks": "已完成任務",
"overdueTasks": "逾期任務",
"utilization": "使用率"
},
"chart": {
"hoursPerDay": "每日工時",
"taskDistribution": "任務分佈",
"byProject": "依專案",
"byPriority": "依優先順序"
},
"team": {
"title": "團隊成員",
"member": "成員",
"allocated": "已分配",
"available": "可用",
"overloaded": "超載",
"underutilized": "低使用率"
},
"table": {
"member": "團隊成員",
"department": "部門",
"allocated": "已分配",
"capacity": "容量",
"load": "負載",
"status": "狀態"
},
"status": {
"balanced": "平衡",
"normal": "正常",
"warning": "警告",
"overloaded": "超載",
"unavailable": "無法使用",
"underutilized": "低使用率"
},
"empty": {
"title": "沒有工作負載資料",
"description": "目前沒有足夠的資料來顯示工作負載",
"noTasks": "本週沒有任何人被指派任務",
"hint": "當團隊成員被指派任務且截止日期在本週時,他們將會顯示在這裡。"
},
"options": {
"showAllUsers": "顯示所有用戶",
"showAllUsersHint": "(包括沒有任務的用戶)"
},
"calculation": {
"title": "工作負載計算方式",
"formula": "工作負載 = 本週任務預估工時 ÷ 個人週容量 × 100%",
"requirements": "任務需符合以下條件才會計入:",
"req1": "任務已指派給該成員",
"req2": "任務截止日期在選擇的週內",
"req3": "任務設有預估工時original_estimate",
"req4": "任務尚未完成",
"thresholds": "負載等級閾值:",
"normal": "正常:< 80%",
"warning": "警告80% - 99%",
"overloaded": "超載:≥ 100%"
},
"errors": {
"loadFailed": "載入工作負載資料失敗,請再試一次。"
}
}