Complete Chinese localization for remaining UI components

- Add comprehensive Chinese translations for Host Manager component
  - Translate all form labels, buttons, and descriptions
  - Add translations for SSH configuration warnings and instructions
  - Localize tunnel connection settings and port forwarding options

- Localize SSH Tools panel
  - Translate key recording functionality
  - Add translations for settings and configuration options

- Translate homepage welcome messages and navigation elements
  - Add Chinese translations for login success messages
  - Localize "Updates & Releases" section title
  - Translate sidebar "Host Manager" button

- Fix translation key display issues
  - Remove duplicate translation keys in both language files
  - Ensure all components properly reference translation keys
  - Fix hosts.tunnelConnections key mapping

This completes the full Chinese localization of the Termix application,
achieving near 100% UI translation coverage while maintaining English
as the default language.
This commit is contained in:
ZacharyZcR
2025-09-02 21:57:51 +08:00
parent 511e4e7db3
commit ba9fac55ea
7 changed files with 164 additions and 79 deletions

View File

@@ -1,4 +1,21 @@
{
"sshTools": {
"title": "SSH Tools",
"closeTools": "Close SSH Tools",
"keyRecording": "Key Recording",
"startKeyRecording": "Start Key Recording",
"stopKeyRecording": "Stop Key Recording",
"selectTerminals": "Select terminals:",
"typeCommands": "Type commands (all keys supported):",
"commandsWillBeSent": "Commands will be sent to {{count}} selected terminal(s).",
"settings": "Settings",
"enableRightClickCopyPaste": "Enable rightclick copy/paste",
"shareIdeas": "Have ideas for what should come next for ssh tools? Share them on"
},
"homepage": {
"loggedInTitle": "Logged in!",
"loggedInMessage": "You are logged in! Use the sidebar to access all available tools. To get started, create an SSH Host in the SSH Manager tab. Once created, you can connect to that host using the other apps in the sidebar."
},
"common": {
"close": "Close",
"online": "Online",
@@ -91,6 +108,7 @@
"splitScreen": "Split Screen",
"closeTab": "Close Tab",
"sshManager": "SSH Manager",
"hostManager": "Host Manager",
"cannotSplitTab": "Cannot split this tab"
},
"admin": {
@@ -199,7 +217,46 @@
"connectionSuccess": "Connection Successful",
"connectionDetails": "Connection Details",
"organization": "Organization",
"addTags": "Add tags (space to add)"
"addTags": "Add tags (space to add)",
"sourcePort": "Source Port",
"endpointPort": "Endpoint Port",
"retryInterval": "Retry Interval (seconds)",
"connection": "Connection",
"remove": "Remove",
"addConnection": "Add Connection",
"sshpassRequired": "Sshpass Required For Password Authentication",
"sshpassInstallCommand": "Install Command: sudo apt install sshpass",
"sshServerConfig": "SSH Server Configuration Required",
"sshServerConfigInstructions": "Run the following commands to allow password authentication:",
"sshConfigCommand1": "sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config",
"sshConfigCommand2": "sudo systemctl restart sshd",
"localPortForwarding": "Local Port Forwarding",
"localPortForwardingDesc": "Forward a local port to a remote server through the SSH connection",
"remotePortForwarding": "Remote Port Forwarding",
"remotePortForwardingDesc": "Forward a remote port to a local server through the SSH connection",
"dynamicPortForwarding": "Dynamic Port Forwarding (SOCKS Proxy)",
"dynamicPortForwardingDesc": "Create a SOCKS proxy on the local machine to route traffic through the SSH connection",
"bindAddress": "Bind Address",
"hostViewer": "Host Viewer",
"configuration": "Configuration",
"maxRetries": "Max Retries",
"tunnelConnections": "Tunnel Connections",
"enableTerminalDesc": "Enable/disable host visibility in Terminal tab",
"enableTunnelDesc": "Enable/disable host visibility in Tunnel tab",
"enableFileManagerDesc": "Enable/disable host visibility in File Manager tab",
"autoStartDesc": "Automatically start this tunnel when the container launches",
"defaultPathDesc": "Default directory when opening file manager for this host",
"otherInstallMethods": "Other installation methods:",
"sshpassOSInstructions": {
"centos": "CentOS/RHEL/Fedora: sudo yum install sshpass or sudo dnf install sshpass",
"macos": "macOS: brew install hudochenkov/sshpass/sshpass",
"windows": "Windows: Use WSL or consider SSH key authentication"
},
"sshServerConfigReverse": "For reverse SSH tunnels, the endpoint SSH server must allow:",
"gatewayPorts": "GatewayPorts yes (bind remote ports)",
"allowTcpForwarding": "AllowTcpForwarding yes (port forwarding)",
"permitRootLogin": "PermitRootLogin yes (if using root)",
"editSshConfig": "Edit /etc/ssh/sshd_config and restart SSH: sudo systemctl restart sshd"
},
"terminal": {
"title": "Terminal",
@@ -619,7 +676,6 @@
"noSshHosts": "No SSH Hosts",
"sshHosts": "SSH Hosts",
"importSshHosts": "Import SSH Hosts from JSON",
"hostViewer": "Host Viewer",
"clientId": "Client ID",
"clientSecret": "Client Secret",
"error": "Error",
@@ -677,11 +733,6 @@
"maxRetries": "Max Retries",
"upload": "Upload",
"updateKey": "Update Key",
"hostViewer": "Host Viewer",
"sshpassRequired": "Sshpass Required For Password Authentication",
"sshServerConfigRequired": "SSH Server Configuration Required",
"sshManagerAlreadyOpen": "SSH Manager already open",
"disabledDuringSplitScreen": "Disabled during split screen",
"productionFolder": "Production",
"databaseServer": "Database Server",
"unknownError": "Unknown error",

View File

@@ -1,4 +1,21 @@
{
"sshTools": {
"title": "SSH 工具",
"closeTools": "关闭 SSH 工具",
"keyRecording": "按键录制",
"startKeyRecording": "开始按键录制",
"stopKeyRecording": "停止按键录制",
"selectTerminals": "选择终端:",
"typeCommands": "输入命令(支持所有按键):",
"commandsWillBeSent": "命令将发送到 {{count}} 个选中的终端。",
"settings": "设置",
"enableRightClickCopyPaste": "启用右键复制/粘贴",
"shareIdeas": "对 SSH 工具有什么想法?在此分享"
},
"homepage": {
"loggedInTitle": "登录成功!",
"loggedInMessage": "您已登录!使用侧边栏访问所有可用工具。要开始使用,请在 SSH 管理器选项卡中创建 SSH 主机。创建后,您可以使用侧边栏中的其他应用程序连接到该主机。"
},
"common": {
"close": "关闭",
"online": "在线",
@@ -91,6 +108,7 @@
"splitScreen": "分屏",
"closeTab": "关闭标签页",
"sshManager": "SSH 管理器",
"hostManager": "主机管理器",
"cannotSplitTab": "无法分割此标签页"
},
"admin": {
@@ -199,7 +217,46 @@
"connectionSuccess": "连接成功",
"connectionDetails": "连接详情",
"organization": "组织管理",
"addTags": "添加标签(空格添加)"
"addTags": "添加标签(空格添加)",
"sourcePort": "源端口",
"endpointPort": "目标端口",
"retryInterval": "重试间隔(秒)",
"connection": "连接",
"remove": "移除",
"addConnection": "添加连接",
"sshpassRequired": "密码认证需要安装 Sshpass",
"sshpassInstallCommand": "安装命令sudo apt install sshpass",
"sshServerConfig": "需要配置 SSH 服务器",
"sshServerConfigInstructions": "运行以下命令以允许密码认证:",
"sshConfigCommand1": "sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config",
"sshConfigCommand2": "sudo systemctl restart sshd",
"localPortForwarding": "本地端口转发",
"localPortForwardingDesc": "通过 SSH 连接将本地端口转发到远程服务器",
"remotePortForwarding": "远程端口转发",
"remotePortForwardingDesc": "通过 SSH 连接将远程端口转发到本地服务器",
"dynamicPortForwarding": "动态端口转发SOCKS 代理)",
"dynamicPortForwardingDesc": "在本地计算机上创建 SOCKS 代理,通过 SSH 连接路由流量",
"bindAddress": "绑定地址",
"hostViewer": "主机查看器",
"configuration": "配置",
"maxRetries": "最大重试次数",
"tunnelConnections": "隧道连接",
"enableTerminalDesc": "启用/禁用在终端选项卡中显示此主机",
"enableTunnelDesc": "启用/禁用在隧道选项卡中显示此主机",
"enableFileManagerDesc": "启用/禁用在文件管理器选项卡中显示此主机",
"autoStartDesc": "容器启动时自动启动此隧道",
"defaultPathDesc": "打开此主机文件管理器时的默认目录",
"otherInstallMethods": "其他安装方法:",
"sshpassOSInstructions": {
"centos": "CentOS/RHEL/Fedora: sudo yum install sshpass 或 sudo dnf install sshpass",
"macos": "macOS: brew install hudochenkov/sshpass/sshpass",
"windows": "Windows: 使用 WSL 或考虑使用 SSH 密钥认证"
},
"sshServerConfigReverse": "对于反向 SSH 隧道,端点 SSH 服务器必须允许:",
"gatewayPorts": "GatewayPorts yes绑定远程端口",
"allowTcpForwarding": "AllowTcpForwarding yes端口转发",
"permitRootLogin": "PermitRootLogin yes如果使用 root",
"editSshConfig": "编辑 /etc/ssh/sshd_config 并重启 SSH: sudo systemctl restart sshd"
},
"terminal": {
"title": "终端",
@@ -619,7 +676,6 @@
"noSshHosts": "没有 SSH 主机",
"sshHosts": "SSH 主机",
"importSshHosts": "从 JSON 导入 SSH 主机",
"hostViewer": "主机查看器",
"clientId": "客户端 ID",
"clientSecret": "客户端密钥",
"error": "错误",
@@ -677,7 +733,6 @@
"maxRetries": "最大重试次数",
"upload": "上传",
"updateKey": "更新密钥",
"hostViewer": "主机查看器",
"sshpassRequired": "密码认证需要 Sshpass",
"sshServerConfigRequired": "需要 SSH 服务器配置",
"sshManagerAlreadyOpen": "SSH 管理器已打开",