feat(i18n): add multi-language support (ja/ko/vi/ru/zh-TW) with system auto-detection
- Extend AppLanguage to 7 locales: zh-CN, zh-TW, en, ja, ko, vi, ru - Auto-detect system language via navigator.languages; fallback to English - Add BCP47 locale mapping for date formatting and sorting - Create 50 translation JSON files (5 languages × 10 namespaces, 1137 keys each) - Update language selector with native language names - Extend locale key parity test to cover all 7 languages (70 assertions) - Add VNC/RDP desktop, serial terminal, AI agent, port forwarding, and SFTP features - Add credential encryption, host metrics, session backup crypto, and zmodem bridge - Update Rust backend: desktop services, host metrics, SSH/SFTP enhancements
This commit is contained in:
1 parent
fea6d8db04
commit
b0d0e3a5f3
301 files changed
+28002
-2705
No files matched your search
@@ -3,6 +3,7 @@ import { persist } from 'zustand/middleware'
|
||||
import { createLogger } from '../utils/logger'
|
||||
import type { SSHConnectionConfig } from '../../shared/types/session.types'
|
||||
import type { SerialConfig } from '../../shared/types/serial.types'
|
||||
import type { RdpConfig, VncConfig } from '../../shared/types/desktop.types'
|
||||
|
||||
const logger = createLogger('TabStore')
|
||||
|
||||
@@ -10,6 +11,8 @@ export type TabType =
|
||||
| 'welcome'
|
||||
| 'terminal'
|
||||
| 'serial'
|
||||
| 'rdp'
|
||||
| 'vnc'
|
||||
| 'sftp'
|
||||
| 'portforward'
|
||||
| 'settings'
|
||||
@@ -55,6 +58,10 @@ export interface Tab {
|
||||
localShellPath?: string
|
||||
/** Native serial terminal configuration. */
|
||||
serialConfig?: SerialConfig
|
||||
/** RDP remote desktop configuration (password kept in-memory for the tab lifetime). */
|
||||
rdpConfig?: RdpConfig
|
||||
/** VNC remote desktop configuration. */
|
||||
vncConfig?: VncConfig
|
||||
/** Pro upgrade tab context */
|
||||
upgradeFeature?: string
|
||||
upgradeComingSoon?: boolean
|
||||
@@ -71,7 +78,10 @@ interface PersistedTab {
|
||||
splitLayout?: SplitLayout
|
||||
isLocal?: boolean
|
||||
serialConfig?: SerialConfig
|
||||
rdpConfig?: RdpConfig
|
||||
vncConfig?: VncConfig
|
||||
// 注意:不持久化 connectionConfig(可能包含密码/密钥)
|
||||
// 注意:rdpConfig / vncConfig 含密码,持久化时剥离
|
||||
// 注意:不持久化 connectionInstance(运行时状态)
|
||||
// 注意:不持久化 connectionStatus(运行时状态)
|
||||
// 注意:不持久化 isActive(由 activeTabId 决定)
|
||||
|
||||
Reference in new issue
Block a user