mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
Add E2E tests for internationalization across multiple pages
- Implemented navigation.spec.ts to test language switching and translation of navigation elements. - Created sessions-page.spec.ts to verify translations on the sessions page, including headers, status badges, and date formatting. - Developed settings-page.spec.ts to ensure settings page content is translated and persists across sessions. - Added skills-page.spec.ts to validate translations for skill categories, action buttons, and empty states.
This commit is contained in:
180
ccw/frontend/src/locales/en/common.json
Normal file
180
ccw/frontend/src/locales/en/common.json
Normal file
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"aria": {
|
||||
"toggleNavigation": "Toggle navigation menu",
|
||||
"refreshWorkspace": "Refresh workspace",
|
||||
"switchToLightMode": "Switch to light mode",
|
||||
"switchToDarkMode": "Switch to dark mode",
|
||||
"userMenu": "User menu",
|
||||
"actions": "Actions"
|
||||
},
|
||||
"actions": {
|
||||
"save": "Save",
|
||||
"cancel": "Cancel",
|
||||
"delete": "Delete",
|
||||
"edit": "Edit",
|
||||
"create": "Create",
|
||||
"refresh": "Refresh",
|
||||
"loading": "Loading...",
|
||||
"retry": "Retry",
|
||||
"search": "Search...",
|
||||
"searchIssues": "Search issues...",
|
||||
"searchLoops": "Search loops...",
|
||||
"clear": "Clear",
|
||||
"close": "Close",
|
||||
"copy": "Copy",
|
||||
"view": "View",
|
||||
"viewAll": "View All",
|
||||
"update": "Update",
|
||||
"add": "Add",
|
||||
"new": "New",
|
||||
"remove": "Remove",
|
||||
"confirm": "Confirm",
|
||||
"back": "Back",
|
||||
"next": "Next",
|
||||
"previous": "Previous",
|
||||
"submit": "Submit",
|
||||
"reset": "Reset",
|
||||
"resetDesc": "Reset all user preferences to their default values. This cannot be undone.",
|
||||
"resetConfirm": "Reset all settings to defaults?",
|
||||
"resetToDefaults": "Reset to Defaults",
|
||||
"enable": "Enable",
|
||||
"disable": "Disable",
|
||||
"expand": "Expand All",
|
||||
"expandAll": "Expand All",
|
||||
"collapse": "Collapse All",
|
||||
"collapseAll": "Collapse All",
|
||||
"filter": "Filter",
|
||||
"filters": "Filters",
|
||||
"clearFilters": "Clear filters",
|
||||
"clearAll": "Clear all",
|
||||
"select": "Select",
|
||||
"selectAll": "Select All",
|
||||
"deselectAll": "Deselect All"
|
||||
},
|
||||
"status": {
|
||||
"active": "Active",
|
||||
"inactive": "Inactive",
|
||||
"pending": "Pending",
|
||||
"inProgress": "In Progress",
|
||||
"completed": "Completed",
|
||||
"failed": "Failed",
|
||||
"blocked": "Blocked",
|
||||
"cancelled": "Cancelled",
|
||||
"paused": "Paused",
|
||||
"archived": "Archived",
|
||||
"unknown": "Unknown",
|
||||
"draft": "Draft",
|
||||
"published": "Published",
|
||||
"creating": "Creating...",
|
||||
"deleting": "Deleting...",
|
||||
"label": "Status",
|
||||
"openIssues": "Open Issues"
|
||||
},
|
||||
"priority": {
|
||||
"low": "Low",
|
||||
"medium": "Medium",
|
||||
"high": "High",
|
||||
"critical": "Critical",
|
||||
"label": "Priority"
|
||||
},
|
||||
"time": {
|
||||
"seconds": "seconds",
|
||||
"minutes": "minutes",
|
||||
"hours": "hours",
|
||||
"days": "days",
|
||||
"weeks": "weeks",
|
||||
"months": "months",
|
||||
"years": "years",
|
||||
"ago": "ago",
|
||||
"justNow": "just now"
|
||||
},
|
||||
"buttons": {
|
||||
"new": "New",
|
||||
"create": "Create",
|
||||
"edit": "Edit",
|
||||
"delete": "Delete",
|
||||
"save": "Save",
|
||||
"cancel": "Cancel",
|
||||
"confirm": "Confirm",
|
||||
"retry": "Retry",
|
||||
"refresh": "Refresh",
|
||||
"close": "Close",
|
||||
"back": "Back",
|
||||
"next": "Next",
|
||||
"submit": "Submit"
|
||||
},
|
||||
"form": {
|
||||
"required": "Required",
|
||||
"optional": "optional",
|
||||
"placeholder": "Enter...",
|
||||
"search": "Search...",
|
||||
"select": "Select...",
|
||||
"noResults": "No results found",
|
||||
"loading": "Loading...",
|
||||
"sessionId": "Session ID",
|
||||
"title": "Title",
|
||||
"description": "Description",
|
||||
"sessionIdPlaceholder": "e.g., WFS-feature-auth",
|
||||
"titlePlaceholder": "e.g., Authentication System",
|
||||
"descriptionPlaceholder": "Brief description of the session"
|
||||
},
|
||||
"emptyState": {
|
||||
"noData": "No data found",
|
||||
"noResults": "No results found",
|
||||
"noItems": "No items",
|
||||
"createFirst": "Create your first item to get started",
|
||||
"searchEmpty": "Try adjusting your search or filters",
|
||||
"filterEmpty": "No items match your current filters"
|
||||
},
|
||||
"errors": {
|
||||
"generic": "An error occurred",
|
||||
"network": "Network error. Please check your connection.",
|
||||
"timeout": "Request timed out. Please try again.",
|
||||
"notFound": "Resource not found",
|
||||
"unauthorized": "Unauthorized access",
|
||||
"forbidden": "Access forbidden",
|
||||
"validation": "Validation error",
|
||||
"server": "Server error. Please try again later.",
|
||||
"loadingFailed": "Failed to load data",
|
||||
"loadFailed": "Failed to load data",
|
||||
"saveFailed": "Failed to save",
|
||||
"deleteFailed": "Failed to delete",
|
||||
"updateFailed": "Failed to update",
|
||||
"unknownError": "An unexpected error occurred"
|
||||
},
|
||||
"success": {
|
||||
"saved": "Saved successfully",
|
||||
"created": "Created successfully",
|
||||
"updated": "Updated successfully",
|
||||
"deleted": "Deleted successfully",
|
||||
"copied": "Copied to clipboard"
|
||||
},
|
||||
"messages": {
|
||||
"confirmDelete": "Are you sure you want to delete this item?",
|
||||
"confirmArchive": "Are you sure you want to archive this item?",
|
||||
"unsavedChanges": "You have unsaved changes. Are you sure you want to leave?",
|
||||
"noPermission": "You don't have permission to perform this action"
|
||||
},
|
||||
"stats": {
|
||||
"todayActivity": "Today's Activity",
|
||||
"totalCommands": "Total Commands",
|
||||
"totalSkills": "Total Skills",
|
||||
"categories": "Categories"
|
||||
},
|
||||
"dialog": {
|
||||
"createSession": "Create New Session",
|
||||
"createSessionDesc": "Create a new workflow session to track your development tasks.",
|
||||
"deleteSession": "Delete Session",
|
||||
"deleteConfirm": "Are you sure you want to delete this session? This action cannot be undone."
|
||||
},
|
||||
"help": {
|
||||
"title": "Help & Documentation",
|
||||
"description": "Learn how to use CCW Dashboard and get the most out of your workflows",
|
||||
"support": {
|
||||
"title": "Need more help?",
|
||||
"description": "Check the project documentation or reach out for support.",
|
||||
"documentation": "Documentation",
|
||||
"tutorials": "Tutorials"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user