separate text extraction and translation

This commit is contained in:
Garret Patti
2026-04-13 17:45:00 -04:00
parent 2fc9a34626
commit 1350a6f94b
3 changed files with 64 additions and 76 deletions

View File

@@ -414,7 +414,7 @@ export default function ImageLightbox({ url, name, onClose, onPrev, onNext, item
;(e.currentTarget as HTMLElement).style.color = 'var(--text-secondary)'
}}
>
{retranslating ? '⟳ Translating…' : '🌐 Re-translate'}
{retranslating ? '⟳ Translating…' : translatedText ? '🌐 Re-translate' : '🌐 Translate'}
</button>
</div>
</div>