## 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>
198 lines
5.7 KiB
JSON
198 lines
5.7 KiB
JSON
{
|
|
"buttons": {
|
|
"save": "Save",
|
|
"cancel": "Cancel",
|
|
"delete": "Delete",
|
|
"edit": "Edit",
|
|
"create": "Create",
|
|
"close": "Close",
|
|
"confirm": "Confirm",
|
|
"back": "Back",
|
|
"next": "Next",
|
|
"previous": "Previous",
|
|
"submit": "Submit",
|
|
"reset": "Reset",
|
|
"search": "Search",
|
|
"filter": "Filter",
|
|
"export": "Export",
|
|
"import": "Import",
|
|
"refresh": "Refresh",
|
|
"add": "Add",
|
|
"remove": "Remove",
|
|
"view": "View",
|
|
"download": "Download",
|
|
"upload": "Upload",
|
|
"retry": "Retry"
|
|
},
|
|
"labels": {
|
|
"loading": "Loading...",
|
|
"noData": "No data",
|
|
"required": "Required",
|
|
"optional": "Optional",
|
|
"all": "All",
|
|
"none": "None",
|
|
"yes": "Yes",
|
|
"no": "No",
|
|
"active": "Active",
|
|
"inactive": "Inactive",
|
|
"enabled": "Enabled",
|
|
"disabled": "Disabled",
|
|
"actions": "Actions",
|
|
"details": "Details",
|
|
"description": "Description",
|
|
"name": "Name",
|
|
"title": "Title",
|
|
"status": "Status",
|
|
"type": "Type",
|
|
"date": "Date",
|
|
"time": "Time",
|
|
"createdAt": "Created at",
|
|
"updatedAt": "Updated at",
|
|
"createdBy": "Created by",
|
|
"assignee": "Assignee",
|
|
"selectAssignee": "Select assignee...",
|
|
"searchUsers": "Search users...",
|
|
"noUsersFound": "No users found",
|
|
"typeToSearch": "Type to search users",
|
|
"task": "Task",
|
|
"admin": "Admin",
|
|
"live": "Live",
|
|
"offline": "Offline"
|
|
},
|
|
"messages": {
|
|
"success": "Operation successful",
|
|
"error": "Operation failed",
|
|
"confirmDelete": "Are you sure you want to delete? This action cannot be undone.",
|
|
"unsavedChanges": "You have unsaved changes. Are you sure you want to leave?",
|
|
"networkError": "Network error. Please try again later.",
|
|
"sessionExpired": "Session expired. Please log in again.",
|
|
"permissionDenied": "You do not have permission to perform this action.",
|
|
"notFound": "The requested resource was not found."
|
|
},
|
|
"validation": {
|
|
"required": "This field is required",
|
|
"email": "Please enter a valid email address",
|
|
"minLength": "Minimum {{min}} characters required",
|
|
"maxLength": "Maximum {{max}} characters allowed",
|
|
"invalidFormat": "Invalid format"
|
|
},
|
|
"nav": {
|
|
"dashboard": "Dashboard",
|
|
"spaces": "Spaces",
|
|
"projects": "Projects",
|
|
"tasks": "Tasks",
|
|
"workload": "Workload",
|
|
"health": "Project Health",
|
|
"audit": "Audit Log",
|
|
"settings": "Settings",
|
|
"logout": "Logout",
|
|
"toggleMenu": "Toggle Menu",
|
|
"menu": "Menu"
|
|
},
|
|
"language": {
|
|
"switch": "Switch language",
|
|
"zhTW": "繁體中文",
|
|
"en": "English"
|
|
},
|
|
"notifications": {
|
|
"title": "Notifications",
|
|
"markAllRead": "Mark all as read",
|
|
"noNotifications": "No notifications",
|
|
"empty": "No notifications",
|
|
"viewAll": "View all",
|
|
"refresh": "Refresh",
|
|
"time": {
|
|
"justNow": "Just now",
|
|
"minutesAgo": "{{count}}m ago",
|
|
"hoursAgo": "{{count}}h ago",
|
|
"daysAgo": "{{count}}d ago"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"page": "Page {{page}}",
|
|
"of": "of {{total}}",
|
|
"showing": "Showing {{from}}-{{to}} of {{total}}",
|
|
"itemsPerPage": "Items per page"
|
|
},
|
|
"errorBoundary": {
|
|
"retry": "Try Again",
|
|
"page": {
|
|
"title": "Something went wrong",
|
|
"message": "We apologize for the inconvenience. Please try refreshing the page or contact support if the problem persists."
|
|
},
|
|
"section": {
|
|
"title": "Unable to load this section",
|
|
"message": "This section encountered an error. Other parts of the page may still work.",
|
|
"messageWithName": "{{section}} encountered an error. Other parts of the page may still work."
|
|
},
|
|
"widget": {
|
|
"title": "Widget error",
|
|
"message": "Unable to display this widget.",
|
|
"errorSuffix": "error"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"dropzone": "Drop files here or click to upload",
|
|
"maxFileSize": "Maximum file size: {{size}}",
|
|
"uploading": "Uploading {{filename}} ({{current}}/{{total}})...",
|
|
"uploadFailed": "Upload failed"
|
|
},
|
|
"reports": {
|
|
"weeklyPreview": {
|
|
"title": "Weekly Report Preview",
|
|
"generateNow": "Generate Now",
|
|
"generating": "Generating...",
|
|
"loading": "Loading report preview...",
|
|
"noData": "No report data available",
|
|
"noProjects": "No projects found",
|
|
"projects": "Projects",
|
|
"retry": "Retry",
|
|
"completedShort": "completed",
|
|
"done": "done",
|
|
"inProgressLower": "in progress",
|
|
"overdueLower": "overdue",
|
|
"blockedLower": "blocked",
|
|
"nextWeekLower": "next week",
|
|
"unassigned": "Unassigned",
|
|
"due": "Due",
|
|
"since": "Since",
|
|
"noReasonProvided": "No reason provided",
|
|
"daysOverdue": "{{count}} day overdue",
|
|
"daysOverdue_other": "{{count}} days overdue",
|
|
"status": {
|
|
"completed": "Completed",
|
|
"inProgress": "In Progress",
|
|
"overdue": "Overdue",
|
|
"blocked": "Blocked",
|
|
"nextWeek": "Next Week",
|
|
"total": "Total"
|
|
},
|
|
"errors": {
|
|
"loadFailed": "Failed to load report preview",
|
|
"generateFailed": "Failed to generate report"
|
|
},
|
|
"messages": {
|
|
"generateSuccess": "Report generated and notification sent!"
|
|
}
|
|
},
|
|
"history": {
|
|
"title": "Report History",
|
|
"loading": "Loading history...",
|
|
"retry": "Retry",
|
|
"empty": "No report history found. Reports are generated every Friday at 16:00.",
|
|
"totalReports": "{{count}} report",
|
|
"totalReports_other": "{{count}} reports",
|
|
"completed": "Completed",
|
|
"inProgress": "In Progress",
|
|
"overdue": "Overdue",
|
|
"status": {
|
|
"sent": "sent",
|
|
"failed": "failed"
|
|
},
|
|
"errors": {
|
|
"loadFailed": "Failed to load report history"
|
|
}
|
|
}
|
|
}
|
|
}
|