From a762df830b9bfbafebd32b1c0a9cb1e643787e95 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 24 Nov 2026 19:02:38 +0400 Subject: [PATCH] refac --- .../components/chat/Placeholder/FolderKnowledge.svelte | 2 +- src/lib/components/common/FileContextSwitch.svelte | 8 ++------ src/lib/components/common/InterfaceSettings.svelte | 4 +--- src/lib/i18n/locales/en-US/translation.json | 4 ++-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/lib/components/chat/Placeholder/FolderKnowledge.svelte b/src/lib/components/chat/Placeholder/FolderKnowledge.svelte index 50d00e56c3..752e800ea4 100644 --- a/src/lib/components/chat/Placeholder/FolderKnowledge.svelte +++ b/src/lib/components/chat/Placeholder/FolderKnowledge.svelte @@ -395,7 +395,7 @@ > {#if item.context === 'full'} {$i18n.t('Full text')} {/if} diff --git a/src/lib/components/common/FileContextSwitch.svelte b/src/lib/components/common/FileContextSwitch.svelte index 3d17a4dc83..69611c808a 100644 --- a/src/lib/components/common/FileContextSwitch.svelte +++ b/src/lib/components/common/FileContextSwitch.svelte @@ -67,15 +67,11 @@ )} >
- {#if enableFullContent} - {$i18n.t('Using Entire Document')} - {:else} - {$i18n.t('Using Focused Retrieval')} - {/if} + {$i18n.t('Full text')} {#if !automaticFullContent} { item.context = e.detail ? 'full' : undefined; onChange(); diff --git a/src/lib/components/common/InterfaceSettings.svelte b/src/lib/components/common/InterfaceSettings.svelte index d1371662b1..3d5081bb70 100644 --- a/src/lib/components/common/InterfaceSettings.svelte +++ b/src/lib/components/common/InterfaceSettings.svelte @@ -2106,9 +2106,7 @@ type="button" > - {defaultUploadContext === 'full' - ? $i18n.t('Using Entire Document') - : $i18n.t('Using Focused Retrieval')} + {defaultUploadContext === 'full' ? $i18n.t('Full text') : $i18n.t('Relevant passages')}
diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index 174738ce5f..51e250675a 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -1730,6 +1730,7 @@ "Fri": "", "from {{provider}}": "", "Full access": "", + "Full text": "", "Full text is always enabled by your administrator.": "", "Function created successfully": "", "Function deleted successfully": "", @@ -2853,6 +2854,7 @@ "Release Notes": "", "Releases": "", "Relevance": "", + "Relevant passages": "", "Reload": "", "Reload latest": "", "Reload preview": "", @@ -4999,8 +5001,6 @@ "Uses the left working copy as your prompt.": "", "Uses the proposed revision as your prompt.": "", "Using default prompt suggestions": "Using default prompt suggestions", - "Using Entire Document": "", - "Using Focused Retrieval": "", "value": "", "Value": "", "Valves": "",