732 lines
39 KiB
TypeScript
732 lines
39 KiB
TypeScript
// Shared dictionaries and typing for the injected Remote client UI.
|
||
export const localeNamespace = 'ds-harness-remote'
|
||
|
||
export const en = {
|
||
serverSavedLive: 'Server address saved and applied.',
|
||
saveServerBeforeLogin: 'Save the Server address before continuing sign-in or pairing.',
|
||
pairingLoginTab: 'DSH Go',
|
||
pairingTitle: "Pair with DSH Go",
|
||
pairingHint: "Scan in DSH Go and confirm on your phone.\nThen enter the phone code on this computer and confirm binding.",
|
||
pairingHostOnly: "New Hosts accept connections only. Pairing does not enable control of other devices.",
|
||
pairingSaveServer: "Save the Server address before pairing.",
|
||
pairingScan: "Scan this QR code in DSH Go and confirm on your phone.",
|
||
pairingEnter: "Check the requesting phone, then enter its code.",
|
||
pairingComplete: "Paired. DSH Go can now connect to this Host.",
|
||
pairingPending: "Recover the original submission without changing the code.",
|
||
pairingClosed: "Pairing ended. Generate a new QR code to start again.",
|
||
pairingQr: "One-time DSH Go pairing QR code",
|
||
pairingExpires: "Expires in {time}",
|
||
pairingExpired: "Expired",
|
||
pairingCode: "8-digit code shown on your phone",
|
||
pairingWarning: "Only one submission is allowed. A wrong code invalidates this QR code; scan a new one.",
|
||
pairingConfirm: "Confirm binding",
|
||
pairingRetry: "Recover original submission",
|
||
pairingCancel: "Cancel pairing",
|
||
pairingStart: "Generate pairing QR code",
|
||
pairingBusy: "Please wait…",
|
||
pairingUnsupported: "This Server does not support device pairing.",
|
||
pairingError: "Could not finish pairing. Check the connection.\nIf a code was sent, recover the original submission without changing it.",
|
||
|
||
remoteTools: 'Inject Remote Tools',
|
||
remoteToolsHint: 'Expose remote_* tools in sessions. On by default; turn it off when you do not need them. Changes apply after restarting the Host.',
|
||
remoteToolsSaved: 'Remote Tools setting saved.',
|
||
debugLogging: 'Debug logging',
|
||
debugLoggingHint: 'Write detailed connection diagnostics to the Host log. Applies immediately; turn off after troubleshooting.',
|
||
terminalRemote: 'Remote terminal',
|
||
terminalRemoteHint: 'Allow trusted Remote devices to run an interactive shell as this Host user. On by default; independent of Agent approvals. Toggling saves and applies immediately.',
|
||
terminalRemoteUnavailable: 'Remote terminal is unavailable. Enable Remote terminal in the Host Remote settings; the switch applies immediately.',
|
||
terminalSaved: 'Remote terminal setting saved. Applies immediately.',
|
||
sidebarEntry: 'Sidebar entry',
|
||
sidebarEntryHint: 'Standard keeps the Remote button in the sidebar footer. Compact moves it to the account row as an icon. Toggling applies immediately.',
|
||
sidebarEntryStandard: 'Standard',
|
||
sidebarEntryCompact: 'Compact',
|
||
sidebarEntrySaved: 'Sidebar entry style saved.',
|
||
previewOpen: 'Preview service',
|
||
previewPort: 'Host port',
|
||
previewLocalOnly: 'Preview requires Desktop or a browser connected to Harness on this computer.',
|
||
settings: 'Settings',
|
||
|
||
pluginTitle: 'DeepSeek Remote',
|
||
pluginDescription: 'P2P-based, end-to-end encrypted remote access to DeepSeek Harness, CodeX, Claude Code, Pi, and other workspaces from web and mobile clients.',
|
||
openPluginSettings: 'Remote settings',
|
||
expandSettings: 'Show settings: {name}',
|
||
collapseSettings: 'Hide settings: {name}',
|
||
unsaved: 'Unsaved',
|
||
associated: 'Authorized',
|
||
authorizationComplete: 'Authorization complete',
|
||
loadingSettings: 'Loading DeepSeek Remote settings…',
|
||
mode: 'Mode',
|
||
pluginMode: 'Plugin mode',
|
||
host: 'Host',
|
||
client: 'Client',
|
||
authorization: 'Authorization',
|
||
account: 'Account',
|
||
hostRegistrationCode: 'One-time device authorization code',
|
||
ownedDeviceAuthorization: 'Owned device',
|
||
authorizedOn: '{role} is authorized on {serverUrl}.',
|
||
readOnly: 'This DSH profile does not provide writable user settings.',
|
||
discard: 'Discard',
|
||
save: 'Save',
|
||
saving: 'Saving…',
|
||
signOut: 'Sign out',
|
||
signingOut: 'Signing out…',
|
||
hostName: 'Host name',
|
||
deviceId: 'Device ID',
|
||
serverUrl: 'Server URL',
|
||
serverUrlHint: 'HTTPS origin used for account authorization and encrypted relay.',
|
||
serverSaved: 'Server address saved. Restart DSH to apply it.',
|
||
codexRemote: 'Codex Remote',
|
||
codexRemoteHint: 'Connect to CodeX projects on this Host.',
|
||
codexSaved: 'Codex Remote setting saved. Restart DSH to apply it.',
|
||
cursorRemote: 'Cursor ACP adapter (experimental)',
|
||
cursorRemoteHint: 'Enable the Cursor `agent acp` backend for the Agent ACP gateway. Requires local `agent login`. Restart DSH after changing this setting.',
|
||
cursorSaved: 'Cursor ACP adapter setting saved. Restart DSH to apply it.',
|
||
authorizeFromRemote: 'Sign in to manage this device and connect to your remote Hosts.',
|
||
signInAccount: 'Sign in',
|
||
saveServerBeforeSignIn: 'Save the Server address before signing in.',
|
||
authorizationMethod: 'Authorization method',
|
||
accountPassword: 'Account password',
|
||
registrationCode: 'Device authorization code',
|
||
registrationCodeHint: 'Generate it after signing in on the Server website. Use it once to connect this device.',
|
||
accountHint: 'The account must belong to the selected Server.',
|
||
password: 'Password',
|
||
passwordHint: 'Only DSH Remote Web or self-hosted service accounts; not DeepSeek Harness official.',
|
||
modeSavedNeedsAuthorization: 'Mode saved. Authorize {role} before connecting. Existing registrations were kept.',
|
||
modeSavedReused: 'Mode saved. Existing registration reused. Restart Harness to apply.',
|
||
modeSavedOwnedRole: 'Mode saved. This owned device was authorized automatically. Restart Harness to apply.',
|
||
enterRegistrationCode: 'Enter the device authorization code.',
|
||
enterAccountPassword: 'Enter the Server account and password.',
|
||
associationSaved: 'Associated. Restart Harness to apply.',
|
||
signedOut: 'Signed out and disconnected from Remote.',
|
||
remoteRequestFailed: 'Remote mode request failed.',
|
||
remoteControlUnavailable: 'Remote plugin control is still starting. Restart DSH if it stays unavailable.',
|
||
identityCorrupted: 'Local Remote identity is corrupted. Reset the identity in Settings to recover.',
|
||
credentialsCorrupted: 'Local Remote credentials are corrupted. Sign out or reset the identity in Settings to recover.',
|
||
identityLocked: 'Local Remote identity is locked by another process. Stop other DSH instances and retry.',
|
||
storageConflict: 'Conflicting or unverified legacy Remote storage found. Stop all DSH instances and inspect it manually.',
|
||
storageConflictEntry: 'Conflicting or unverified legacy Remote storage found. Unexpected entry "{name}" was found. Stop all DSH instances and inspect it manually.',
|
||
retryStartup: 'Retry Remote startup',
|
||
retryStartupSuccess: 'Remote startup completed.',
|
||
resetIdentity: 'Reset Remote Identity',
|
||
resetIdentityHint: 'Recreate local device key pairs if they are corrupted. You will need to sign in again.',
|
||
resetIdentityConfirm: 'Are you sure you want to reset the local Remote identity? You will need to sign in again.',
|
||
resetIdentitySuccess: 'Remote identity has been reset.',
|
||
resettingAction: 'Resetting…',
|
||
remoteStartupFailed: 'Remote plugin failed to start.',
|
||
switchTarget: 'Switch Local / Remote Harness target',
|
||
harnessTarget: 'Harness target',
|
||
close: 'Close',
|
||
refreshRemote: 'Refresh remote hosts',
|
||
refreshRemoteShort: 'Refresh',
|
||
local: 'Local',
|
||
remoteTarget: 'Remote · {name}',
|
||
remoteHostMention: 'Remote · {platform}',
|
||
thisMachineLocal: 'This machine (Local)',
|
||
currentDevice: 'Current device',
|
||
noRemoteHosts: 'No remote hosts are currently available.',
|
||
online: 'Online',
|
||
offline: 'Offline',
|
||
thisMachineHost: 'This machine as Remote Host',
|
||
connected: 'Connected',
|
||
connectedAs: 'Connected as {account}',
|
||
connection: 'Connection',
|
||
checkingConnection: 'Checking connection…',
|
||
connecting: 'Connecting',
|
||
reconnecting: 'Reconnecting',
|
||
lastActive: 'Last active: {time}',
|
||
neverConnected: 'No successful connection yet.',
|
||
reconnect: 'Reconnect',
|
||
reconnectingAction: 'Reconnecting…',
|
||
reconnectStarted: 'Reconnect requested.',
|
||
connectionAuthorizationExpired: 'Authorization expired. Sign out and authorize this Host again.',
|
||
connectionReplaced: 'Another instance is using this Host identity. Stop it or use a separate DSH_HOME before reconnecting.',
|
||
connectionCredentialsBusy: 'Credential refresh is busy. The Host will retry. Remove a legacy refresh lock only after every instance stops.',
|
||
connectionDeviceRevoked: 'This Host was revoked on the Server. Sign out and authorize it again.',
|
||
connectionOwnershipRequired: 'The Server no longer recognizes this Host as an owned device.',
|
||
connectionRateLimited: 'The Server is receiving too many requests. Automatic retry will continue.',
|
||
connectionVersionMismatch: 'The Plugin and Server protocol versions are incompatible.',
|
||
connectionInvalidResponse: 'The Server returned an invalid control message.',
|
||
connectionReachability: 'Cannot reach the Server. Check the network and Server address.',
|
||
connectionUnexpected: 'The connection stopped unexpectedly. Automatic retry will continue.',
|
||
hostSignInHint: 'Sign in to authorize this Host on the selected Server.',
|
||
checkingHost: 'Checking Host registration…',
|
||
hostUnavailable: 'Host unavailable: {error}',
|
||
serverAccountEmail: 'Server account email',
|
||
serverAccountPassword: 'Server account password',
|
||
signInRegisterHost: 'Sign in and register Host',
|
||
signingIn: 'Signing in…',
|
||
loginWaitingAuthorization: 'Waiting for authorization',
|
||
loginLoadingDevices: 'Signed in. Loading devices',
|
||
loginLoadingSettings: 'Signed in. Loading settings',
|
||
useRegistrationCode: 'Use connection code',
|
||
registering: 'Registering…',
|
||
remoteEntry: 'Remote',
|
||
remoteTitle: 'DS Harness Remote - Remote Workspace',
|
||
remoteDescription: 'Choose one of your Hosts, then select a working directory. The Harness interface stays on this device.',
|
||
starProject: 'Open source project, stars welcome~',
|
||
chooseHost: 'Host',
|
||
manageHosts: 'Manage Hosts',
|
||
chooseDirectory: 'Working directory',
|
||
selectHostHint: 'Select an online Host to browse its directories.',
|
||
emptyDirectory: 'This directory has no visible subdirectories.',
|
||
openWorkspace: 'Open workspace',
|
||
openingWorkspace: 'Opening…',
|
||
loadingDirectory: 'Loading directories…',
|
||
remoteProgressCheckingHost: 'Checking Host',
|
||
remoteProgressCheckingHostDetail: 'Finding the selected device and checking whether it is online.',
|
||
remoteProgressAuthorizingPeer: 'Verifying authorization',
|
||
remoteProgressAuthorizingPeerDetail: 'Confirming account membership and pinned Host identity.',
|
||
remoteProgressOpeningChannel: 'Opening encrypted channel',
|
||
remoteProgressOpeningChannelDetail: 'Trying LAN, P2P, TURN, then Relay if needed.',
|
||
remoteProgressProbeLan: 'Probing LAN',
|
||
remoteProgressProbeLanDetail: 'Checking whether the Host is reachable on the local network.',
|
||
remoteProgressProbeP2p: 'Probing P2P',
|
||
remoteProgressProbeP2pDetail: 'Checking direct internet candidates between this device and the Host.',
|
||
remoteProgressProbeTurn: 'Probing TURN',
|
||
remoteProgressProbeTurnDetail: 'Checking the TURN relay path for restricted networks.',
|
||
remoteProgressProbeRelay: 'Preparing Relay',
|
||
remoteProgressProbeRelayDetail: 'Preparing the encrypted Server Relay fallback if direct paths do not open.',
|
||
remoteProgressTryingPrefix: 'Trying ',
|
||
remoteProgressUsingPrefix: 'Using ',
|
||
remoteProgressLoadingWorkspaces: 'Loading workspaces',
|
||
remoteProgressLoadingWorkspacesDetail: 'Reading the remote Harness workspace list through the tunnel.',
|
||
remoteProgressSwitchingWorkspace: 'Switching interface',
|
||
remoteProgressSwitchingWorkspaceDetail: 'Handing the remote workspace to the local Harness UI.',
|
||
remoteProgressReady: 'Ready',
|
||
remoteProgressReadyDetail: 'The remote Host is connected and encrypted.',
|
||
backToHosts: 'Choose another Host',
|
||
currentDirectory: 'Selected directory',
|
||
directoryTruncated: 'Only part of this directory could be shown.',
|
||
pluginVersion: 'Plugin {version}',
|
||
harnessVersion: 'Harness {version}',
|
||
updateAvailable: '⬆ Remote {latest} is available (current {current})',
|
||
updateShort: '⬆ {version}',
|
||
updateAvailableShort: '{version} available',
|
||
updateBadge: 'Update available',
|
||
updateAvailableTag: '⬆ Update available',
|
||
existingWorkspaces: 'DSH workspaces',
|
||
remotePathPlaceholder: '/home/user/project',
|
||
remotePathHint: 'Enter an absolute directory path on the selected Host.',
|
||
noRemoteWorkspaces: 'No remote workspaces yet. Use + to add one.',
|
||
activeRemote: '{name}',
|
||
exitRemote: 'Exit',
|
||
addRemoteWorkspace: 'Add remote workspace',
|
||
addCodexWorkspace: 'Add CodeX workspace',
|
||
addCursorWorkspace: 'Add Cursor workspace',
|
||
addAntigravityWorkspace: 'Add Antigravity workspace',
|
||
addPiWorkspace: 'Add Pi workspace',
|
||
addOpencodeWorkspace: 'Add OpenCode workspace',
|
||
addClaudeWorkspace: 'Add Claude workspace',
|
||
addHermesWorkspace: 'Add Hermes workspace',
|
||
noCodexWorkspaces: 'No CodeX workspaces yet.',
|
||
noCursorWorkspaces: 'No Cursor workspaces yet. Add a project directory to start.',
|
||
noAntigravityWorkspaces: 'No Antigravity workspaces yet. Add a project directory to start.',
|
||
noPiWorkspaces: 'No Pi workspaces yet. Add a project directory to start.',
|
||
noOpencodeWorkspaces: 'No OpenCode workspaces yet. Add a project directory to start.',
|
||
noClaudeWorkspaces: 'No Claude workspaces yet. Add a project directory to start.',
|
||
noHermesWorkspaces: 'No Hermes workspaces yet. Add a project directory to start.',
|
||
cancelAddWorkspace: 'Cancel',
|
||
confirmAddWorkspace: 'Add and open',
|
||
showAllWorkspaces: 'Show all DSH workspaces',
|
||
showAllCodexWorkspaces: 'Show all CodeX workspaces',
|
||
showAllCursorWorkspaces: 'Show all Cursor workspaces',
|
||
showAllAntigravityWorkspaces: 'Show all Antigravity workspaces',
|
||
showAllPiWorkspaces: 'Show all Pi workspaces',
|
||
showAllOpencodeWorkspaces: 'Show all OpenCode workspaces',
|
||
showAllClaudeWorkspaces: 'Show all Claude workspaces',
|
||
showAllHermesWorkspaces: 'Show all Hermes workspaces',
|
||
remoteModeLabel: 'Remote mode · {name}',
|
||
remoteNetworkP2p: 'P2P',
|
||
remoteNetworkTurn: 'TURN',
|
||
remoteNetworkRelay: 'Relay',
|
||
remoteNetworkLan: 'LAN',
|
||
remoteNetworkOffline: 'Disconnected',
|
||
clientSignInAgain: 'Authorization expired · Sign in again',
|
||
remoteLinkEncrypted: 'End-to-end encrypted',
|
||
connectionRouteTitle: 'Connection route',
|
||
connectionRouteFrom: 'From',
|
||
connectionRouteVia: 'Via',
|
||
connectionRouteTo: 'To',
|
||
connectionRouteCurrentDevice: 'This device',
|
||
connectionRouteLan: 'Local network',
|
||
connectionRouteP2p: 'Direct internet path',
|
||
connectionRouteTurn: 'TURN relay service',
|
||
connectionRouteRelay: 'Remote Server',
|
||
connectionRouteHost: 'Work computer running Harness',
|
||
connectionRouteLanDetail: 'Direct transfer over the local network',
|
||
connectionRouteP2pDetail: 'Direct transfer over the internet',
|
||
connectionRouteTurnDetail: 'Encrypted transfer through the TURN service',
|
||
connectionRouteRelayDetail: 'Encrypted transfer through the Remote Server',
|
||
connectionRouteEncrypted: 'Application data remains end-to-end encrypted along this route.',
|
||
connectionDetailsConnection: 'Connection',
|
||
connectionDetailsWebRtc: 'Network details · WebRTC / ICE',
|
||
connectionId: 'Connection ID',
|
||
connectedAt: 'Established',
|
||
preferredTransports: 'Attempt order',
|
||
controlChannel: 'Control channel',
|
||
controlAddress: 'Control address',
|
||
serverUnavailableError: 'Service unavailable. Please try again later.',
|
||
connectionHoldCountdown: 'Connection expires in {seconds}s',
|
||
serverUnavailableCountdown: 'Service unavailable · Connection expires in {seconds}s',
|
||
unavailable: 'Unavailable',
|
||
serverUnavailableShort: 'Service unavailable',
|
||
serverUnavailable: 'Server unavailable. Reconnecting.',
|
||
serverUnavailableConnected: 'Server unavailable. Device link active. Reconnecting.',
|
||
serverLeaseExpiring: 'Connection expires in {seconds}s.',
|
||
serverRestored: 'Server restored.',
|
||
serverLinkDisconnected: 'Connection lost.',
|
||
controlStateConnecting: 'Connecting',
|
||
controlStateOpen: 'Connected',
|
||
controlStateClosing: 'Closing',
|
||
controlStateClosed: 'Closed',
|
||
peerState: 'Peer connection',
|
||
dataChannel: 'DataChannel',
|
||
localCandidate: 'Local candidate',
|
||
remoteCandidate: 'Remote candidate',
|
||
localAddress: 'Local address',
|
||
remoteAddress: 'Remote address',
|
||
networkProtocol: 'Network protocol',
|
||
relayProtocol: 'TURN protocol',
|
||
roundTripTime: 'Round-trip time',
|
||
availableBitrate: 'Available outgoing bitrate',
|
||
bytesSent: 'WebRTC bytes sent',
|
||
bytesReceived: 'WebRTC bytes received',
|
||
notProvided: 'Not provided',
|
||
candidateHost: 'Local address · host',
|
||
candidateSrflx: 'Public address · srflx',
|
||
candidatePrflx: 'Peer address · prflx',
|
||
candidateRelay: 'TURN address · relay',
|
||
openLocalWorkspaces: 'Open local workspaces',
|
||
clientSignInHint: 'Sign in to this Server to list your remote Hosts.',
|
||
signInClient: 'DS Harness Remote:',
|
||
signInClientDescription: 'Connect once. Available anytime.',
|
||
startSignIn: 'Start sign-in',
|
||
allowControlCurrentDevice: 'Allow control of this device',
|
||
allowControlDevice: 'Allow control of this device',
|
||
liteMode: 'Fast mode',
|
||
forceRelay: 'Force relay',
|
||
forceRelayHint: 'Skip LAN, internet-direct and TURN probing and connect straight through the encrypted relay. Faster first connection and reconnects, but all traffic goes through the server.',
|
||
liteModeHint: 'Send remote clients only what they need: the first history page keeps the latest 10 messages, tool details are compacted, and oversized plugin projections (such as the Context panel) are dropped, so that data is not available remotely. On by default; turn it off for the full history. Applies immediately. A remote client can ask the agent to flip it in chat, e.g. "turn on the fast mode switch of the ds-harness-remote-fast plugin".',
|
||
connectedClientCount: '{count} connected',
|
||
checkAcp: 'Check backend',
|
||
checkingAcp: 'Checking ACP…',
|
||
acpAvailable: 'ACP available',
|
||
acpUnavailable: 'ACP unavailable',
|
||
agentBackends: 'More Coding Agents',
|
||
acpDocumentation: 'Read the documentation.',
|
||
acpHint: 'Connect through ACP. ',
|
||
acpCheckPassed: 'Check passed',
|
||
acpCheckFailed: 'Check failed',
|
||
installOrConfigureAcp: 'Install / Configure',
|
||
configureAcp: 'Auto-configure',
|
||
installAcp: 'Install & Configure',
|
||
installingAcp: 'Configuring…',
|
||
acpConfiguredNotice: 'ACP backend automatically configured and enabled.',
|
||
acpInstalledNotice: 'ACP backend installed and enabled.',
|
||
acpDownloadRequired: 'Please download and install {backend} first: {url}',
|
||
addAcp: 'Add ACP',
|
||
acpName: 'Service name',
|
||
acpCommand: 'Command',
|
||
acpArguments: 'Arguments',
|
||
removeAcp: 'Remove',
|
||
currentConnectedDevices: 'Currently connected devices',
|
||
noConnectedClients: 'No devices are currently connected to this Host.',
|
||
unknownDevice: 'Unknown device',
|
||
exitRemoteAccount: 'Sign out',
|
||
githubLogin: 'Github',
|
||
providerLogin: '{provider}',
|
||
scanWithProvider: 'Scan to continue with {provider}',
|
||
loadingLoginProviders: 'Loading sign-in methods…',
|
||
retryLoginProviders: 'Retry loading sign-in methods',
|
||
serverApplied: 'Server address applied.',
|
||
noLoginProviders: 'QR sign-in is unavailable. Use email and password.',
|
||
zhihuLogin: 'Zhihu',
|
||
scanWithGitHub: 'Scan to continue with GitHub',
|
||
scanWithZhihu: 'Scan to continue with Zhihu',
|
||
openInBrowser: 'Continue in browser',
|
||
scanLoginHint: 'Authorize on your phone. This window will continue automatically.',
|
||
currentServiceAddress: 'Authorization service domain:',
|
||
editServiceAddress: 'Edit service address',
|
||
restoreDefaultServiceAddress: 'Restore default',
|
||
cancelServiceAddressEdit: 'Cancel',
|
||
accountPasswordLogin: 'Password',
|
||
qrLoginExpired: 'This QR code expired. Refresh it to continue.',
|
||
refreshQrCode: 'Refresh QR code',
|
||
codexVirtualWorkspace: 'CodeX virtual workspace',
|
||
cursorVirtualWorkspace: 'Cursor virtual workspace',
|
||
antigravityVirtualWorkspace: 'Antigravity virtual workspace',
|
||
piVirtualWorkspace: 'Pi virtual workspace',
|
||
opencodeVirtualWorkspace: 'OpenCode virtual workspace',
|
||
claudeVirtualWorkspace: 'Claude virtual workspace',
|
||
hermesVirtualWorkspace: 'Hermes virtual workspace',
|
||
codexVirtualSessions: 'Sessions',
|
||
} as const
|
||
|
||
export const zh: Record<keyof typeof en, string> = {
|
||
serverSavedLive: '服务器地址已保存并生效。',
|
||
saveServerBeforeLogin: '请先保存服务器地址,再继续登录或配对。',
|
||
pairingLoginTab: 'DSH Go',
|
||
pairingTitle: "与 DSH Go 配对",
|
||
pairingHint: "请使用 DSH Go 扫码并在手机上确认。\n当前主机仅被控,如需要主控请使用其他登录方式。",
|
||
pairingHostOnly: "此授权主机只允许被控,无法控制其他设备。",
|
||
pairingSaveServer: "请先保存服务器地址,再开始配对。",
|
||
pairingScan: "请使用 DSH Go 扫码并在手机上确认。\n当前主机仅被控,如需要主控请使用其他登录方式。",
|
||
pairingEnter: "请核实申请手机",
|
||
pairingComplete: "配对完成,DSH Go 现在可以连接此 Host。",
|
||
pairingPending: "请恢复原提交结果,不要更换验证码。",
|
||
pairingClosed: "配对已结束,请重新生成二维码。",
|
||
pairingQr: "DSH Go 一次性配对二维码",
|
||
pairingExpires: "剩余 {time}",
|
||
pairingExpired: "已过期",
|
||
pairingCode: "手机显示的 8 位验证码",
|
||
pairingWarning: "仅允许提交一次。验证码错误后,本二维码立即失效,必须重新扫码。",
|
||
pairingConfirm: "确认绑定",
|
||
pairingRetry: "恢复原提交结果",
|
||
pairingCancel: "取消配对",
|
||
pairingStart: "生成配对二维码",
|
||
pairingBusy: "请稍候…",
|
||
pairingUnsupported: "当前服务器不支持设备扫码配对。",
|
||
pairingError: "暂时无法完成配对,请检查网络。\n若已提交验证码,请恢复原提交,不要更换验证码。",
|
||
|
||
remoteTools: '注入 Remote Tools',
|
||
remoteToolsHint: '在会话中注入 remote_* 工具。默认开启;不需要时可关闭,重启 Host 后生效。',
|
||
remoteToolsSaved: 'Remote Tools 设置已保存。',
|
||
debugLogging: 'Debug 日志',
|
||
debugLoggingHint: '在 Host 日志中记录详细连接诊断,立即生效;排查完成后可关闭。',
|
||
terminalRemote: '远程终端',
|
||
terminalRemoteHint: '允许受信任的 Remote 设备以此 Host 用户身份运行交互式 Shell。默认开启,独立于 Agent 审批;切换后立即保存并生效。',
|
||
terminalRemoteUnavailable: '远程终端不可用。请在 Host 的 Remote 设置中开启「远程终端」,开关会立即生效。',
|
||
terminalSaved: '远程终端设置已保存,立即生效。',
|
||
sidebarEntry: '侧栏入口样式',
|
||
sidebarEntryHint: '「标准」把 Remote 按钮留在侧栏底部;「简洁」把它收进账号行右侧,只显示图标。切换后立即生效。',
|
||
sidebarEntryStandard: '标准',
|
||
sidebarEntryCompact: '简洁',
|
||
sidebarEntrySaved: '侧栏入口样式已保存。',
|
||
previewOpen: '预览服务',
|
||
previewPort: 'Host 端口',
|
||
previewLocalOnly: '预览需要 Desktop,或连接到本机 Harness 的浏览器。',
|
||
settings: '设置',
|
||
|
||
pluginTitle: 'DeepSeek 远程连接',
|
||
pluginDescription: '基于 P2P 网络,使用端到端加密远程访问 DeepSeek Harness、CodeX、Claude Code、Pi 等工作区,支持Web和移动端。',
|
||
openPluginSettings: '远程设置',
|
||
expandSettings: '展开设置:{name}',
|
||
collapseSettings: '收起设置:{name}',
|
||
unsaved: '未保存',
|
||
associated: '已授权',
|
||
authorizationComplete: '已完成授权',
|
||
loadingSettings: '正在加载 DeepSeek 远程连接设置…',
|
||
mode: '模式',
|
||
pluginMode: '插件模式',
|
||
host: '主机',
|
||
client: 'Client',
|
||
authorization: '授权',
|
||
account: '账号',
|
||
hostRegistrationCode: '一次性设备授权码',
|
||
ownedDeviceAuthorization: '自有设备',
|
||
authorizedOn: '{role}已经在 {serverUrl} 完成授权。',
|
||
readOnly: '此 DSH profile 不提供可写的用户设置。',
|
||
discard: '放弃修改',
|
||
save: '保存',
|
||
saving: '保存中…',
|
||
signOut: '退出授权',
|
||
signingOut: '正在退出…',
|
||
hostName: '主机名称',
|
||
deviceId: '设备 ID',
|
||
serverUrl: 'Server 地址',
|
||
serverUrlHint: '用于账号授权和加密中继的 HTTPS 地址。',
|
||
serverSaved: 'Server 地址已保存,重启 DSH 后生效。',
|
||
codexRemote: 'Codex Remote',
|
||
codexRemoteHint: '连接这台 Host 上的 CodeX 项目。',
|
||
codexSaved: 'Codex Remote 设置已保存,重启 DSH 后生效。',
|
||
cursorRemote: 'Cursor ACP adapter(实验性)',
|
||
cursorRemoteHint: '为 Agent ACP gateway 启用 Cursor `agent acp` backend。需本机完成 `agent login`。修改后需重启 DSH 生效。',
|
||
cursorSaved: 'Cursor ACP adapter 设置已保存,重启 DSH 后生效。',
|
||
authorizeFromRemote: '登录后可管理当前设备,并连接账号下的远程主机。',
|
||
signInAccount: '登录账号',
|
||
saveServerBeforeSignIn: '请先保存 Server 地址,再登录账号。',
|
||
authorizationMethod: '授权方式',
|
||
accountPassword: '账号密码',
|
||
registrationCode: '设备授权码',
|
||
registrationCodeHint: '登录 Server 网页后生成,用一次即可连接这台设备。',
|
||
accountHint: '账号必须属于所选 Server。',
|
||
password: '密码',
|
||
passwordHint: '仅限DSH Remote Web账号或自托管服务账号,非 DeepSeek Harness官方。',
|
||
modeSavedNeedsAuthorization: '模式已保存。连接前请先授权 {role};已有注册信息已保留。',
|
||
modeSavedReused: '模式已保存并复用已有注册信息。重启 Harness 后生效。',
|
||
modeSavedOwnedRole: '模式已保存,并已自动授权此自有设备。重启 Harness 后生效。',
|
||
enterRegistrationCode: '请输入设备授权码。',
|
||
enterAccountPassword: '请输入 Server 账号和密码。',
|
||
associationSaved: '关联成功。重启 Harness 后生效。',
|
||
signedOut: '已退出账号并断开 Remote 连接。',
|
||
remoteRequestFailed: '远程模式请求失败。',
|
||
remoteControlUnavailable: 'Remote 插件控制通道仍在启动;如果一直不可用,请重启 DSH。',
|
||
identityCorrupted: '本机 Remote 身份文件损坏,请在设置中重置身份。',
|
||
credentialsCorrupted: '本机 Remote 登录凭据已损坏,请在设置中退出账号或重置身份。',
|
||
identityLocked: '本机 Remote 身份正被其他进程占用,请完全退出其他 DSH 实例后重试。',
|
||
storageConflict: '检测到冲突或无法确认归属的旧版 Remote 存储目录,请停止所有 DSH 实例后手动检查处理。',
|
||
storageConflictEntry: '检测到冲突或无法确认归属的旧版 Remote 存储目录,发现异常文件“{name}”。请停止所有 DSH 实例后手动检查处理。',
|
||
retryStartup: '重试启动 Remote',
|
||
retryStartupSuccess: 'Remote 已成功启动。',
|
||
resetIdentity: '重置本机 Remote 身份',
|
||
resetIdentityHint: '当本机身份密钥对损坏时重建身份。重置后需要重新登录。',
|
||
resetIdentityConfirm: '确定要重置本机 Remote 身份吗?重置后需要重新登录。',
|
||
resetIdentitySuccess: '本机 Remote 身份已重置。',
|
||
resettingAction: '正在重置…',
|
||
remoteStartupFailed: 'Remote 插件启动失败。',
|
||
switchTarget: '切换本地或远程 Harness',
|
||
harnessTarget: 'Harness 目标',
|
||
close: '关闭',
|
||
refreshRemote: '刷新远程主机',
|
||
refreshRemoteShort: '刷新',
|
||
local: '本地',
|
||
remoteTarget: '远程 · {name}',
|
||
remoteHostMention: 'Remote · {platform}',
|
||
thisMachineLocal: '此设备(本地)',
|
||
currentDevice: '当前设备',
|
||
noRemoteHosts: '当前无可用的远程主机。',
|
||
online: '在线',
|
||
offline: '离线',
|
||
thisMachineHost: '将此设备作为远程 Host',
|
||
connected: '已连接',
|
||
connectedAs: '已使用 {account} 连接',
|
||
connection: '连接状态',
|
||
checkingConnection: '正在检查连接…',
|
||
connecting: '正在连接',
|
||
reconnecting: '正在重连',
|
||
lastActive: '最后活跃:{time}',
|
||
neverConnected: '尚未成功连接过。',
|
||
reconnect: '手动重连',
|
||
reconnectingAction: '正在重连…',
|
||
reconnectStarted: '已发起重连。',
|
||
connectionAuthorizationExpired: '授权已失效,请退出授权后重新连接此 Host。',
|
||
connectionReplaced: '另一实例正在使用此 Host 身份。请停止该实例,或使用独立的 DSH_HOME 后重新连接。',
|
||
connectionCredentialsBusy: '凭据刷新正忙,主机将重试。只有停止所有实例后,才能移除旧版残留的刷新锁。',
|
||
connectionDeviceRevoked: '此 Host 已在 Server 上被撤销,请退出授权后重新连接。',
|
||
connectionOwnershipRequired: 'Server 已不再将此 Host 识别为当前账号的设备。',
|
||
connectionRateLimited: 'Server 请求过多,插件将继续自动重试。',
|
||
connectionVersionMismatch: 'Plugin 与 Server 的协议版本不兼容。',
|
||
connectionInvalidResponse: 'Server 返回了无效的控制消息。',
|
||
connectionReachability: '无法连接 Server,请检查网络和 Server 地址。',
|
||
connectionUnexpected: '连接意外中断,插件将继续自动重试。',
|
||
hostSignInHint: '登录后在所选 Server 上授权此 Host。',
|
||
checkingHost: '正在检查 Host 注册状态…',
|
||
hostUnavailable: 'Host 不可用:{error}',
|
||
serverAccountEmail: 'Server 账号邮箱',
|
||
serverAccountPassword: 'Server 账号密码',
|
||
signInRegisterHost: '登录并注册 Host',
|
||
signingIn: '正在登录…',
|
||
loginWaitingAuthorization: '正在等待授权结果',
|
||
loginLoadingDevices: '登录成功,正在加载设备',
|
||
loginLoadingSettings: '登录成功,正在加载设置',
|
||
useRegistrationCode: '使用连接码',
|
||
registering: '正在注册…',
|
||
remoteEntry: 'Remote',
|
||
remoteTitle: 'DS Harness Remote - 远程工作台',
|
||
remoteDescription: '选择想要连接主机和工作目录。',
|
||
starProject: '开源项目,欢迎Star~',
|
||
chooseHost: '主机',
|
||
manageHosts: '管理设备',
|
||
chooseDirectory: '工作目录',
|
||
selectHostHint: '选择一台在线主机以浏览其目录。',
|
||
emptyDirectory: '这个目录下没有可见的子目录。',
|
||
openWorkspace: '打开工作区',
|
||
openingWorkspace: '正在打开…',
|
||
loadingDirectory: '正在加载目录…',
|
||
remoteProgressCheckingHost: '正在检查 Host',
|
||
remoteProgressCheckingHostDetail: '正在查找所选设备并确认是否在线。',
|
||
remoteProgressAuthorizingPeer: '正在验证授权',
|
||
remoteProgressAuthorizingPeerDetail: '正在确认账号成员关系和已固定的 Host 身份。',
|
||
remoteProgressOpeningChannel: '正在建立加密通道',
|
||
remoteProgressOpeningChannelDetail: '依次尝试局域网、P2P、TURN,必要时回落到 Relay。',
|
||
remoteProgressProbeLan: '正在探测局域网',
|
||
remoteProgressProbeLanDetail: '检查当前设备是否能通过本地网络直连 Host。',
|
||
remoteProgressProbeP2p: '正在探测 P2P',
|
||
remoteProgressProbeP2pDetail: '检查当前设备和 Host 之间的互联网直连候选路径。',
|
||
remoteProgressProbeTurn: '正在探测 TURN',
|
||
remoteProgressProbeTurnDetail: '检查受限网络下可用的 TURN 中继路径。',
|
||
remoteProgressProbeRelay: '正在准备 Relay',
|
||
remoteProgressProbeRelayDetail: '如果直连路径未打开,将回落到加密的 Server Relay。',
|
||
remoteProgressTryingPrefix: '正在尝试 ',
|
||
remoteProgressUsingPrefix: '已连接 ',
|
||
remoteProgressLoadingWorkspaces: '正在加载工作区',
|
||
remoteProgressLoadingWorkspacesDetail: '通过隧道读取远端 Harness 工作区列表。',
|
||
remoteProgressSwitchingWorkspace: '正在切换界面',
|
||
remoteProgressSwitchingWorkspaceDetail: '正在把远端工作区交给本地 Harness UI。',
|
||
remoteProgressReady: '已就绪',
|
||
remoteProgressReadyDetail: '远端 Host 已连接,端到端加密已建立。',
|
||
backToHosts: '选择其他主机',
|
||
currentDirectory: '已选目录',
|
||
directoryTruncated: '目录内容较多,目前只显示了一部分。',
|
||
pluginVersion: '插件 {version}',
|
||
harnessVersion: 'Harness {version}',
|
||
updateAvailable: '⬆ Remote {latest} 可用(当前 {current})',
|
||
updateShort: '⬆ {version}',
|
||
updateAvailableShort: '{version} 可用',
|
||
updateBadge: '有可用更新',
|
||
updateAvailableTag: '⬆ 可更新',
|
||
existingWorkspaces: 'DSH 工作区',
|
||
remotePathPlaceholder: '/home/user/project',
|
||
remotePathHint: '输入所选主机上的绝对目录路径。',
|
||
noRemoteWorkspaces: '这台主机还没有工作区,点击 + 添加。',
|
||
activeRemote: '{name}',
|
||
exitRemote: '退出',
|
||
addRemoteWorkspace: '添加远程工作区',
|
||
addCodexWorkspace: '添加 CodeX 工作区',
|
||
addCursorWorkspace: '添加 Cursor 工作区',
|
||
addAntigravityWorkspace: '添加 Antigravity 工作区',
|
||
addPiWorkspace: '添加 Pi 工作区',
|
||
addOpencodeWorkspace: '添加 OpenCode 工作区',
|
||
addClaudeWorkspace: '添加 Claude 工作区',
|
||
addHermesWorkspace: '添加 Hermes 工作区',
|
||
noCodexWorkspaces: '还没有 CodeX 工作区。',
|
||
noCursorWorkspaces: '还没有 Cursor 工作区。添加项目目录即可开始。',
|
||
noAntigravityWorkspaces: '还没有 Antigravity 工作区。添加项目目录即可开始。',
|
||
noPiWorkspaces: '还没有 Pi 工作区。添加项目目录即可开始。',
|
||
noOpencodeWorkspaces: '还没有 OpenCode 工作区。添加项目目录即可开始。',
|
||
noClaudeWorkspaces: '还没有 Claude 工作区。添加项目目录即可开始。',
|
||
noHermesWorkspaces: '还没有 Hermes 工作区。添加项目目录即可开始。',
|
||
cancelAddWorkspace: '取消',
|
||
confirmAddWorkspace: '确认并打开',
|
||
showAllWorkspaces: '显示全部 DSH 工作区',
|
||
showAllCodexWorkspaces: '显示全部 CodeX 工作区',
|
||
showAllCursorWorkspaces: '显示全部 Cursor 工作区',
|
||
showAllAntigravityWorkspaces: '显示全部 Antigravity 工作区',
|
||
showAllPiWorkspaces: '显示全部 Pi 工作区',
|
||
showAllOpencodeWorkspaces: '显示全部 OpenCode 工作区',
|
||
showAllClaudeWorkspaces: '显示全部 Claude 工作区',
|
||
showAllHermesWorkspaces: '显示全部 Hermes 工作区',
|
||
remoteModeLabel: '远程模式 · {name}',
|
||
remoteNetworkP2p: 'P2P',
|
||
remoteNetworkTurn: 'TURN',
|
||
remoteNetworkRelay: '中继',
|
||
remoteNetworkLan: '局域网',
|
||
remoteNetworkOffline: '已断开',
|
||
clientSignInAgain: '授权已失效 · 重新登录',
|
||
remoteLinkEncrypted: '端到端加密',
|
||
connectionRouteTitle: '连接线路',
|
||
connectionRouteFrom: '起点',
|
||
connectionRouteVia: '经过',
|
||
connectionRouteTo: '终点',
|
||
connectionRouteCurrentDevice: '当前设备',
|
||
connectionRouteLan: '同一局域网',
|
||
connectionRouteP2p: '互联网直连',
|
||
connectionRouteTurn: 'TURN 中继服务',
|
||
connectionRouteRelay: 'Remote Server',
|
||
connectionRouteHost: '运行 Harness 的工作电脑',
|
||
connectionRouteLanDetail: '在本地网络中直接传输',
|
||
connectionRouteP2pDetail: '通过互联网直接传输',
|
||
connectionRouteTurnDetail: '通过 TURN 服务转发加密数据',
|
||
connectionRouteRelayDetail: '通过 Remote Server 转发加密数据',
|
||
connectionRouteEncrypted: '线路上的业务数据保持端到端加密。',
|
||
connectionDetailsConnection: '连接',
|
||
connectionDetailsWebRtc: '网络详情 · WebRTC / ICE',
|
||
connectionId: '连接编号',
|
||
connectedAt: '建立时间',
|
||
preferredTransports: '尝试顺序',
|
||
controlChannel: '控制通道',
|
||
controlAddress: '控制地址',
|
||
serverUnavailableError: '服务暂不可用,请稍后重试。',
|
||
connectionHoldCountdown: '连接剩余 {seconds} 秒',
|
||
serverUnavailableCountdown: '服务不可用 · 连接剩余 {seconds} 秒',
|
||
unavailable: '不可用',
|
||
serverUnavailableShort: '服务不可用',
|
||
serverUnavailable: 'Server 暂不可用,正在重连。',
|
||
serverUnavailableConnected: 'Server 暂不可用,设备通信正常,正在重连。',
|
||
serverLeaseExpiring: '连接将在 {seconds} 秒后失效。',
|
||
serverRestored: 'Server 已恢复。',
|
||
serverLinkDisconnected: '连接已断开。',
|
||
controlStateConnecting: '连接中',
|
||
controlStateOpen: '已连接',
|
||
controlStateClosing: '正在关闭',
|
||
controlStateClosed: '已关闭',
|
||
peerState: '连接状态',
|
||
dataChannel: 'DataChannel',
|
||
localCandidate: '本地候选',
|
||
remoteCandidate: '远端候选',
|
||
localAddress: '本地地址',
|
||
remoteAddress: '远端地址',
|
||
networkProtocol: '传输协议',
|
||
relayProtocol: 'TURN 协议',
|
||
roundTripTime: '往返时延',
|
||
availableBitrate: '可用上行带宽',
|
||
bytesSent: 'WebRTC 已发送',
|
||
bytesReceived: 'WebRTC 已接收',
|
||
notProvided: '未提供',
|
||
candidateHost: '本地地址 · host',
|
||
candidateSrflx: '公网地址 · srflx',
|
||
candidatePrflx: '对端地址 · prflx',
|
||
candidateRelay: 'TURN 地址 · relay',
|
||
openLocalWorkspaces: '打开本地工作区',
|
||
clientSignInHint: '登录 Server 后即可查看自己的远端主机。',
|
||
signInClient: 'DS Harness Remote:',
|
||
signInClientDescription: '一次连接,随时可用。',
|
||
startSignIn: '开始登录',
|
||
allowControlCurrentDevice: '允许控制本机',
|
||
allowControlDevice: '允许控制本机',
|
||
liteMode: '极速模式',
|
||
forceRelay: '强制中继',
|
||
forceRelayHint: '跳过局域网、互联网直连和 TURN 探测,直接走加密中继。首次连接与断线重连更快,但流量会经过服务器。',
|
||
liteModeHint: '只向远端推送必要数据:历史仅保留最近 10 条、工具详情做压缩,并丢弃体积较大的插件投影(如上下文面板),远端看不到这些插件数据。默认开启,关掉可获取完整历史。本开关切换后立即生效,远端访问可以在对话中要求 agent 打开或者关闭,比如「打开 ds-harness-remote-fast 插件的极速模式开关」。',
|
||
connectedClientCount: '{count} 台已连接',
|
||
checkAcp: '检测后端',
|
||
checkingAcp: '正在检测 ACP…',
|
||
acpAvailable: 'ACP 可用',
|
||
acpUnavailable: 'ACP 不可用',
|
||
agentBackends: '更多 Coding Agent',
|
||
acpDocumentation: '详细请查阅。',
|
||
acpHint: '通过 ACP 统一接入,',
|
||
acpCheckPassed: '检测通过',
|
||
acpCheckFailed: '检测失败',
|
||
installOrConfigureAcp: '一键配置/安装',
|
||
configureAcp: '自动扫描配置',
|
||
installAcp: '一键安装配置',
|
||
installingAcp: '正在配置…',
|
||
acpConfiguredNotice: '已自动定位并启用 ACP 后端。',
|
||
acpInstalledNotice: '已完成静默安装并自动启用。',
|
||
acpDownloadRequired: '请先下载安装 {backend}:{url}',
|
||
addAcp: '添加 ACP',
|
||
acpName: '服务名称',
|
||
acpCommand: '启动命令',
|
||
acpArguments: '命令参数',
|
||
removeAcp: '移除',
|
||
currentConnectedDevices: '当前连接的设备',
|
||
noConnectedClients: '目前没有设备连接到这台主机。',
|
||
unknownDevice: '未知设备',
|
||
exitRemoteAccount: '退出账号',
|
||
githubLogin: 'Github',
|
||
providerLogin: '{provider}',
|
||
scanWithProvider: '使用 {provider} 扫码登录',
|
||
loadingLoginProviders: '正在获取登录方式…',
|
||
retryLoginProviders: '重新获取登录方式',
|
||
serverApplied: 'Server 地址已生效。',
|
||
noLoginProviders: '暂无可用的扫码登录方式,请使用邮箱和密码。',
|
||
zhihuLogin: '知乎',
|
||
scanWithGitHub: '使用 GitHub 扫码登录',
|
||
scanWithZhihu: '使用知乎扫码登录',
|
||
openInBrowser: '在浏览器中继续',
|
||
scanLoginHint: '请在手机上完成授权,此窗口会自动继续。',
|
||
currentServiceAddress: '授权服务域名:',
|
||
editServiceAddress: '修改服务地址',
|
||
restoreDefaultServiceAddress: '恢复默认',
|
||
cancelServiceAddressEdit: '取消',
|
||
accountPasswordLogin: '账号密码',
|
||
qrLoginExpired: '二维码已过期,请刷新后重试。',
|
||
refreshQrCode: '刷新二维码',
|
||
codexVirtualWorkspace: 'CodeX 工作区',
|
||
cursorVirtualWorkspace: 'Cursor 工作区',
|
||
antigravityVirtualWorkspace: 'Antigravity 工作区',
|
||
piVirtualWorkspace: 'Pi 工作区',
|
||
opencodeVirtualWorkspace: 'OpenCode 工作区',
|
||
claudeVirtualWorkspace: 'Claude 工作区',
|
||
hermesVirtualWorkspace: 'Hermes 工作区',
|
||
codexVirtualSessions: 'Sessions',
|
||
}
|
||
|
||
export type LocaleKey = keyof typeof en
|
||
export type Translate = (key: LocaleKey, params?: Record<string, string | number>) => string
|
||
export interface LocalizedMessage {
|
||
key: LocaleKey
|
||
params?: Record<string, string | number>
|
||
}
|