diff --git a/frontend/src/lib/components/translate/BulkReplaceModal.svelte b/frontend/src/lib/components/translate/BulkReplaceModal.svelte index 560ab119..eabf7a53 100644 --- a/frontend/src/lib/components/translate/BulkReplaceModal.svelte +++ b/frontend/src/lib/components/translate/BulkReplaceModal.svelte @@ -2,166 +2,63 @@ + + + - + + + + + + + + + + {#if show} @@ -197,7 +94,7 @@
- {#if uxState === 'configuring' || uxState === 'previewing' || uxState === 'preview_error'} + {#if model.uxState === 'configuring' || model.uxState === 'previewing' || model.uxState === 'preview_error'}
@@ -205,22 +102,22 @@ e.key === 'Enter' && handlePreview()} + onkeydown={(e) => e.key === 'Enter' && model.handlePreview(runId)} />
- {#if findPattern.trim() && !isRegex && !findPattern.includes('\\b')} + {#if model.findPattern.trim() && !model.isRegex && !model.findPattern.includes('\\b')}

{_t.translate?.bulk_replace?.word_boundary_hint || 'Tip: use \\bword\\b to match whole words only'}

@@ -233,10 +130,10 @@ e.key === 'Enter' && handlePreview()} + onkeydown={(e) => e.key === 'Enter' && model.handlePreview(runId)} />
@@ -245,7 +142,7 @@ + {_t.translate?.bulk_replace?.submit_to_dict} - {#if submitToDict} + {#if model.submitToDict}