This commit is contained in:
Timothy Jaeryang Baek committed 2026-11-08 15:52:44 +09:00
1 parent a01dcbbe4c
commit 3797ce419b
12 files changed
+55 -7

No files matched your search

@@ -994,6 +994,9 @@
</AdminSettingField>
{/if}
<!-- Retired retrieval hint: keep its translation.
{$i18n.t('Use segmented retrieval for focused context.')}
-->
<AdminSettingRow
label={$i18n.t('settings.admin.documents.bypassEmbeddingAndRetrieval.label')}
description={RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL
+3
View File
@@ -132,6 +132,9 @@
export let canSideChat = false;
export let codeInterpreterEnabled = false;
// Retired layout controls: keep their translations.
// $i18n.t('Use full-width tabs')
// $i18n.t('Use side tabs')
export let fullWidth = false;
export let mainChatActive = false;
export let mainChatStyle = '';
@@ -137,6 +137,17 @@
? 'push'
: 'fetch';
$: syncLabel = { publish: 'Publish', pull: 'Pull', push: 'Push', fetch: 'Fetch' }[syncAction];
// Extraction hints for the dynamic feedback labels below.
// $i18n.t('Published')
// $i18n.t('Pulled')
// $i18n.t('Pushed')
// $i18n.t('Fetched')
// $i18n.t('Publishing…')
// $i18n.t('Pulling…')
// $i18n.t('Pushing…')
// $i18n.t('Fetching…')
// $i18n.t('Staging…')
// $i18n.t('Unstaging…')
$: syncMessage = syncFeedback
? syncComplete
? { publish: 'Published', pull: 'Pulled', push: 'Pushed', fetch: 'Fetched' }[syncFeedback]
@@ -1163,6 +1174,9 @@
</div>
{/if}
<!-- Retired warning: keep its translation.
{$i18n.t('Discard unsaved working-tree changes to this file? This cannot be undone.')}
-->
<ConfirmDialog
bind:show={confirmDiscard}
title={$i18n.t('Discard changes')}
@@ -527,7 +527,7 @@
>{$i18n.t('Cancel')}</button
>
<button class={primaryButtonClass} disabled={busy || !draft.name.trim()} on:click={save}
>{$i18n.t(busy ? 'Processing...' : 'Save')}</button
>{busy ? $i18n.t('Processing...') : $i18n.t('Save')}</button
>
</div>
</div>
+4
View File
@@ -3452,6 +3452,10 @@
</form>
{/key}
{/if}
<!-- Retired save prompts: keep their translations.
{$i18n.t('Save and send')}
{$i18n.t('Save your changes before continuing?')}
-->
<ConfirmDialog
show={dirtyChoice !== null}
confirmFirst
@@ -186,6 +186,9 @@
$: csvHeader = csvRows.length > 0 ? csvRows[0] : [];
$: csvBody = csvRows.length > 1 ? csvRows.slice(1) : [];
// Retired errors: keep their translations.
// $i18n.t('Invalid JSON')
// $i18n.t('JSON parse error: {{error}}')
// JSON parsing
let parsedJson: unknown = undefined;
@@ -2652,6 +2652,7 @@
{/if}
</svelte:fragment>
<!-- Retired menu label: keep its translation. {$i18n.t('Integrations')} -->
<svelte:fragment slot="integrations">
{#if showWebSearchButton || showImageGenerationButton || showCodeInterpreterButton || showToolsButton || showSkillsButton || (toggleFilters && toggleFilters.length > 0)}
<IntegrationsMenu
@@ -381,7 +381,7 @@
{:else if item.data.id === 'comments' || item.data.id === 'side'}
<button
type="button"
aria-label={$i18n.t(item.data.id === 'side' ? 'Side chat' : 'Comments')}
aria-label={item.data.id === 'side' ? $i18n.t('Side chat') : $i18n.t('Comments')}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-[0.8125rem] text-left transition-colors duration-75 hover:bg-gray-50/40 dark:hover:bg-gray-800/40
{commandIdx === selectedIdx ? 'app-interactive-active selected-command-option-button' : ''}"
on:mousedown={(e) => e.preventDefault()}
@@ -399,7 +399,7 @@
</span>
<span class="flex-1 min-w-0 flex items-center gap-2 overflow-hidden">
<span class="min-w-0 flex-1 truncate"
>{$i18n.t(item.data.id === 'side' ? 'Side chat' : 'Comments')}</span
>{item.data.id === 'side' ? $i18n.t('Side chat') : $i18n.t('Comments')}</span
>
<span class="app-muted max-w-24 shrink-0 truncate text-[0.625rem]">/{item.data.id}</span>
</span>
@@ -364,6 +364,7 @@
role="region"
aria-label={$i18n.t('Pyodide file browser')}
>
<!-- Retired upload hint: keep its translation. {$i18n.t('Drop files here')} -->
<FilesOverlay show={isDragOver} />
{#if overlay}
@@ -433,6 +434,9 @@
{:else if entries.length === 0 && !creatingFolder && !creatingFile}
<div class="flex flex-1 items-center justify-center p-6 text-center">
<div class="text-xs text-gray-400 dark:text-gray-500">
<!-- Retired empty state: keep its translation.
{$i18n.t('No files yet. Upload files or run Python code to create them.')}
-->
{$i18n.t('This folder is empty')}
</div>
</div>
@@ -182,16 +182,21 @@
{/each}
<div
class="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-gray-500 dark:text-gray-400"
title={`${data.os} · ${$i18n.t(data.environment === 'container' ? 'Container' : 'Host')}`}
title={`${data.os} · ${data.environment === 'container' ? $i18n.t('Container') : $i18n.t('Host')}`}
>
<!-- Retired labels: keep their translations.
{$i18n.t('CPU cores')}
{$i18n.t('{{count}} cores')}
-->
<span>{$i18n.t('{{count}} cores', { count: data.cpu.cores ?? '—' })}</span>
<span>{data.arch}</span>
<span title={`${$i18n.t('Service uptime')}: ${duration(data.service_uptime_seconds)}`}
>{$i18n.t(data.environment === 'container' ? 'Host uptime' : 'Uptime')}: {duration(
>{data.environment === 'container' ? $i18n.t('Host uptime') : $i18n.t('Uptime')}: {duration(
data.uptime_seconds
)}</span
>
</div>
<!-- Retired label: keep its translation. {$i18n.t('Details')} -->
<details class="group/network">
<summary
class="flex cursor-pointer list-none items-center gap-1.5 text-xs font-medium text-gray-700 dark:text-gray-300 [&::-webkit-details-marker]:hidden"
@@ -209,7 +214,7 @@
{$i18n.t('Network')}: {$i18n.t('Unavailable')}
</div>{:else}
{#each data.network as network}<div class="flex items-baseline gap-3 min-w-0">
<dt title={network.up === null ? '—' : $i18n.t(network.up ? 'Up' : 'Down')}>
<dt title={network.up === null ? '—' : network.up ? $i18n.t('Up') : $i18n.t('Down')}>
{network.name}
</dt>
<dd class="break-all text-gray-600 dark:text-gray-400">
@@ -234,7 +239,7 @@
class="w-full table-fixed text-xs tabular-nums text-gray-600 dark:text-gray-400"
>
<caption class="sr-only"
>{$i18n.t(data.process_scope === 'user' ? 'Your processes' : 'Top processes')} · {$i18n.t(
>{data.process_scope === 'user' ? $i18n.t('Your processes') : $i18n.t('Top processes')} · {$i18n.t(
'CPU: 100% = one core'
)}</caption
>
@@ -1513,6 +1513,10 @@
</p>
</div>
<!-- Retired terminal setting: keep its translations.
{$i18n.t('settings.personal.interface.showFilesOnTerminalSelect.label')}
{$i18n.t('settings.personal.interface.showFilesOnTerminalSelect.description')}
-->
{#if hasTerminal}
<div>
<div class={settingRowClass}>
+7
View File
@@ -46,6 +46,13 @@ export const CONTROL_LABELS = {
'chat.attach_notes': 'Attach Notes',
'chat.attach_knowledge': 'Attach Knowledge',
'chat.reference_chats': 'Reference Chats',
// Extraction hints: these keys are translated through CONTROL_LABELS[id].
// t('settings.admin.interface.visibility.selectedTools.label')
// t('settings.admin.interface.visibility.selectedSkills.label')
// t('settings.admin.interface.visibility.selectedFilters.label')
// t('settings.admin.interface.visibility.selectedWebSearch.label')
// t('settings.admin.interface.visibility.selectedImageGeneration.label')
// t('settings.admin.interface.visibility.selectedCodeInterpreter.label')
'chat.selected_tools': 'settings.admin.interface.visibility.selectedTools.label',
'chat.selected_skills': 'settings.admin.interface.visibility.selectedSkills.label',
'chat.selected_filters': 'settings.admin.interface.visibility.selectedFilters.label',