Files
Claude-Code-Workflow/ccw/frontend/src/locales/en/commands.json
catlog22 5c158d9a64 feat(commands): add create button and file browser to commands page
- Add "New Command" button to CommandsManagerPage header
- Integrate CommandCreateDialog for creating/importing commands
- Add file browser button to source path input in CommandCreateDialog
  - Uses FloatingFileBrowser component for file selection
  - Supports browsing project directory for .md command files
- Add i18n keys for browse file button (en/zh)

Users can now create commands via:
1. Import existing .md file (with visual file picker)
2. AI-generate new command from description
2026-02-27 21:03:37 +08:00

104 lines
3.3 KiB
JSON

{
"title": "Commands Manager",
"description": "Enable/disable CCW commands",
"actions": {
"create": "New Command",
"edit": "Edit Command",
"delete": "Delete Command",
"refresh": "Refresh",
"expandAll": "Expand All",
"collapseAll": "Collapse All",
"copy": "Copy",
"showDisabled": "Show Disabled",
"hideDisabled": "Hide Disabled",
"cancel": "Cancel"
},
"source": {
"builtin": "Built-in",
"custom": "Custom"
},
"location": {
"project": "Project",
"user": "Global"
},
"filters": {
"allCategories": "All Categories",
"allSources": "All Sources",
"category": "Category",
"source": "Source",
"searchPlaceholder": "Search commands by name or description..."
},
"card": {
"name": "Name",
"description": "Description",
"usage": "Usage",
"examples": "Examples",
"aliases": "Aliases",
"triggers": "Triggers",
"noDescription": "No description"
},
"emptyState": {
"title": "No Commands Found",
"message": "Try adjusting your search or filters."
},
"table": {
"name": "Name",
"description": "Description",
"scope": "Scope",
"status": "Status"
},
"stats": {
"total": "Total Commands",
"enabled": "Enabled",
"disabled": "Disabled"
},
"group": {
"enabled": "enabled",
"clickToEnableAll": "Click to enable all",
"clickToDisableAll": "Click to disable all",
"noCommands": "No commands in this group",
"noEnabledCommands": "No enabled commands in this group"
},
"create": {
"title": "Create Command",
"location": "Location",
"locationProject": "Project Commands",
"locationProjectHint": ".claude/commands/",
"locationUser": "Global Commands",
"locationUserHint": "~/.claude/commands/",
"mode": "Creation Mode",
"modeImport": "Import File",
"modeImportHint": "Import command from existing file",
"modeGenerate": "AI Generate",
"modeGenerateHint": "Generate command using AI",
"sourcePath": "Source File Path",
"sourcePathPlaceholder": "Enter absolute path to command file",
"sourcePathHint": "File must be a valid command markdown file",
"browseFile": "Browse files",
"customName": "Custom Name",
"customNamePlaceholder": "Leave empty to use original name",
"customNameHint": "Optional, overrides default command name",
"commandName": "Command Name",
"commandNamePlaceholder": "Enter command name",
"commandNameHint": "Used as the command file name",
"descriptionLabel": "Command Description",
"descriptionPlaceholder": "Describe what this command should do...",
"descriptionHint": "AI will generate command content based on this description",
"generateInfo": "AI will use CLI tools to generate the command",
"generateTimeHint": "Generation may take some time",
"validate": "Validate",
"import": "Import",
"generate": "Generate",
"validating": "Validating...",
"validCommand": "Validation passed",
"invalidCommand": "Validation failed",
"creating": "Creating...",
"created": "Command \"{name}\" created successfully",
"createError": "Failed to create command",
"sourcePathRequired": "Please enter source file path",
"commandNameRequired": "Please enter command name",
"descriptionRequired": "Please enter command description",
"validateFirst": "Please validate the command file first"
}
}