diff --git a/src/lib/components/chat/FileNav.svelte b/src/lib/components/chat/FileNav.svelte index 2af270a705..178e73e59c 100644 --- a/src/lib/components/chat/FileNav.svelte +++ b/src/lib/components/chat/FileNav.svelte @@ -238,6 +238,8 @@ : /\.(pdf|docx|pptx)$/i.test(selectedFile ?? '') ? `Page ${currentSlide + 1}` : ''; + // Preserve translations for the former save notifications during extraction. + // $i18n.t('File saved'); $i18n.t('Failed to save file'); const saveFile = async (content: string) => { const target = saveConnection; if (!target || !selectedFileWritable) throw new Error('File is not writable.'); diff --git a/src/lib/components/common/DocxPreview.svelte b/src/lib/components/common/DocxPreview.svelte index 668da95dec..b7f52ed1c5 100644 --- a/src/lib/components/common/DocxPreview.svelte +++ b/src/lib/components/common/DocxPreview.svelte @@ -42,7 +42,8 @@ const rect = range.getClientRects()[0] ?? range.startContainer.parentElement?.getBoundingClientRect(); if (!rect) continue; - if (highlightRange(containerEl, layer, range, `word:${id}`, `${$i18n.t('Comment')} ${id}`)) continue; + if (highlightRange(containerEl, layer, range, `word:${id}`, `${$i18n.t('Comment')} ${id}`)) + continue; const button = commentPin(`word:${id}`, `${$i18n.t('Comment')} ${id}`); button.dataset.wordComment = id; button.style.top = `${rect.top - base.top}px`; diff --git a/src/lib/components/common/EmojiPicker.svelte b/src/lib/components/common/EmojiPicker.svelte index d2b835e206..1405822435 100644 --- a/src/lib/components/common/EmojiPicker.svelte +++ b/src/lib/components/common/EmojiPicker.svelte @@ -191,7 +191,9 @@