diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-17 14:45:55 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-17 14:45:55 +0300 |
| commit | 094447b570c5c5a7c751e0e60279cfa08e945755 (patch) | |
| tree | 0d4b0a486e5bd48cf6e81f2faa2b9160be0ee0fc /internal/gui/queue.go | |
| parent | 81dabe63bbd5c90819dff5219c0d81880b3bdc8a (diff) | |
feat: add manual translation editing and bidirectional translation
- Replace translation label with editable entry field
- Move translation field next to Bulgarian input for better UX
- Add bidirectional translation support:
- Bulgarian → English: auto-translate when only Bulgarian provided
- English → Bulgarian: auto-translate when only English provided
- No translation when both fields are filled
- Show translations immediately upon generation
- Auto-save translations when edited
- Keep input fields populated during processing
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/gui/queue.go')
| -rw-r--r-- | internal/gui/queue.go | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/internal/gui/queue.go b/internal/gui/queue.go index df39908..f72b059 100644 --- a/internal/gui/queue.go +++ b/internal/gui/queue.go @@ -9,16 +9,17 @@ import ( // WordJob represents a single word processing job type WordJob struct { - ID int - Word string - Translation string - AudioFile string - ImageFile string // Changed from ImageFiles []string to single image - Status JobStatus - Error error - StartedAt time.Time - CompletedAt time.Time - CustomPrompt string // Custom prompt for image generation + ID int + Word string + Translation string + AudioFile string + ImageFile string // Changed from ImageFiles []string to single image + Status JobStatus + Error error + StartedAt time.Time + CompletedAt time.Time + CustomPrompt string // Custom prompt for image generation + NeedsTranslation bool // Whether translation is needed } // JobStatus represents the current state of a job |
