diff --git a/src/routes/[recipeLang=recipeLang]/edit/[name]/+page.svelte b/src/routes/[recipeLang=recipeLang]/edit/[name]/+page.svelte index 3244f4ee..c49c32ed 100644 --- a/src/routes/[recipeLang=recipeLang]/edit/[name]/+page.svelte +++ b/src/routes/[recipeLang=recipeLang]/edit/[name]/+page.svelte @@ -156,6 +156,18 @@ }, 100); } + // Force full retranslation of entire recipe + function forceFullRetranslation() { + // Set changedFields to empty array to trigger full translation + changedFields = []; + showTranslationWorkflow = true; + + // Scroll to translation section + setTimeout(() => { + document.getElementById('translation-section')?.scrollIntoView({ behavior: 'smooth' }); + }, 100); + } + // Handle translation approval function handleTranslationApproved(event: CustomEvent) { translationData = event.detail.translatedRecipe; @@ -473,6 +485,9 @@ button.action_button{ {#if !showTranslationWorkflow}
{/if}