The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ui): translate the artifact panel and use the app's UI primitives
Sanild579824e2eca
diff --git a/app/src/features/conversations/aui/ArtifactPreviewPanel.markdown.test.tsx b/app/src/features/conversations/aui/ArtifactPreviewPanel.markdown.test.tsxindex fde1934622..3578603894 100644--- a/app/src/features/conversations/aui/ArtifactPreviewPanel.markdown.test.tsx+++ b/app/src/features/conversations/aui/ArtifactPreviewPanel.markdown.test.tsx@@ -81,7 +81,7 @@ describe('ArtifactPreviewPanel — preview rendering by kind (#1535)', () => {const h1 = await screen.findByRole('heading', { level: 1 });expect(h1.textContent).toBe('Quarterly report');- fireEvent.click(screen.getByRole('button', { name: /Code/ }));+ fireEvent.mouseDown(screen.getByRole('tab', { name: /chat.artifact.view.code/ }));// The artifact is the file, not this text: it cannot be edited here.expect((screen.getByRole('textbox') as HTMLTextAreaElement).readOnly).toBe(true);});@@ -97,7 +97,7 @@ describe('ArtifactPreviewPanel — preview rendering by kind (#1535)', () => {it('keeps rendering HTML kind in the sandboxed iframe (unchanged)', async () => {renderPanel('html', '<h1>Hi</h1><p>body</p>');- const frame = await screen.findByTitle('HTML preview');+ const frame = await screen.findByTitle('chat.artifact.htmlPreview');expect(frame.tagName).toBe('IFRAME');expect(frame.getAttribute('sandbox')).toBe('allow-scripts');expect(frame.getAttribute('srcdoc')).toContain('<h1>Hi</h1>');@@ -107,7 +107,7 @@ describe('ArtifactPreviewPanel — preview rendering by kind (#1535)', () => {renderPanel('markdown', '', 'artifact unreadable');expect(await screen.findByText('artifact unreadable')).toBeTruthy();- fireEvent.click(screen.getByRole('button', { name: /Code/ }));+ fireEvent.mouseDown(screen.getByRole('tab', { name: /chat.artifact.view.code/ }));// Typing here would save the empty text over the artifact.expect((screen.getByRole('textbox') as HTMLTextAreaElement).readOnly).toBe(true);});diff --git a/app/src/features/conversations/aui/ArtifactPreviewPanel.refresh.test.tsx b/app/src/features/conversations/aui/ArtifactPreviewPanel.refresh.test.tsxindex 7fad95f52b..ee77010abb 100644--- a/app/src/features/conversations/aui/ArtifactPreviewPanel.refresh.test.tsx+++ b/app/src/features/conversations/aui/ArtifactPreviewPanel.refresh.test.tsx@@ -68,7 +68,7 @@ describe('ArtifactPreviewPanel — versions saved elsewhere', () => {rpc.mockResolvedValueOnce(body('# first', 1));const store = setup();await screen.findByRole('heading', { level: 1 });- fireEvent.click(screen.getByRole('button', { name: /Code/ }));+ fireEvent.mouseDown(screen.getByRole('tab', { name: /chat.artifact.view.code/ }));fireEvent.change(screen.getByRole('textbox'), { target: { value: '# my edit' } });rpc.mockResolvedValueOnce(body('# revised by the agent', 2));@@ -89,7 +89,27 @@ describe('ArtifactPreviewPanel — download', () => {setup();await screen.findByRole('heading', { level: 1 });// Not the desktop app: the service refuses before any dialog.- fireEvent.click(screen.getByTitle(/Download/i));+ fireEvent.click(screen.getByRole('button', { name: 'chat.artifact.download' }));expect(await screen.findByText('chat.files.error.not_desktop')).toBeTruthy();});});++describe('ArtifactPreviewPanel — resize handle', () => {+ beforeEach(() => rpc.mockReset());++ it('resizes with the arrow keys, within the bounds', async () => {+ rpc.mockResolvedValue(body('# first', 1));+ setup();+ const handle = screen.getByRole('separator', { name: 'chat.artifact.panel.resize' });+ const width = () => Number(handle.getAttribute('aria-valuenow'));+ const start = width();++ fireEvent.keyDown(handle, { key: 'ArrowLeft' });+ expect(width()).toBe(start + 24);+ fireEvent.keyDown(handle, { key: 'ArrowRight' });+ fireEvent.keyDown(handle, { key: 'ArrowRight' });+ expect(width()).toBe(start - 24);+ for (let i = 0; i < 100; i++) fireEvent.keyDown(handle, { key: 'ArrowLeft' });+ expect(width()).toBe(Number(handle.getAttribute('aria-valuemax')));+ });+});diff --git a/app/src/features/conversations/aui/ArtifactPreviewPanel.share.test.tsx b/app/src/features/conversations/aui/ArtifactPreviewPanel.share.test.tsxindex a17cc1e2f9..91ecf5ff51 100644--- a/app/src/features/conversations/aui/ArtifactPreviewPanel.share.test.tsx+++ b/app/src/features/conversations/aui/ArtifactPreviewPanel.share.test.tsx@@ -103,11 +103,11 @@ describe('ShareStatus copy button', () => {render(<Harness />);await act(async () => fireEvent.click(screen.getByText('share')));// The share copied the link already; the button still offers to copy.- expect(screen.getByTestId('artifact-share-copy').textContent).toBe('Copy');+ expect(screen.getByTestId('artifact-share-copy').textContent).toBe('chat.artifact.share.copy');writeText.mockClear();await act(async () => fireEvent.click(screen.getByTestId('artifact-share-copy')));expect(writeText).toHaveBeenCalledWith(url);- expect(screen.getByTestId('artifact-share-copy').textContent).toContain('Copied');+ expect(screen.getByTestId('artifact-share-copy').textContent).toContain('chat.artifact.copied');});});diff --git a/app/src/features/conversations/aui/ArtifactPreviewPanel.tsx b/app/src/features/conversations/aui/ArtifactPreviewPanel.tsxindex 3ca8fdffb2..719324af04 100644--- a/app/src/features/conversations/aui/ArtifactPreviewPanel.tsx+++ b/app/src/features/conversations/aui/ArtifactPreviewPanel.tsx@@ -5,10 +5,12 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';import Markdown from 'react-markdown';import remarkGfm from 'remark-gfm';+import ChipTabs from '../../../components/layout/ChipTabs';import {hasWindowDragBar,WINDOW_DRAG_BAR_HEIGHT,} from '../../../components/layout/shell/WindowDragBar';+import { Button } from '../../../components/ui';import { useT } from '../../../lib/i18n/I18nContext';import { saveArtifactViaDialog } from '../../../services/artifactDownloadService';import { callCoreRpc } from '../../../services/coreRpcClient';@@ -41,6 +43,8 @@ interface ArtifactBodyResponse {const MIN_WIDTH = 360;const MAX_WIDTH = 1200;const DEFAULT_WIDTH = 520;+/** Width change per arrow key on the resize handle. */+const RESIZE_STEP = 24;// ─── Main panel ─────────────────────────────────────────────────@@ -105,6 +109,14 @@ export function ArtifactPreviewPanel(_props: ArtifactPreviewPanelProps) {};}, []);+ // The panel is on the right, so moving the handle left widens it.+ const handleResizeKey = useCallback((e: React.KeyboardEvent) => {+ const delta = e.key === 'ArrowLeft' ? RESIZE_STEP : e.key === 'ArrowRight' ? -RESIZE_STEP : 0;+ if (!delta) return;+ e.preventDefault();+ setPanelWidth(width => Math.min(MAX_WIDTH, Math.max(MIN_WIDTH, width + delta)));+ }, []);+// Tabs = the artifacts currently open in the panel, in open order.const visibleTabs = useMemo(() =>@@ -133,43 +145,64 @@ export function ArtifactPreviewPanel(_props: ArtifactPreviewPanelProps) {// band, which would otherwise swallow clicks on the tabs and the X.paddingTop: hasWindowDragBar() ? WINDOW_DRAG_BAR_HEIGHT : undefined,}}>- {/* Drag handle */}+ {/* Resize handle: drag it, or focus it and use the arrow keys. */}<div- className="absolute left-0 top-0 bottom-0 w-1.5 cursor-ew-resize hover:bg-primary/20 active:bg-primary/30 z-20"+ role="separator"+ aria-orientation="vertical"+ aria-label={t('chat.artifact.panel.resize')}+ aria-valuemin={MIN_WIDTH}+ aria-valuemax={MAX_WIDTH}+ aria-valuenow={panelWidth}+ tabIndex={0}onMouseDown={handleMouseDown}+ onKeyDown={handleResizeKey}+ className="absolute left-0 top-0 bottom-0 w-1.5 cursor-ew-resize outline-none hover:bg-primary/20 focus-visible:bg-primary/30 active:bg-primary/30 z-20"/>{/* Header */}<div className="flex items-center justify-between border-b shrink-0"><div className="flex items-center gap-1 min-w-0 flex-1 overflow-x-auto">{showTabs ? (- visibleTabs.map(a => (- <div- key={a.artifactId}- className={`group flex items-center gap-1 border-b-2 px-2 py-2.5 transition-colors shrink-0 min-w-0 ${- a.artifactId === activeId ? 'border-primary' : 'border-transparent'- }`}>- <button- onClick={() => dispatch(activateArtifactTab(a.artifactId))}- className={`flex min-w-0 items-center gap-1.5 text-xs font-medium transition-colors ${- a.artifactId === activeId- ? 'text-foreground'- : 'text-muted-foreground hover:text-foreground'- }`}>- <FileText className="h-3.5 w-3.5 shrink-0" />- <span className="truncate max-w-[110px]">{a.title}</span>- </button>- <button- onClick={e => {- e.stopPropagation();- handleCloseTab(a.artifactId);- }}- className="ml-0.5 rounded p-0.5 text-muted-foreground/50 hover:bg-accent hover:text-foreground shrink-0"- title="Close artifact">- <X className="h-3 w-3" />- </button>- </div>- ))+ <div+ role="tablist"+ aria-label={t('chat.artifact.tabs.aria')}+ className="flex items-center gap-1 min-w-0">+ {visibleTabs.map(a => {+ const active = a.artifactId === activeId;+ return (+ <div+ key={a.artifactId}+ className={`group flex items-center gap-1 border-b-2 px-2 py-2.5 transition-colors shrink-0 min-w-0 ${+ active ? 'border-primary' : 'border-transparent'+ }`}>+ <Button+ role="tab"+ aria-selected={active}+ variant="tertiary"+ size="xs"+ onClick={() => dispatch(activateArtifactTab(a.artifactId))}+ leadingIcon={<FileText className="h-3.5 w-3.5 shrink-0" />}+ className={`h-auto min-w-0 px-0 hover:bg-transparent ${+ active ? 'text-foreground' : 'text-muted-foreground hover:text-foreground'+ }`}>+ <span className="truncate max-w-[110px]">{a.title}</span>+ </Button>+ <Button+ iconOnly+ variant="tertiary"+ size="xs"+ aria-label={t('chat.artifact.tab.close').replace('{title}', a.title)}+ onClick={e => {+ e.stopPropagation();+ handleCloseTab(a.artifactId);+ }}+ className="ml-0.5 text-muted-foreground/50 hover:text-foreground shrink-0">+ <X className="h-3 w-3" />+ </Button>+ </div>+ );+ })}+ </div>) : (<div className="flex items-center gap-2 px-4 py-2.5 min-w-0"><FileText className="h-4 w-4 shrink-0 text-muted-foreground" />@@ -179,12 +212,15 @@ export function ArtifactPreviewPanel(_props: ArtifactPreviewPanelProps) {</div>)}</div>- <button+ <Button+ iconOnly+ variant="tertiary"+ size="sm"+ aria-label={t('chat.artifact.panel.close')}onClick={() => dispatch(closeArtifactPanel())}- title="Close panel"- className="mr-2 shrink-0 inline-flex items-center justify-center rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground">+ className="mr-2 shrink-0 text-muted-foreground hover:text-foreground"><X className="h-4 w-4" />- </button>+ </Button></div>{/* Content */}@@ -329,8 +365,8 @@ function FileViewer({<div className="flex items-center justify-between border-b px-3 py-1.5 shrink-0 bg-muted/10"><div className="flex items-center gap-2"><FileBox className="h-4 w-4 text-muted-foreground" />- <span className="text-xs font-medium text-muted-foreground capitalize">- {artifact.kind}+ <span className="text-xs font-medium text-muted-foreground">+ {t(`chat.artifact.kind.${artifact.kind}`, artifact.kind)}</span><span className="text-[11px] text-muted-foreground/60 border-l pl-2">v{version}</span></div>@@ -344,19 +380,17 @@ function FileViewer({<div><p className="text-sm font-medium break-all">{fileName}</p><p className="text-xs text-muted-foreground mt-1 break-all">{filePath}</p>- <p className="text-xs text-muted-foreground mt-2">- Binary {artifact.kind} — preview not available- </p>+ <p className="text-xs text-muted-foreground mt-2">{t('chat.artifact.noPreview')}</p>{error && <p className="text-xs text-destructive mt-2">{error}</p>}{downloadError && <p className="text-xs text-destructive mt-2">{downloadError}</p>}</div>{filePath && (- <button- onClick={() => void saveArtifactAs(artifact, t).then(setDownloadError)}- className="inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-xs font-medium text-primary-foreground hover:bg-primary/90">- <Download className="h-3.5 w-3.5" />- Download- </button>+ <Button+ size="sm"+ leadingIcon={<Download className="h-3.5 w-3.5" />}+ onClick={() => void saveArtifactAs(artifact, t).then(setDownloadError)}>+ {t('chat.artifact.download')}+ </Button>)}</div></div>@@ -480,12 +514,8 @@ export function useArtifactAutosave(}function AutosaveStatus({ status }: { status: AutosaveState }) {- const label = {- saved: 'Saved',- pending: 'Unsaved changes',- saving: 'Saving…',- error: 'Not saved',- }[status];+ const { t } = useT();+ const label = t(`chat.artifact.autosave.${status}`);return (<spanclassName={`text-[11px] border-l pl-2 ${@@ -568,18 +598,23 @@ export function useArtifactShare(artifactId: string, beforeShare?: () => Promise}export function ShareButton({ state, onShare }: { state: ShareState; onShare: () => void }) {+ const { t } = useT();return (- <button+ <Button+ iconOnly+ variant="tertiary"+ size="xs"onClick={onShare}disabled={state.status === 'sharing'}- title="Share: upload and copy a link"- className="inline-flex items-center justify-center rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground disabled:opacity-50">+ aria-label={t('chat.artifact.share')}+ title={t('chat.artifact.share')}+ className="text-muted-foreground hover:text-foreground">{state.status === 'sharing' ? (<div className="h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary border-t-transparent" />) : (<Share2 className="h-3.5 w-3.5" />)}- </button>+ </Button>);}@@ -593,6 +628,7 @@ export function ShareStatus({state: ShareState;onCopy: () => Promise<boolean>;}) {+ const { t } = useT();// The button's own feedback: only for a click on it, not for the copy the// share already made (the status text reports that one).const [justCopied, setJustCopied] = useState(false);@@ -616,37 +652,45 @@ export function ShareStatus({<divdata-testid="artifact-share-status"className="border-b bg-destructive/10 px-3 py-1.5 text-[11px] text-destructive">- Not shared: {state.message}+ {t('chat.artifact.share.failed').replace('{reason}', state.message)}</div>);}if (state.status !== 'shared') return null;const expires = state.expiresAt- ? ` · expires ${new Date(state.expiresAt).toLocaleDateString()}`+ ? ` · ${t('chat.artifact.share.expires').replace(+ '{date}',+ new Date(state.expiresAt).toLocaleDateString()+ )}`: '';return (<divdata-testid="artifact-share-status"className="flex items-center gap-2 border-b bg-muted/20 px-3 py-1.5 text-[11px] text-muted-foreground"><span className="shrink-0">- {state.copied ? 'Link copied' : 'Link ready'} · v{state.version}+ {state.copied ? t('chat.artifact.share.copied') : t('chat.artifact.share.ready')} · v+ {state.version}{expires}</span><span className="min-w-0 flex-1 truncate text-foreground/70" title={state.url}>{state.url}</span>- <button+ <Button+ variant="secondary"+ size="xs"onClick={() => void handleCopy()}- title="Copy the full link"+ title={t('chat.artifact.share.copyLink')}data-testid="artifact-share-copy"- className="inline-flex shrink-0 items-center gap-1 rounded border px-1.5 py-0.5 text-[11px] text-foreground hover:bg-accent">- {justCopied ? (- <Check className="h-3 w-3 text-green-500" />- ) : (- <Clipboard className="h-3 w-3" />- )}- {justCopied ? 'Copied' : 'Copy'}- </button>+ leadingIcon={+ justCopied ? (+ <Check className="h-3 w-3 text-green-500" />+ ) : (+ <Clipboard className="h-3 w-3" />+ )+ }+ className="shrink-0 text-[11px]">+ {justCopied ? t('chat.artifact.copied') : t('chat.artifact.share.copy')}+ </Button></div>);}@@ -722,53 +766,68 @@ function EditableTextViewer({{/* Toolbar */}<div className="flex items-center justify-between border-b px-3 py-1.5 shrink-0 bg-muted/10"><div className="flex items-center gap-2">- <span className="text-xs font-medium text-muted-foreground capitalize">{kind}</span>+ <span className="text-xs font-medium text-muted-foreground">+ {t(`chat.artifact.kind.${kind}`, kind)}+ </span><span className="text-[11px] text-muted-foreground/60 border-l pl-2">v{autosave.version}</span>{editable && <AutosaveStatus status={autosave.status} />}</div><div className="flex items-center gap-0.5">- <div className="flex items-center rounded border mr-2">- <button- onClick={() => setTab('preview')}- className={`flex items-center gap-1 px-2 py-0.5 text-xs ${- tab === 'preview'- ? 'bg-primary/10 text-primary'- : 'text-muted-foreground hover:text-foreground'- }`}>- <Eye className="h-3 w-3" />- Preview- </button>- <button- onClick={() => setTab('code')}- className={`flex items-center gap-1 px-2 py-0.5 text-xs ${- tab === 'code'- ? 'bg-primary/10 text-primary'- : 'text-muted-foreground hover:text-foreground'- }`}>- <Code2 className="h-3 w-3" />- Code- </button>- </div>+ <ChipTabs+ compact+ ariaLabel={t('chat.artifact.view.aria')}+ className="mr-2 flex gap-1"+ value={tab}+ onChange={setTab}+ items={[+ {+ id: 'preview',+ label: (+ <span className="inline-flex items-center gap-1">+ <Eye className="h-3 w-3" />+ {t('chat.artifact.view.preview')}+ </span>+ ),+ },+ {+ id: 'code',+ label: (+ <span className="inline-flex items-center gap-1">+ <Code2 className="h-3 w-3" />+ {t('chat.artifact.view.code')}+ </span>+ ),+ },+ ]}+ />- <button+ <Button+ iconOnly+ variant="tertiary"+ size="xs"onClick={handleCopy}- title="Copy to clipboard"- className="inline-flex items-center justify-center rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground">+ aria-label={copied ? t('chat.artifact.copied') : t('chat.artifact.copy')}+ title={t('chat.artifact.copy')}+ className="text-muted-foreground hover:text-foreground">{copied ? (<Check className="h-3.5 w-3.5 text-green-500" />) : (<Clipboard className="h-3.5 w-3.5" />)}- </button>+ </Button>{/* <ShareButton state={sharing.state} onShare={() => void sharing.share()} /> */}- <button+ <Button+ iconOnly+ variant="tertiary"+ size="xs"onClick={() => void handleDownload()}- title="Download"- className="inline-flex items-center justify-center rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground">+ aria-label={t('chat.artifact.download')}+ title={t('chat.artifact.download')}+ className="text-muted-foreground hover:text-foreground"><Download className="h-3.5 w-3.5" />- </button>+ </Button></div></div>@@ -795,7 +854,7 @@ function EditableTextViewer({// Scripts run, but in an opaque origin: the agent's HTML cannot// reach the app window, its storage or the Tauri bridge.sandbox="allow-scripts"- title="HTML preview"+ title={t('chat.artifact.htmlPreview')}/>) : isMarkdown ? (// Markdown renders as formatted content (headings, lists, tables,@@ -818,6 +877,7 @@ function EditableTextViewer({value={editedBody}onChange={e => onEdit(e.target.value)}readOnly={!editable}+ aria-label={t('chat.artifact.editor')}className="flex-1 w-full resize-none border-0 bg-background p-4 text-sm font-mono leading-relaxed outline-none focus:ring-0"spellCheck={false}/>diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.tsindex 237b9ce3ac..72bf7ab218 100644--- a/app/src/lib/i18n/ar.ts+++ b/app/src/lib/i18n/ar.ts@@ -3318,6 +3318,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'فشل التنزيل: {reason}','chat.artifact.retry': 'إعادة المحاولة','chat.artifact.reveal': 'عرض في المجلد',+ 'chat.artifact.preview': 'معاينة',+ 'chat.artifact.notFound': 'لم يعد هذا الملف المُنشأ متاحًا.',+ 'chat.artifact.panel.close': 'إغلاق اللوحة',+ 'chat.artifact.panel.resize': 'تغيير حجم اللوحة',+ 'chat.artifact.tabs.aria': 'الملفات المُنشأة المفتوحة',+ 'chat.artifact.tab.close': 'إغلاق {title}',+ 'chat.artifact.view.aria': 'العرض',+ 'chat.artifact.view.preview': 'معاينة',+ 'chat.artifact.view.code': 'الشيفرة',+ 'chat.artifact.copy': 'نسخ إلى الحافظة',+ 'chat.artifact.copied': 'تم النسخ',+ 'chat.artifact.autosave.saved': 'تم الحفظ',+ 'chat.artifact.autosave.pending': 'تغييرات غير محفوظة',+ 'chat.artifact.autosave.saving': 'جارٍ الحفظ…',+ 'chat.artifact.autosave.error': 'لم يُحفظ',+ 'chat.artifact.kind.text': 'نص',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'صورة',+ 'chat.artifact.kind.file': 'ملف',+ 'chat.artifact.noPreview': 'لا توجد معاينة لهذا الملف. نزّله لفتحه.',+ 'chat.artifact.htmlPreview': 'معاينة HTML',+ 'chat.artifact.editor': 'مصدر الملف المُنشأ',+ 'chat.artifact.share': 'مشاركة: رفع ونسخ رابط',+ 'chat.artifact.share.failed': 'لم تتم المشاركة: {reason}',+ 'chat.artifact.share.copied': 'تم نسخ الرابط',+ 'chat.artifact.share.ready': 'الرابط جاهز',+ 'chat.artifact.share.expires': 'ينتهي في {date}',+ 'chat.artifact.share.copyLink': 'نسخ الرابط الكامل',+ 'chat.artifact.share.copy': 'نسخ',// Chat: files panel (#3024)'chat.files.chip.aria.one': 'ملف واحد في هذه المحادثة',diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.tsindex 912f2a196f..3d24192b6c 100644--- a/app/src/lib/i18n/bn.ts+++ b/app/src/lib/i18n/bn.ts@@ -3386,6 +3386,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'ডাউনলোড ব্যর্থ: {reason}','chat.artifact.retry': 'পুনরায় চেষ্টা','chat.artifact.reveal': 'ফোল্ডারে দেখান',+ 'chat.artifact.preview': 'প্রিভিউ',+ 'chat.artifact.notFound': 'এই আর্টিফ্যাক্টটি আর উপলব্ধ নেই।',+ 'chat.artifact.panel.close': 'প্যানেল বন্ধ করুন',+ 'chat.artifact.panel.resize': 'প্যানেলের আকার বদলান',+ 'chat.artifact.tabs.aria': 'খোলা আর্টিফ্যাক্ট',+ 'chat.artifact.tab.close': '{title} বন্ধ করুন',+ 'chat.artifact.view.aria': 'ভিউ',+ 'chat.artifact.view.preview': 'প্রিভিউ',+ 'chat.artifact.view.code': 'কোড',+ 'chat.artifact.copy': 'ক্লিপবোর্ডে কপি করুন',+ 'chat.artifact.copied': 'কপি হয়েছে',+ 'chat.artifact.autosave.saved': 'সংরক্ষিত',+ 'chat.artifact.autosave.pending': 'অসংরক্ষিত পরিবর্তন',+ 'chat.artifact.autosave.saving': 'সংরক্ষণ হচ্ছে…',+ 'chat.artifact.autosave.error': 'সংরক্ষিত হয়নি',+ 'chat.artifact.kind.text': 'টেক্সট',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'ছবি',+ 'chat.artifact.kind.file': 'ফাইল',+ 'chat.artifact.noPreview': 'এই ফাইলের প্রিভিউ নেই। খুলতে এটি ডাউনলোড করুন।',+ 'chat.artifact.htmlPreview': 'HTML প্রিভিউ',+ 'chat.artifact.editor': 'আর্টিফ্যাক্টের উৎস',+ 'chat.artifact.share': 'শেয়ার: আপলোড করে লিংক কপি করুন',+ 'chat.artifact.share.failed': 'শেয়ার হয়নি: {reason}',+ 'chat.artifact.share.copied': 'লিংক কপি হয়েছে',+ 'chat.artifact.share.ready': 'লিংক প্রস্তুত',+ 'chat.artifact.share.expires': '{date} তারিখে মেয়াদ শেষ',+ 'chat.artifact.share.copyLink': 'সম্পূর্ণ লিংক কপি করুন',+ 'chat.artifact.share.copy': 'কপি করুন',// Chat: files panel (#3024)'chat.files.chip.aria.one': 'এই চ্যাটে {count}টি ফাইল',diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.tsindex 02f5a1732e..19320767f1 100644--- a/app/src/lib/i18n/de.ts+++ b/app/src/lib/i18n/de.ts@@ -3487,6 +3487,37 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Download fehlgeschlagen: {reason}','chat.artifact.retry': 'Erneut versuchen','chat.artifact.reveal': 'Im Ordner anzeigen',+ 'chat.artifact.preview': 'Vorschau',+ 'chat.artifact.notFound': 'Dieses Artefakt ist nicht mehr verfügbar.',+ 'chat.artifact.panel.close': 'Bereich schließen',+ 'chat.artifact.panel.resize': 'Bereichsgröße ändern',+ 'chat.artifact.tabs.aria': 'Geöffnete Artefakte',+ 'chat.artifact.tab.close': '{title} schließen',+ 'chat.artifact.view.aria': 'Ansicht',+ 'chat.artifact.view.preview': 'Vorschau',+ 'chat.artifact.view.code': 'Code',+ 'chat.artifact.copy': 'In die Zwischenablage kopieren',+ 'chat.artifact.copied': 'Kopiert',+ 'chat.artifact.autosave.saved': 'Gespeichert',+ 'chat.artifact.autosave.pending': 'Nicht gespeicherte Änderungen',+ 'chat.artifact.autosave.saving': 'Wird gespeichert…',+ 'chat.artifact.autosave.error': 'Nicht gespeichert',+ 'chat.artifact.kind.text': 'Text',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Bild',+ 'chat.artifact.kind.file': 'Datei',+ 'chat.artifact.noPreview':+ 'Für diese Datei gibt es keine Vorschau. Lade sie herunter, um sie zu öffnen.',+ 'chat.artifact.htmlPreview': 'HTML-Vorschau',+ 'chat.artifact.editor': 'Quelltext des Artefakts',+ 'chat.artifact.share': 'Teilen: hochladen und Link kopieren',+ 'chat.artifact.share.failed': 'Nicht geteilt: {reason}',+ 'chat.artifact.share.copied': 'Link kopiert',+ 'chat.artifact.share.ready': 'Link bereit',+ 'chat.artifact.share.expires': 'läuft am {date} ab',+ 'chat.artifact.share.copyLink': 'Vollständigen Link kopieren',+ 'chat.artifact.share.copy': 'Kopieren',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} Datei in diesem Chat',diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex dfc22fca03..a17922b36e 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -3953,6 +3953,36 @@ const en: TranslationMap = {'chat.artifact.download_failed': 'Download failed: {reason}','chat.artifact.retry': 'Retry','chat.artifact.reveal': 'Show in folder',+ 'chat.artifact.preview': 'Preview',+ 'chat.artifact.notFound': 'This artifact is no longer available.',+ 'chat.artifact.panel.close': 'Close panel',+ 'chat.artifact.panel.resize': 'Resize panel',+ 'chat.artifact.tabs.aria': 'Open artifacts',+ 'chat.artifact.tab.close': 'Close {title}',+ 'chat.artifact.view.aria': 'View',+ 'chat.artifact.view.preview': 'Preview',+ 'chat.artifact.view.code': 'Code',+ 'chat.artifact.copy': 'Copy to clipboard',+ 'chat.artifact.copied': 'Copied',+ 'chat.artifact.autosave.saved': 'Saved',+ 'chat.artifact.autosave.pending': 'Unsaved changes',+ 'chat.artifact.autosave.saving': 'Saving…',+ 'chat.artifact.autosave.error': 'Not saved',+ 'chat.artifact.kind.text': 'Text',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Image',+ 'chat.artifact.kind.file': 'File',+ 'chat.artifact.noPreview': 'No preview for this file. Download it to open it.',+ 'chat.artifact.htmlPreview': 'HTML preview',+ 'chat.artifact.editor': 'Artifact source',+ 'chat.artifact.share': 'Share: upload and copy a link',+ 'chat.artifact.share.failed': 'Not shared: {reason}',+ 'chat.artifact.share.copied': 'Link copied',+ 'chat.artifact.share.ready': 'Link ready',+ 'chat.artifact.share.expires': 'expires {date}',+ 'chat.artifact.share.copyLink': 'Copy the full link',+ 'chat.artifact.share.copy': 'Copy',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} file in this chat',diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.tsindex 6febd8e18a..140f233419 100644--- a/app/src/lib/i18n/es.ts+++ b/app/src/lib/i18n/es.ts@@ -3455,6 +3455,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Error al descargar: {reason}','chat.artifact.retry': 'Reintentar','chat.artifact.reveal': 'Mostrar en la carpeta',+ 'chat.artifact.preview': 'Vista previa',+ 'chat.artifact.notFound': 'Este artefacto ya no está disponible.',+ 'chat.artifact.panel.close': 'Cerrar panel',+ 'chat.artifact.panel.resize': 'Cambiar tamaño del panel',+ 'chat.artifact.tabs.aria': 'Artefactos abiertos',+ 'chat.artifact.tab.close': 'Cerrar {title}',+ 'chat.artifact.view.aria': 'Vista',+ 'chat.artifact.view.preview': 'Vista previa',+ 'chat.artifact.view.code': 'Código',+ 'chat.artifact.copy': 'Copiar al portapapeles',+ 'chat.artifact.copied': 'Copiado',+ 'chat.artifact.autosave.saved': 'Guardado',+ 'chat.artifact.autosave.pending': 'Cambios sin guardar',+ 'chat.artifact.autosave.saving': 'Guardando…',+ 'chat.artifact.autosave.error': 'No guardado',+ 'chat.artifact.kind.text': 'Texto',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Imagen',+ 'chat.artifact.kind.file': 'Archivo',+ 'chat.artifact.noPreview': 'No hay vista previa de este archivo. Descárgalo para abrirlo.',+ 'chat.artifact.htmlPreview': 'Vista previa HTML',+ 'chat.artifact.editor': 'Código fuente del artefacto',+ 'chat.artifact.share': 'Compartir: subir y copiar un enlace',+ 'chat.artifact.share.failed': 'No compartido: {reason}',+ 'chat.artifact.share.copied': 'Enlace copiado',+ 'chat.artifact.share.ready': 'Enlace listo',+ 'chat.artifact.share.expires': 'caduca el {date}',+ 'chat.artifact.share.copyLink': 'Copiar el enlace completo',+ 'chat.artifact.share.copy': 'Copiar',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} archivo en este chat',diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.tsindex 442eb68e4f..9b6672bc3f 100644--- a/app/src/lib/i18n/fr.ts+++ b/app/src/lib/i18n/fr.ts@@ -3469,6 +3469,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Échec du téléchargement : {reason}','chat.artifact.retry': 'Réessayer','chat.artifact.reveal': 'Afficher dans le dossier',+ 'chat.artifact.preview': 'Aperçu',+ 'chat.artifact.notFound': 'Cet artefact n’est plus disponible.',+ 'chat.artifact.panel.close': 'Fermer le panneau',+ 'chat.artifact.panel.resize': 'Redimensionner le panneau',+ 'chat.artifact.tabs.aria': 'Artefacts ouverts',+ 'chat.artifact.tab.close': 'Fermer {title}',+ 'chat.artifact.view.aria': 'Affichage',+ 'chat.artifact.view.preview': 'Aperçu',+ 'chat.artifact.view.code': 'Code',+ 'chat.artifact.copy': 'Copier dans le presse-papiers',+ 'chat.artifact.copied': 'Copié',+ 'chat.artifact.autosave.saved': 'Enregistré',+ 'chat.artifact.autosave.pending': 'Modifications non enregistrées',+ 'chat.artifact.autosave.saving': 'Enregistrement…',+ 'chat.artifact.autosave.error': 'Non enregistré',+ 'chat.artifact.kind.text': 'Texte',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Image',+ 'chat.artifact.kind.file': 'Fichier',+ 'chat.artifact.noPreview': 'Aucun aperçu pour ce fichier. Téléchargez-le pour l’ouvrir.',+ 'chat.artifact.htmlPreview': 'Aperçu HTML',+ 'chat.artifact.editor': 'Source de l’artefact',+ 'chat.artifact.share': 'Partager : téléverser et copier un lien',+ 'chat.artifact.share.failed': 'Non partagé : {reason}',+ 'chat.artifact.share.copied': 'Lien copié',+ 'chat.artifact.share.ready': 'Lien prêt',+ 'chat.artifact.share.expires': 'expire le {date}',+ 'chat.artifact.share.copyLink': 'Copier le lien complet',+ 'chat.artifact.share.copy': 'Copier',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} fichier dans cette discussion',diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.tsindex b7ce54e06e..617b68bc7a 100644--- a/app/src/lib/i18n/hi.ts+++ b/app/src/lib/i18n/hi.ts@@ -3389,6 +3389,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'डाउनलोड विफल: {reason}','chat.artifact.retry': 'पुनः प्रयास','chat.artifact.reveal': 'फ़ोल्डर में दिखाएं',+ 'chat.artifact.preview': 'पूर्वावलोकन',+ 'chat.artifact.notFound': 'यह आर्टिफ़ैक्ट अब उपलब्ध नहीं है।',+ 'chat.artifact.panel.close': 'पैनल बंद करें',+ 'chat.artifact.panel.resize': 'पैनल का आकार बदलें',+ 'chat.artifact.tabs.aria': 'खुले आर्टिफ़ैक्ट',+ 'chat.artifact.tab.close': '{title} बंद करें',+ 'chat.artifact.view.aria': 'दृश्य',+ 'chat.artifact.view.preview': 'पूर्वावलोकन',+ 'chat.artifact.view.code': 'कोड',+ 'chat.artifact.copy': 'क्लिपबोर्ड पर कॉपी करें',+ 'chat.artifact.copied': 'कॉपी किया गया',+ 'chat.artifact.autosave.saved': 'सहेजा गया',+ 'chat.artifact.autosave.pending': 'असहेजे बदलाव',+ 'chat.artifact.autosave.saving': 'सहेजा जा रहा है…',+ 'chat.artifact.autosave.error': 'सहेजा नहीं गया',+ 'chat.artifact.kind.text': 'टेक्स्ट',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'छवि',+ 'chat.artifact.kind.file': 'फ़ाइल',+ 'chat.artifact.noPreview': 'इस फ़ाइल का पूर्वावलोकन नहीं है। खोलने के लिए इसे डाउनलोड करें।',+ 'chat.artifact.htmlPreview': 'HTML पूर्वावलोकन',+ 'chat.artifact.editor': 'आर्टिफ़ैक्ट स्रोत',+ 'chat.artifact.share': 'साझा करें: अपलोड करें और लिंक कॉपी करें',+ 'chat.artifact.share.failed': 'साझा नहीं हुआ: {reason}',+ 'chat.artifact.share.copied': 'लिंक कॉपी किया गया',+ 'chat.artifact.share.ready': 'लिंक तैयार है',+ 'chat.artifact.share.expires': '{date} को समाप्त',+ 'chat.artifact.share.copyLink': 'पूरा लिंक कॉपी करें',+ 'chat.artifact.share.copy': 'कॉपी करें',// Chat: files panel (#3024)'chat.files.chip.aria.one': 'इस चैट में {count} फ़ाइल',diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.tsindex b97c5de6c9..62e0a4f824 100644--- a/app/src/lib/i18n/id.ts+++ b/app/src/lib/i18n/id.ts@@ -3414,6 +3414,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Unduhan gagal: {reason}','chat.artifact.retry': 'Coba lagi','chat.artifact.reveal': 'Tampilkan di folder',+ 'chat.artifact.preview': 'Pratinjau',+ 'chat.artifact.notFound': 'Artefak ini sudah tidak tersedia.',+ 'chat.artifact.panel.close': 'Tutup panel',+ 'chat.artifact.panel.resize': 'Ubah ukuran panel',+ 'chat.artifact.tabs.aria': 'Artefak yang terbuka',+ 'chat.artifact.tab.close': 'Tutup {title}',+ 'chat.artifact.view.aria': 'Tampilan',+ 'chat.artifact.view.preview': 'Pratinjau',+ 'chat.artifact.view.code': 'Kode',+ 'chat.artifact.copy': 'Salin ke papan klip',+ 'chat.artifact.copied': 'Disalin',+ 'chat.artifact.autosave.saved': 'Tersimpan',+ 'chat.artifact.autosave.pending': 'Perubahan belum disimpan',+ 'chat.artifact.autosave.saving': 'Menyimpan…',+ 'chat.artifact.autosave.error': 'Tidak tersimpan',+ 'chat.artifact.kind.text': 'Teks',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Gambar',+ 'chat.artifact.kind.file': 'Berkas',+ 'chat.artifact.noPreview': 'Tidak ada pratinjau untuk berkas ini. Unduh untuk membukanya.',+ 'chat.artifact.htmlPreview': 'Pratinjau HTML',+ 'chat.artifact.editor': 'Sumber artefak',+ 'chat.artifact.share': 'Bagikan: unggah dan salin tautan',+ 'chat.artifact.share.failed': 'Tidak dibagikan: {reason}',+ 'chat.artifact.share.copied': 'Tautan disalin',+ 'chat.artifact.share.ready': 'Tautan siap',+ 'chat.artifact.share.expires': 'kedaluwarsa {date}',+ 'chat.artifact.share.copyLink': 'Salin tautan lengkap',+ 'chat.artifact.share.copy': 'Salin',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} file di chat ini',diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.tsindex aff318d1f9..4ddb6666fc 100644--- a/app/src/lib/i18n/it.ts+++ b/app/src/lib/i18n/it.ts@@ -3448,6 +3448,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Download fallito: {reason}','chat.artifact.retry': 'Riprova','chat.artifact.reveal': 'Mostra nella cartella',+ 'chat.artifact.preview': 'Anteprima',+ 'chat.artifact.notFound': 'Questo artefatto non è più disponibile.',+ 'chat.artifact.panel.close': 'Chiudi pannello',+ 'chat.artifact.panel.resize': 'Ridimensiona pannello',+ 'chat.artifact.tabs.aria': 'Artefatti aperti',+ 'chat.artifact.tab.close': 'Chiudi {title}',+ 'chat.artifact.view.aria': 'Vista',+ 'chat.artifact.view.preview': 'Anteprima',+ 'chat.artifact.view.code': 'Codice',+ 'chat.artifact.copy': 'Copia negli appunti',+ 'chat.artifact.copied': 'Copiato',+ 'chat.artifact.autosave.saved': 'Salvato',+ 'chat.artifact.autosave.pending': 'Modifiche non salvate',+ 'chat.artifact.autosave.saving': 'Salvataggio…',+ 'chat.artifact.autosave.error': 'Non salvato',+ 'chat.artifact.kind.text': 'Testo',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Immagine',+ 'chat.artifact.kind.file': 'File',+ 'chat.artifact.noPreview': 'Nessuna anteprima per questo file. Scaricalo per aprirlo.',+ 'chat.artifact.htmlPreview': 'Anteprima HTML',+ 'chat.artifact.editor': 'Sorgente dell’artefatto',+ 'chat.artifact.share': 'Condividi: carica e copia un link',+ 'chat.artifact.share.failed': 'Non condiviso: {reason}',+ 'chat.artifact.share.copied': 'Link copiato',+ 'chat.artifact.share.ready': 'Link pronto',+ 'chat.artifact.share.expires': 'scade il {date}',+ 'chat.artifact.share.copyLink': 'Copia il link completo',+ 'chat.artifact.share.copy': 'Copia',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} file in questa chat',diff --git a/app/src/lib/i18n/ja.ts b/app/src/lib/i18n/ja.tsindex 7822fd825e..51059e6e1a 100644--- a/app/src/lib/i18n/ja.ts+++ b/app/src/lib/i18n/ja.ts@@ -3988,6 +3988,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'ダウンロードに失敗しました: {reason}','chat.artifact.retry': '再試行','chat.artifact.reveal': 'フォルダに表示',+ 'chat.artifact.preview': 'プレビュー',+ 'chat.artifact.notFound': 'このアーティファクトはもう利用できません。',+ 'chat.artifact.panel.close': 'パネルを閉じる',+ 'chat.artifact.panel.resize': 'パネルのサイズを変更',+ 'chat.artifact.tabs.aria': '開いているアーティファクト',+ 'chat.artifact.tab.close': '{title} を閉じる',+ 'chat.artifact.view.aria': '表示',+ 'chat.artifact.view.preview': 'プレビュー',+ 'chat.artifact.view.code': 'コード',+ 'chat.artifact.copy': 'クリップボードにコピー',+ 'chat.artifact.copied': 'コピーしました',+ 'chat.artifact.autosave.saved': '保存済み',+ 'chat.artifact.autosave.pending': '未保存の変更',+ 'chat.artifact.autosave.saving': '保存中…',+ 'chat.artifact.autosave.error': '保存されていません',+ 'chat.artifact.kind.text': 'テキスト',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': '画像',+ 'chat.artifact.kind.file': 'ファイル',+ 'chat.artifact.noPreview': 'このファイルはプレビューできません。ダウンロードして開いてください。',+ 'chat.artifact.htmlPreview': 'HTML プレビュー',+ 'chat.artifact.editor': 'アーティファクトのソース',+ 'chat.artifact.share': '共有:アップロードしてリンクをコピー',+ 'chat.artifact.share.failed': '共有されませんでした:{reason}',+ 'chat.artifact.share.copied': 'リンクをコピーしました',+ 'chat.artifact.share.ready': 'リンクの準備ができました',+ 'chat.artifact.share.expires': '{date} に期限切れ',+ 'chat.artifact.share.copyLink': '完全なリンクをコピー',+ 'chat.artifact.share.copy': 'コピー',// Chat: files panel (#3024)'chat.files.chip.aria.one': 'このチャット内のファイル {count} 件',diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.tsindex 8fad411b56..79b9da871d 100644--- a/app/src/lib/i18n/ko.ts+++ b/app/src/lib/i18n/ko.ts@@ -3352,6 +3352,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': '다운로드 실패: {reason}','chat.artifact.retry': '다시 시도','chat.artifact.reveal': '폴더에서 보기',+ 'chat.artifact.preview': '미리 보기',+ 'chat.artifact.notFound': '이 아티팩트는 더 이상 사용할 수 없습니다.',+ 'chat.artifact.panel.close': '패널 닫기',+ 'chat.artifact.panel.resize': '패널 크기 조정',+ 'chat.artifact.tabs.aria': '열린 아티팩트',+ 'chat.artifact.tab.close': '{title} 닫기',+ 'chat.artifact.view.aria': '보기',+ 'chat.artifact.view.preview': '미리 보기',+ 'chat.artifact.view.code': '코드',+ 'chat.artifact.copy': '클립보드에 복사',+ 'chat.artifact.copied': '복사됨',+ 'chat.artifact.autosave.saved': '저장됨',+ 'chat.artifact.autosave.pending': '저장되지 않은 변경 사항',+ 'chat.artifact.autosave.saving': '저장 중…',+ 'chat.artifact.autosave.error': '저장되지 않음',+ 'chat.artifact.kind.text': '텍스트',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': '이미지',+ 'chat.artifact.kind.file': '파일',+ 'chat.artifact.noPreview': '이 파일은 미리 볼 수 없습니다. 다운로드해서 여세요.',+ 'chat.artifact.htmlPreview': 'HTML 미리 보기',+ 'chat.artifact.editor': '아티팩트 소스',+ 'chat.artifact.share': '공유: 업로드하고 링크 복사',+ 'chat.artifact.share.failed': '공유되지 않음: {reason}',+ 'chat.artifact.share.copied': '링크 복사됨',+ 'chat.artifact.share.ready': '링크 준비됨',+ 'chat.artifact.share.expires': '{date}에 만료',+ 'chat.artifact.share.copyLink': '전체 링크 복사',+ 'chat.artifact.share.copy': '복사',// Chat: files panel (#3024)'chat.files.chip.aria.one': '이 채팅의 파일 {count}개',diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.tsindex 45819e1579..9e95f02700 100644--- a/app/src/lib/i18n/pl.ts+++ b/app/src/lib/i18n/pl.ts@@ -3438,6 +3438,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Pobieranie nie powiodło się: {reason}','chat.artifact.retry': 'Spróbuj ponownie','chat.artifact.reveal': 'Pokaż w folderze',+ 'chat.artifact.preview': 'Podgląd',+ 'chat.artifact.notFound': 'Ten artefakt nie jest już dostępny.',+ 'chat.artifact.panel.close': 'Zamknij panel',+ 'chat.artifact.panel.resize': 'Zmień rozmiar panelu',+ 'chat.artifact.tabs.aria': 'Otwarte artefakty',+ 'chat.artifact.tab.close': 'Zamknij {title}',+ 'chat.artifact.view.aria': 'Widok',+ 'chat.artifact.view.preview': 'Podgląd',+ 'chat.artifact.view.code': 'Kod',+ 'chat.artifact.copy': 'Kopiuj do schowka',+ 'chat.artifact.copied': 'Skopiowano',+ 'chat.artifact.autosave.saved': 'Zapisano',+ 'chat.artifact.autosave.pending': 'Niezapisane zmiany',+ 'chat.artifact.autosave.saving': 'Zapisywanie…',+ 'chat.artifact.autosave.error': 'Nie zapisano',+ 'chat.artifact.kind.text': 'Tekst',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Obraz',+ 'chat.artifact.kind.file': 'Plik',+ 'chat.artifact.noPreview': 'Brak podglądu tego pliku. Pobierz go, aby go otworzyć.',+ 'chat.artifact.htmlPreview': 'Podgląd HTML',+ 'chat.artifact.editor': 'Źródło artefaktu',+ 'chat.artifact.share': 'Udostępnij: prześlij i skopiuj link',+ 'chat.artifact.share.failed': 'Nie udostępniono: {reason}',+ 'chat.artifact.share.copied': 'Link skopiowany',+ 'chat.artifact.share.ready': 'Link gotowy',+ 'chat.artifact.share.expires': 'wygasa {date}',+ 'chat.artifact.share.copyLink': 'Kopiuj pełny link',+ 'chat.artifact.share.copy': 'Kopiuj',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} plik w tej rozmowie',diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.tsindex 3332728dc7..dca8ccc008 100644--- a/app/src/lib/i18n/pt.ts+++ b/app/src/lib/i18n/pt.ts@@ -3435,6 +3435,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Falha no download: {reason}','chat.artifact.retry': 'Tentar novamente','chat.artifact.reveal': 'Mostrar na pasta',+ 'chat.artifact.preview': 'Pré-visualização',+ 'chat.artifact.notFound': 'Este artefato não está mais disponível.',+ 'chat.artifact.panel.close': 'Fechar painel',+ 'chat.artifact.panel.resize': 'Redimensionar painel',+ 'chat.artifact.tabs.aria': 'Artefatos abertos',+ 'chat.artifact.tab.close': 'Fechar {title}',+ 'chat.artifact.view.aria': 'Visualização',+ 'chat.artifact.view.preview': 'Pré-visualização',+ 'chat.artifact.view.code': 'Código',+ 'chat.artifact.copy': 'Copiar para a área de transferência',+ 'chat.artifact.copied': 'Copiado',+ 'chat.artifact.autosave.saved': 'Salvo',+ 'chat.artifact.autosave.pending': 'Alterações não salvas',+ 'chat.artifact.autosave.saving': 'Salvando…',+ 'chat.artifact.autosave.error': 'Não salvo',+ 'chat.artifact.kind.text': 'Texto',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Imagem',+ 'chat.artifact.kind.file': 'Arquivo',+ 'chat.artifact.noPreview': 'Sem pré-visualização para este arquivo. Baixe-o para abrir.',+ 'chat.artifact.htmlPreview': 'Pré-visualização HTML',+ 'chat.artifact.editor': 'Código-fonte do artefato',+ 'chat.artifact.share': 'Compartilhar: enviar e copiar um link',+ 'chat.artifact.share.failed': 'Não compartilhado: {reason}',+ 'chat.artifact.share.copied': 'Link copiado',+ 'chat.artifact.share.ready': 'Link pronto',+ 'chat.artifact.share.expires': 'expira em {date}',+ 'chat.artifact.share.copyLink': 'Copiar o link completo',+ 'chat.artifact.share.copy': 'Copiar',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} arquivo neste chat',diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.tsindex ee2e948136..b9863fa385 100644--- a/app/src/lib/i18n/ru.ts+++ b/app/src/lib/i18n/ru.ts@@ -3427,6 +3427,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'Сбой скачивания: {reason}','chat.artifact.retry': 'Повторить','chat.artifact.reveal': 'Показать в папке',+ 'chat.artifact.preview': 'Предпросмотр',+ 'chat.artifact.notFound': 'Этот артефакт больше недоступен.',+ 'chat.artifact.panel.close': 'Закрыть панель',+ 'chat.artifact.panel.resize': 'Изменить размер панели',+ 'chat.artifact.tabs.aria': 'Открытые артефакты',+ 'chat.artifact.tab.close': 'Закрыть {title}',+ 'chat.artifact.view.aria': 'Вид',+ 'chat.artifact.view.preview': 'Предпросмотр',+ 'chat.artifact.view.code': 'Код',+ 'chat.artifact.copy': 'Скопировать в буфер обмена',+ 'chat.artifact.copied': 'Скопировано',+ 'chat.artifact.autosave.saved': 'Сохранено',+ 'chat.artifact.autosave.pending': 'Есть несохранённые изменения',+ 'chat.artifact.autosave.saving': 'Сохранение…',+ 'chat.artifact.autosave.error': 'Не сохранено',+ 'chat.artifact.kind.text': 'Текст',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Изображение',+ 'chat.artifact.kind.file': 'Файл',+ 'chat.artifact.noPreview': 'Для этого файла нет предпросмотра. Скачайте его, чтобы открыть.',+ 'chat.artifact.htmlPreview': 'Предпросмотр HTML',+ 'chat.artifact.editor': 'Исходный текст артефакта',+ 'chat.artifact.share': 'Поделиться: загрузить и скопировать ссылку',+ 'chat.artifact.share.failed': 'Не опубликовано: {reason}',+ 'chat.artifact.share.copied': 'Ссылка скопирована',+ 'chat.artifact.share.ready': 'Ссылка готова',+ 'chat.artifact.share.expires': 'истекает {date}',+ 'chat.artifact.share.copyLink': 'Скопировать полную ссылку',+ 'chat.artifact.share.copy': 'Копировать',// Chat: files panel (#3024)'chat.files.chip.aria.one': '{count} файл в этом чате',diff --git a/app/src/lib/i18n/tr.ts b/app/src/lib/i18n/tr.tsindex 16ef3cd473..20556b5231 100644--- a/app/src/lib/i18n/tr.ts+++ b/app/src/lib/i18n/tr.ts@@ -3649,6 +3649,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': 'İndirme başarısız: {reason}','chat.artifact.retry': 'Yeniden dene','chat.artifact.reveal': 'Klasörde göster',+ 'chat.artifact.preview': 'Önizleme',+ 'chat.artifact.notFound': 'Bu yapıt artık kullanılamıyor.',+ 'chat.artifact.panel.close': 'Paneli kapat',+ 'chat.artifact.panel.resize': 'Panel boyutunu değiştir',+ 'chat.artifact.tabs.aria': 'Açık yapıtlar',+ 'chat.artifact.tab.close': '{title} kapat',+ 'chat.artifact.view.aria': 'Görünüm',+ 'chat.artifact.view.preview': 'Önizleme',+ 'chat.artifact.view.code': 'Kod',+ 'chat.artifact.copy': 'Panoya kopyala',+ 'chat.artifact.copied': 'Kopyalandı',+ 'chat.artifact.autosave.saved': 'Kaydedildi',+ 'chat.artifact.autosave.pending': 'Kaydedilmemiş değişiklikler',+ 'chat.artifact.autosave.saving': 'Kaydediliyor…',+ 'chat.artifact.autosave.error': 'Kaydedilmedi',+ 'chat.artifact.kind.text': 'Metin',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': 'Görsel',+ 'chat.artifact.kind.file': 'Dosya',+ 'chat.artifact.noPreview': 'Bu dosyanın önizlemesi yok. Açmak için indirin.',+ 'chat.artifact.htmlPreview': 'HTML önizlemesi',+ 'chat.artifact.editor': 'Yapıt kaynağı',+ 'chat.artifact.share': 'Paylaş: yükle ve bağlantıyı kopyala',+ 'chat.artifact.share.failed': 'Paylaşılmadı: {reason}',+ 'chat.artifact.share.copied': 'Bağlantı kopyalandı',+ 'chat.artifact.share.ready': 'Bağlantı hazır',+ 'chat.artifact.share.expires': '{date} tarihinde sona eriyor',+ 'chat.artifact.share.copyLink': 'Tam bağlantıyı kopyala',+ 'chat.artifact.share.copy': 'Kopyala','chat.files.chip.aria.one': 'Bu sohbette {count} dosya','chat.files.chip.aria.other': 'Bu sohbette {count} dosya','chat.files.panel.aria': 'Bu sohbetteki dosyalar',diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.tsindex 98f84ec2d7..8ba4204350 100644--- a/app/src/lib/i18n/zh-CN.ts+++ b/app/src/lib/i18n/zh-CN.ts@@ -3193,6 +3193,36 @@ const messages: TranslationMap = {'chat.artifact.download_failed': '下载失败:{reason}','chat.artifact.retry': '重试','chat.artifact.reveal': '在文件夹中显示',+ 'chat.artifact.preview': '预览',+ 'chat.artifact.notFound': '此产物已不可用。',+ 'chat.artifact.panel.close': '关闭面板',+ 'chat.artifact.panel.resize': '调整面板大小',+ 'chat.artifact.tabs.aria': '已打开的产物',+ 'chat.artifact.tab.close': '关闭 {title}',+ 'chat.artifact.view.aria': '视图',+ 'chat.artifact.view.preview': '预览',+ 'chat.artifact.view.code': '代码',+ 'chat.artifact.copy': '复制到剪贴板',+ 'chat.artifact.copied': '已复制',+ 'chat.artifact.autosave.saved': '已保存',+ 'chat.artifact.autosave.pending': '有未保存的更改',+ 'chat.artifact.autosave.saving': '正在保存…',+ 'chat.artifact.autosave.error': '未保存',+ 'chat.artifact.kind.text': '文本',+ 'chat.artifact.kind.markdown': 'Markdown',+ 'chat.artifact.kind.html': 'HTML',+ 'chat.artifact.kind.image': '图片',+ 'chat.artifact.kind.file': '文件',+ 'chat.artifact.noPreview': '此文件无法预览。请下载后打开。',+ 'chat.artifact.htmlPreview': 'HTML 预览',+ 'chat.artifact.editor': '产物源码',+ 'chat.artifact.share': '分享:上传并复制链接',+ 'chat.artifact.share.failed': '未分享:{reason}',+ 'chat.artifact.share.copied': '链接已复制',+ 'chat.artifact.share.ready': '链接已就绪',+ 'chat.artifact.share.expires': '{date} 过期',+ 'chat.artifact.share.copyLink': '复制完整链接',+ 'chat.artifact.share.copy': '复制',// Chat:files panel (#3024)'chat.files.chip.aria.one': '本聊天中有 {count} 个文件',diff --git a/app/src/store/__tests__/chatRuntimeSlice.artifactTabs.component.test.tsx b/app/src/store/__tests__/chatRuntimeSlice.artifactTabs.component.test.tsxindex 4ed675876a..0af6855109 100644--- a/app/src/store/__tests__/chatRuntimeSlice.artifactTabs.component.test.tsx+++ b/app/src/store/__tests__/chatRuntimeSlice.artifactTabs.component.test.tsx@@ -45,8 +45,8 @@ describe('ArtifactPreviewPanel — tab switching & close (#1535)', () => {);// Two tabs rendered (showTabs = length > 1)- const tab1 = screen.getByRole('button', { name: 'Doc One' });- const tab2 = screen.getByRole('button', { name: 'Doc Two' });+ const tab1 = screen.getByRole('tab', { name: 'Doc One' });+ const tab2 = screen.getByRole('tab', { name: 'Doc Two' });expect(tab1).toBeTruthy();expect(tab2).toBeTruthy();@@ -73,7 +73,7 @@ describe('ArtifactPreviewPanel — tab switching & close (#1535)', () => {);// Two tabs, each with a close (X) button.- const closeBtns = screen.getAllByTitle('Close artifact');+ const closeBtns = screen.getAllByRole('button', { name: 'chat.artifact.tab.close' });expect(closeBtns).toHaveLength(2);// Close the non-active tab (a-1): it is removed and a-2 stays active.@@ -90,7 +90,7 @@ describe('ArtifactPreviewPanel — tab switching & close (#1535)', () => {</Provider>);- fireEvent.click(screen.getByTitle('Close panel'));+ fireEvent.click(screen.getByRole('button', { name: 'chat.artifact.panel.close' }));expect(store.getState().chatRuntime.openArtifactIds).toEqual([]);expect(store.getState().chatRuntime.activeArtifactId).toBeNull();});