diff --git a/src/lib/components/chat/FileNav.svelte b/src/lib/components/chat/FileNav.svelte index 5ffb921f8b..8c59ad3015 100644 --- a/src/lib/components/chat/FileNav.svelte +++ b/src/lib/components/chat/FileNav.svelte @@ -193,7 +193,7 @@ const text = source?.text ?? selection.toString(); if (!text.trim()) return; if (new TextEncoder().encode(text).length > 16384) { - toast.error('Select less text (maximum 16 KiB).'); + toast.error($i18n.t('Select less text (maximum 16 KiB).')); return; } const page = @@ -2275,15 +2275,16 @@ role="status" class="flex flex-wrap items-center gap-2 px-2 py-1.5 text-xs text-gray-500 dark:text-gray-400" > - File updated on disk. Your local changes are preserved. {$i18n.t('Reload')} {$i18n.t('Save local changes')} {/if} diff --git a/src/lib/components/layout/SearchModal.svelte b/src/lib/components/layout/SearchModal.svelte index a8728fe741..a1b86153c3 100644 --- a/src/lib/components/layout/SearchModal.svelte +++ b/src/lib/components/layout/SearchModal.svelte @@ -70,6 +70,14 @@ shared: 'search for shared chats', archived: 'search for archived chats' }; + // Fixed labels from the search API; folder and channel names stay as typed. + $: contextLabels = new Map([ + ['Personal chat', $i18n.t('Personal chat')], + ['Shared chat', $i18n.t('Shared chat')], + ['Shared snapshot', $i18n.t('Shared snapshot')], + ['Personal note', $i18n.t('Personal note')], + ['Shared note', $i18n.t('Shared note')] + ]); $: selected = results[selectedIndex]; $: suggestions = suggesting && !panel ? getSuggestions(query, $tags, $folders) : []; $: scopeName = scopes.find((item) => item.id === scope)?.name ?? ''; @@ -544,7 +552,7 @@ class="flex h-6 shrink-0 items-center justify-between px-2 text-[0.6875rem] text-gray-500 dark:text-gray-400" > {$i18n.t(query.trim() ? 'Results' : 'Pinned & recent')}{query.trim() ? $i18n.t('Results') : $i18n.t('Pinned & recent')}{loading ? $i18n.t('Searching…') @@ -591,7 +599,7 @@ >{contextLabels.get(result.context) ?? result.context}{#if result.pinned}{/if} {#if query.trim() && result.snippet}
-

{$i18n.t(query ? 'No matches found' : 'Nothing here yet')}

+

{query ? $i18n.t('No matches found') : $i18n.t('Nothing here yet')}

{$i18n.t('Try another word or broaden your filters.')}

@@ -678,7 +686,9 @@

{selected.title}

- {selected.context} · {formatSearchDate(selected.updated_at)} + {contextLabels.get(selected.context) ?? selected.context} · {formatSearchDate( + selected.updated_at + )}
{#if selected.kind === 'note'} @@ -708,7 +718,7 @@ setPreview(!preview); panel = null; input.focus(); - }}>{$i18n.t(preview ? 'Hide preview' : 'Show preview')}{preview ? $i18n.t('Hide preview') : $i18n.t('Show preview')}
{/if} {selected ? selected.context : $i18n.t('Workspace search')}{selected + ? (contextLabels.get(selected.context) ?? selected.context) + : $i18n.t('Workspace search')}
(conflict = false)}>{$i18n.t('Keep editing')}
{/if}
{preview ? $i18n.t('Edit') : $i18n.t('Preview')}{/if} {#if loadedPath && !objectUrl && !loading && !loadError} download(selected)}>{$i18n.t('Download')}
{#if loadError} @@ -646,7 +646,9 @@ sandbox="" class="min-h-0 flex-1" > - {:else}

Binary file. Download to open.

{/if} + {:else}

+ {$i18n.t('Binary file. Download to open.')} +

{/if} {:else if preview}
f.path === path)) open(path); - else toast.error('File not found'); + else toast.error($i18n.t('File not found.')); } }} > @@ -802,10 +804,10 @@ type="button" class="px-2 text-xs" on:click={() => - ask('Delete selected files?', false, () => { + ask($i18n.t('Delete selected files?'), false, () => { selectedPaths.forEach(remove); selectedPaths = new Set(); - })}>Delete selected{$i18n.t('Delete selected')}{/if} {#if !currentPath}{@render createInput()}{/if}
    @@ -832,7 +834,9 @@ onToggleExpand={toggleFolder} onRename={(path, name) => rename(path, path.slice(0, path.lastIndexOf('/') + 1) + name)} onDelete={(path) => - ask('Delete this file or folder?', false, () => remove(path.replace(/\/$/, '')))} + ask($i18n.t('Delete this file or folder?'), false, () => + remove(path.replace(/\/$/, '')) + )} onMove={(paths, destination) => paths.forEach((path) => { path = path.replace(/\/$/, ''); @@ -846,7 +850,7 @@ {/each}
{#if !rows.length}

- Empty folders are saved when they contain files. + {$i18n.t('Empty folders are saved when they contain files.')}

{/if}
{/snippet} diff --git a/src/lib/components/workspace/Skills/SkillMenu.svelte b/src/lib/components/workspace/Skills/SkillMenu.svelte index 303cd1557a..973fe50289 100644 --- a/src/lib/components/workspace/Skills/SkillMenu.svelte +++ b/src/lib/components/workspace/Skills/SkillMenu.svelte @@ -133,7 +133,7 @@ on:click={() => { exportHandler('zip'); closeMenu(); - }}>Export ZIP{$i18n.t('Export ZIP')} {/if} diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index 1c1e167164..e4c6c4d2d0 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -386,6 +386,7 @@ "before": "", "Being lazy": "", "Binary file — text comparison is unavailable.": "", + "Binary file. Download to open.": "", "Bing": "", "Bold": "", "Boosting or penalizing specific tokens for constrained responses. Bias values will be clamped between -100 and 100 (inclusive). (Default: none)": "", @@ -795,7 +796,10 @@ "Delete Model": "", "Delete note?": "", "Delete prompt?": "", + "Delete selected": "", + "Delete selected files?": "", "Delete skill?": "", + "Delete this file or folder?": "", "delete this link": "", "Delete tool?": "", "Delete User": "", @@ -844,6 +848,7 @@ "Discard changes": "", "Discard comparison changes?": "", "Discard unsaved changes?": "", + "Discard unsaved skill changes?": "", "Disconnect OAuth": "", "Disconnected": "", "Discover a function": "", @@ -959,6 +964,7 @@ "Emoji graphics provided by": "", "Emojis": "", "Empty": "", + "Empty folders are saved when they contain files.": "", "Empty message": "", "Enable": "", "Enable All": "", @@ -1308,6 +1314,7 @@ "File renamed.": "", "File saved": "", "File size should not exceed {{maxSize}} MB.": "", + "File updated on disk. Your local changes are preserved.": "", "File uploaded successfully": "", "Filename": "", "Filename matches": "", @@ -1438,6 +1445,7 @@ "Hide from Sidebar": "", "Hide Hidden Files": "", "Hide Model": "", + "Hide preview": "", "Hide sub-agents": "Hide sub-agents", "Hide whitespace": "", "High": "", @@ -1478,6 +1486,7 @@ "Import": "", "Import action": "", "Import CSV": "", + "Import folder": "", "Import from URL": "", "Import JSON": "", "Import Models": "", @@ -1547,6 +1556,7 @@ "Keep both": "", "Keep both versions in the proposed revision, original first.": "", "Keep current webhook URL": "", + "Keep editing": "", "Keep in Sidebar": "", "Keep tools listed even while your shell is closed.": "", "Key": "", @@ -1883,6 +1893,7 @@ "No knowledge found": "", "No limit": "", "No matches": "", + "No matches found": "", "No matching scopes.": "", "No model data": "", "No model IDs": "", @@ -1946,6 +1957,7 @@ "Notes": "", "Notes Public Sharing": "", "Notes Sharing": "", + "Nothing here yet": "", "Nothing to compact": "", "Notifications": "", "November": "", @@ -2076,9 +2088,12 @@ "Permissions reset to defaults": "", "Persistent": "", "Personal": "", + "Personal chat": "", + "Personal note": "", "Pin": "", "Pin to Sidebar": "", "Pinned": "", + "Pinned & recent": "", "Pinned Messages": "", "Pipe": "", "Pipeline deleted successfully": "", @@ -2232,6 +2247,8 @@ "Release Notes": "", "Releases": "", "Relevance": "", + "Reload": "", + "Reload latest": "", "Reload preview": "", "Remember Dismissal": "", "Reminder": "", @@ -2296,6 +2313,7 @@ "Result": "", "RESULT": "", "Result preview": "", + "Results": "", "Retrieved {{count}} sources": "", "Retrieved {{count}} sources_one": "", "Retrieved {{count}} sources_other": "", @@ -2330,6 +2348,8 @@ "Save and send": "", "Save As Copy": "", "Save Chat": "", + "Save draft as copy": "", + "Save local changes": "", "Save the connection to keep the OAuth details. Keep the Connection ID unchanged.": "", "Save your changes before continuing?": "", "Save your recovery codes": "", @@ -2438,6 +2458,7 @@ "Select for Compare": "", "Select how to split message text for TTS requests": "", "Select Knowledge": "", + "Select less text (maximum 16 KiB).": "", "Select loaded files": "Select loaded files", "Select Method": "", "Select model": "", @@ -3629,7 +3650,10 @@ "Share to Open WebUI Community": "", "Share your background and interests": "", "Shared": "", + "Shared chat": "", "Shared Chats": "", + "Shared note": "", + "Shared snapshot": "", "Shared with you": "", "Sharing mode": "", "Sharing Permissions": "", @@ -3653,6 +3677,7 @@ "Show Model": "", "Show more": "", "Show or switch the current model.": "", + "Show preview": "", "Show Shortcuts": "", "Show the floating quick-action toolbar in chat.": "", "Show your support!": "", @@ -3850,6 +3875,7 @@ "This option controls how many tokens are preserved when refreshing the context. For example, if set to 2, the last 2 tokens of the conversation context will be retained. Preserving context can help maintain the continuity of a conversation, but it may reduce the ability to respond to new topics.": "", "This option sets the maximum number of tokens the model can generate in its response. Increasing this limit allows the model to provide longer answers, but it may also increase the likelihood of unhelpful or irrelevant content being generated.": "", "This response was generated by \"{{model}}\"": "", + "This skill has a newer version. Your draft is preserved.": "", "This template contains multiple context placeholders ([context] or {{CONTEXT}}). Context will be injected at each occurrence.": "", "This user will need to sign in again on every device. API keys remain active.": "", "This will delete": "",