Files
OpenTerminal/src/shared/i18n/dicts/zh-CN/common.ts
T
Bill 4e5377f49c
CI / typecheck + test + build (windows) (push) Canceled after 0s
fix: hardening round from code review (4 P1 + 15 P2)
P1:
- settingsStore: back up an unparseable settings.json to .bak before
  falling back to defaults, so the next mutation can no longer silently
  wipe custom themes/highlight rules
- ptyDispatcher: fan out per-session data/exit handlers (Set instead of
  a single slot) so SSH split panes stop stealing each other's stream
- FilePanel: monotonic refresh token keeps stale listings from painting
  over a newer navigation; upload finish no longer yanks the panel back
- settings.css: active settings-tab label derives from --chrome-fg so it
  stays visible on the shipped light themes

P2 (main/renderer):
- paste guard: a paste ending in a newline always confirms
- Workspace: closing an SSH pane no longer seeds the local cwd with a
  remote path
- tray: skip close-dialog continuation on a destroyed window
- commands: close zombie 'in-progress' session logs at hydrate
- zmodem: clear the stale offer timer before arming a new one
- connectionsStore: coerce/validate renderer input before persisting
- sftp: OperationError marker class keeps translated errors out of the
  transport-retry classifier
- CommandsPanel: surface save failures inside the dialog
- ConnectionSidebar: drop a tautological tooltip condition

P2 (i18n/tooling/tests):
- localize the 16 ANSI color labels and the highlight sample text
  (21 new keys across zh-CN/zh-TW/en/ja)
- sync-changelog: keep ### subheadings, normalize CRLF notes
- release.cjs: GitHub release reuse-by-tag (idempotent re-runs); fail
  loudly on a failed Gitea asset listing
- commands-store test: absent historyEnabled now truly tests absence
2026-09-27 22:25:03 +08:00

19 lines
639 B
TypeScript

/** 命名空间:通用(i18n 基础设施、通用按钮与状态)。归属:i18n 基础设施维护者。 */
const common: Record<string, string> = {
'common.ok': '确定',
'common.cancel': '取消',
'common.close': '关闭',
'common.save': '保存',
'common.saveFailed': '保存失败,请重试',
'common.delete': '删除',
'common.edit': '编辑',
'common.add': '新增',
'common.copy': '复制',
'common.paste': '粘贴',
'common.reset': '恢复默认',
'common.language': '界面语言',
'common.languageDesc': '切换后立即预览界面语言,保存后永久生效。'
}
export default common