From 75dcfc1e8d87535ef74aa0b7deaf442e33a27045 Mon Sep 17 00:00:00 2001 From: Kang Date: Sat, 26 Sep 2026 00:03:34 +0800 Subject: [PATCH] chore(i18n): update import and backup restore translations for multiple languages - Added new translation keys for import dialog titles and backup restore confirmations in English, Korean, Simplified Chinese, and Traditional Chinese. - Enhanced user guidance with clearer descriptions for session import and backup restoration processes. --- src/i18n/locales/en.json | 9 ++++++++- src/i18n/locales/ko.json | 9 ++++++++- src/i18n/locales/zh-CN.json | 9 ++++++++- src/i18n/locales/zh-TW.json | 9 ++++++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index fb6a7291..d5b965c4 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -1778,11 +1778,12 @@ "folderNamePlaceholder": "New folder...", "group": "Group", "host": "Host", + "importDialogTitle": "Import sessions or restore backup", "importDocs": "View docs", "importFailed": "Import failed: {{error}}", "importFrom": "Import Config...", "importMergeHint": "Session import merges into existing connections and keeps the current list.", - "importSelectSource": "Select import source", + "importSelectSource": "Choose a session source or restore a NyaTerm backup.", "importSessions": "Import", "importSuccess": "Imported {{count}} sessions", "jumpHostChain": "Jump chain", @@ -1803,8 +1804,14 @@ "port": "Port", "rename": "Rename", "renameFolder": "Rename Folder", + "restoreBackupConfirmAction": "Restore backup", + "restoreBackupConfirmDesc": "Restoring this .nya backup replaces your current configuration, including saved connections, credentials, passwords, OTP, proxies, tunnels, commands, history, and notes. Restart the app after restoring.", + "restoreBackupConfirmTitle": "Replace current configuration?", + "restoreBackupDesc": "Replaces current configuration and saved connections.", + "restoreBackupTitle": "Restore NyaTerm backup", "search": "Search", "serialPort": "Serial port", + "sessionImportTitle": "Import sessions", "shellArgs": "Shell args", "sortDefault": "Custom Order", "sortNameAsc": "Name A → Z", diff --git a/src/i18n/locales/ko.json b/src/i18n/locales/ko.json index 9d2b04d7..ba15ce89 100644 --- a/src/i18n/locales/ko.json +++ b/src/i18n/locales/ko.json @@ -1776,11 +1776,12 @@ "folderNamePlaceholder": "새 폴더...", "group": "그룹", "host": "호스트", + "importDialogTitle": "세션 가져오기 또는 백업 복원", "importDocs": "문서 보기", "importFailed": "가져오기 실패: {{error}}", "importFrom": "설정 가져오기...", "importMergeHint": "세션 가져오기는 기존 연결에 병합되며 현재 목록을 유지합니다.", - "importSelectSource": "가져오기 소스 선택", + "importSelectSource": "세션 소스를 선택하거나 NyaTerm 백업을 복원하세요.", "importSessions": "가져오기", "importSuccess": "세션 {{count}}개를 가져왔습니다", "jumpHostChain": "점프 체인", @@ -1801,8 +1802,14 @@ "port": "포트", "rename": "이름 바꾸기", "renameFolder": "폴더 이름 바꾸기", + "restoreBackupConfirmAction": "백업 복원", + "restoreBackupConfirmDesc": "이 .nya 백업을 복원하면 저장된 연결, 자격 증명, 비밀번호, OTP, 프록시, 터널, 빠른 명령, 기록 및 노트를 포함한 현재 설정이 교체됩니다. 복원 후 앱을 다시 시작하세요.", + "restoreBackupConfirmTitle": "현재 설정을 교체할까요?", + "restoreBackupDesc": "현재 설정과 저장된 연결을 교체합니다.", + "restoreBackupTitle": "NyaTerm 백업 복원", "search": "검색", "serialPort": "시리얼 포트", + "sessionImportTitle": "세션 가져오기", "shellArgs": "셸 인수", "sortDefault": "사용자 지정 순서", "sortNameAsc": "이름 오름차순(A → Z)", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index eeff5f33..763780d6 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -1776,11 +1776,12 @@ "folderNamePlaceholder": "新文件夹...", "group": "分组", "host": "主机", + "importDialogTitle": "导入会话或恢复备份", "importDocs": "查看文档", "importFailed": "导入失败:{{error}}", "importFrom": "导入配置...", "importMergeHint": "会话导入会合并到现有连接,不会清空当前连接列表。", - "importSelectSource": "请选择要导入的配置来源", + "importSelectSource": "选择会话来源,或恢复 NyaTerm 备份。", "importSessions": "导入配置", "importSuccess": "成功导入 {{count}} 个会话", "jumpHostChain": "跳板链路", @@ -1801,8 +1802,14 @@ "port": "端口", "rename": "重命名", "renameFolder": "重命名文件夹", + "restoreBackupConfirmAction": "恢复备份", + "restoreBackupConfirmDesc": "恢复此 .nya 备份将替换当前配置,包括已保存的连接、凭据、密码、OTP、代理、隧道、快捷命令、历史记录和笔记。恢复后请重启应用。", + "restoreBackupConfirmTitle": "替换当前配置?", + "restoreBackupDesc": "会替换当前配置及已保存的连接。", + "restoreBackupTitle": "恢复 NyaTerm 备份", "search": "搜索", "serialPort": "串口", + "sessionImportTitle": "导入会话", "shellArgs": "启动参数", "sortDefault": "自定义顺序", "sortNameAsc": "名称 A → Z", diff --git a/src/i18n/locales/zh-TW.json b/src/i18n/locales/zh-TW.json index 79008d53..398f81d4 100644 --- a/src/i18n/locales/zh-TW.json +++ b/src/i18n/locales/zh-TW.json @@ -1776,11 +1776,12 @@ "folderNamePlaceholder": "新資料夾...", "group": "分組", "host": "主機", + "importDialogTitle": "匯入工作階段或還原備份", "importDocs": "檢視文件", "importFailed": "匯入失敗:{{error}}", "importFrom": "匯入設定...", "importMergeHint": "工作階段匯入會合併到現有連線,不會清空目前連線清單。", - "importSelectSource": "請選擇要匯入的設定來源", + "importSelectSource": "選擇工作階段來源,或還原 NyaTerm 備份。", "importSessions": "匯入設定", "importSuccess": "成功匯入 {{count}} 個工作階段", "jumpHostChain": "跳板鏈路", @@ -1799,8 +1800,14 @@ "port": "埠", "rename": "重新命名", "renameFolder": "重新命名資料夾", + "restoreBackupConfirmAction": "還原備份", + "restoreBackupConfirmDesc": "還原此 .nya 備份將取代目前設定,包括已儲存的連線、憑證、密碼、OTP、代理、通道、快捷命令、歷史紀錄和筆記。還原後請重新啟動應用程式。", + "restoreBackupConfirmTitle": "取代目前設定?", + "restoreBackupDesc": "會取代目前設定及已儲存的連線。", + "restoreBackupTitle": "還原 NyaTerm 備份", "search": "搜尋", "serialPort": "序列埠", + "sessionImportTitle": "匯入工作階段", "shellArgs": "啟動引數", "sortDefault": "自訂順序", "sortNameAsc": "名稱 A → Z",