fix(web): keep trajectory toolbar Duration/Turns/Calls/Export untranslated
Show the four toolbar terms in English even in the Simplified Chinese dictionary, including their tooltips, aria labels, and the export failure message, and update the pinned-zh specs to match.
This commit is contained in:
@@ -55,7 +55,7 @@ export function apply(ctx: Context): void {
|
||||
const response = await fetch(url)
|
||||
if (!response.ok) {
|
||||
const detail = await response.text().catch(() => '')
|
||||
throw new Error(`导出失败:HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}`)
|
||||
throw new Error(`Export failed: HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}`)
|
||||
}
|
||||
downloadBlob(await response.blob(), sessionLogZipFilename(sessionId))
|
||||
},
|
||||
|
||||
@@ -35,20 +35,20 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
||||
export const zh: Record<TrajectoryKey, string> = {
|
||||
'view.trajectory': '轨迹',
|
||||
'toolbar.aria': '轨迹工具栏',
|
||||
'toolbar.duration': '时长',
|
||||
'toolbar.useActualDuration': '使用实际时长',
|
||||
'toolbar.useEqualWidth': '使用等宽时长',
|
||||
'toolbar.duration': 'Duration',
|
||||
'toolbar.useActualDuration': 'Use actual duration',
|
||||
'toolbar.useEqualWidth': 'Use equal-width operations',
|
||||
'toolbar.actualTime': '实际时间',
|
||||
'toolbar.turns': '轮次',
|
||||
'toolbar.expandTurns': '展开轮次',
|
||||
'toolbar.collapseTurns': '折叠轮次',
|
||||
'toolbar.calls': '调用',
|
||||
'toolbar.expandCalls': '展开调用',
|
||||
'toolbar.collapseCalls': '折叠调用',
|
||||
'toolbar.export': '导出',
|
||||
'toolbar.exportAria': '导出会话日志',
|
||||
'toolbar.exporting': '导出中…',
|
||||
'toolbar.exportTitle': '导出会话日志(ZIP,含子代理)',
|
||||
'toolbar.turns': 'Turns',
|
||||
'toolbar.expandTurns': 'Expand turns',
|
||||
'toolbar.collapseTurns': 'Collapse turns',
|
||||
'toolbar.calls': 'Calls',
|
||||
'toolbar.expandCalls': 'Expand calls',
|
||||
'toolbar.collapseCalls': 'Collapse calls',
|
||||
'toolbar.export': 'Export',
|
||||
'toolbar.exportAria': 'Export session log',
|
||||
'toolbar.exporting': 'Exporting…',
|
||||
'toolbar.exportTitle': 'Export session log (ZIP, includes subagents)',
|
||||
'toolbar.search': '搜索轨迹',
|
||||
'toolbar.searchPlaceholder': '搜索',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user