Extend Chinese localization coverage to Host Manager components

- Added comprehensive translations for HostManagerHostViewer component
- Localized all host management UI text including import/export features
- Translated error messages and confirmation dialogs for host operations
- Added translations for HostManagerHostEditor validation messages
- Localized connection details, organization settings, and form labels
- Fixed syntax error in FileManagerOperations component
- Achieved near-complete localization of SSH host management interface
- Updated placeholders and tooltips for better user guidance

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-09-02 20:45:58 +08:00
parent 70a26359b6
commit 74c144191c
5 changed files with 100 additions and 29 deletions

View File

@@ -100,6 +100,40 @@
},
"hosts": {
"title": "Host Manager",
"sshHosts": "SSH Hosts",
"noHosts": "No SSH Hosts",
"noHostsMessage": "You haven't added any SSH hosts yet. Click \"Add Host\" to get started.",
"loadingHosts": "Loading hosts...",
"failedToLoadHosts": "Failed to load hosts",
"retry": "Retry",
"refresh": "Refresh",
"hostsCount": "{{count}} hosts",
"importJson": "Import JSON",
"importing": "Importing...",
"importJsonTitle": "Import SSH Hosts from JSON",
"importJsonDesc": "Upload a JSON file to bulk import multiple SSH hosts (max 100).",
"downloadSample": "Download Sample",
"formatGuide": "Format Guide",
"uncategorized": "Uncategorized",
"confirmDelete": "Are you sure you want to delete \"{{name}}\"?",
"failedToDeleteHost": "Failed to delete host",
"jsonMustContainHosts": "JSON must contain a \"hosts\" array or be an array of hosts",
"noHostsInJson": "No hosts found in JSON file",
"maxHostsAllowed": "Maximum 100 hosts allowed per import",
"importCompleted": "Import completed: {{success}} successful, {{failed}} failed",
"importFailed": "Import failed",
"importError": "Import error",
"failedToImportJson": "Failed to import JSON file",
"connectionDetails": "Connection Details",
"organization": "Organization",
"ipAddress": "IP Address",
"port": "Port",
"hostName": "Host Name",
"folder": "Folder",
"tags": "Tags",
"passwordRequired": "Password is required when using password authentication",
"sshKeyRequired": "SSH Private Key is required when using key authentication",
"keyTypeRequired": "Key Type is required when using key authentication",
"addHost": "Add Host",
"editHost": "Edit Host",
"deleteHost": "Delete Host",

View File

@@ -100,6 +100,40 @@
},
"hosts": {
"title": "主机管理",
"sshHosts": "SSH 主机",
"noHosts": "没有 SSH 主机",
"noHostsMessage": "您还没有添加任何 SSH 主机。点击\"添加主机\"开始使用。",
"loadingHosts": "加载主机中...",
"failedToLoadHosts": "加载主机失败",
"retry": "重试",
"refresh": "刷新",
"hostsCount": "{{count}} 个主机",
"importJson": "导入 JSON",
"importing": "导入中...",
"importJsonTitle": "从 JSON 导入 SSH 主机",
"importJsonDesc": "上传 JSON 文件以批量导入多个 SSH 主机(最多 100 个)。",
"downloadSample": "下载示例",
"formatGuide": "格式指南",
"uncategorized": "未分类",
"confirmDelete": "确定要删除 \"{{name}}\" 吗?",
"failedToDeleteHost": "删除主机失败",
"jsonMustContainHosts": "JSON 必须包含 \"hosts\" 数组或是一个主机数组",
"noHostsInJson": "JSON 文件中未找到主机",
"maxHostsAllowed": "每次导入最多允许 100 个主机",
"importCompleted": "导入完成:{{success}} 个成功,{{failed}} 个失败",
"importFailed": "导入失败",
"importError": "导入错误",
"failedToImportJson": "导入 JSON 文件失败",
"connectionDetails": "连接详情",
"organization": "组织",
"ipAddress": "IP 地址",
"port": "端口",
"hostName": "主机名",
"folder": "文件夹",
"tags": "标签",
"passwordRequired": "使用密码认证时需要密码",
"sshKeyRequired": "使用密钥认证时需要 SSH 私钥",
"keyTypeRequired": "使用密钥认证时需要密钥类型",
"addHost": "添加主机",
"editHost": "编辑主机",
"deleteHost": "删除主机",