From 3a782bc69c0e47cc900c606e3d9f649228c8b99e Mon Sep 17 00:00:00 2001 From: PKC278 <52959804+PKC278@users.noreply.github.com> Date: Tue, 20 Jan 2026 18:33:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(locales):=20=E4=BB=A5zh-CN=E4=B8=BA?= =?UTF-8?q?=E5=9F=BA=E5=87=86=EF=BC=8C=E8=A1=A5=E5=85=85=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E7=BC=BA=E5=A4=B1=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en-US.ts | 23 +++++++++++++++++++++- src/locales/zh-TW.ts | 45 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 62 insertions(+), 6 deletions(-) diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index d29c69e2..2bb2570a 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1670,6 +1670,7 @@ export default { storage: 'Storage', storageDesc: 'Set up local or cloud storage.', directory: 'Directory', + mediaType: 'Media Type', directoryDesc: 'Set up media file organization directory structure, matching in sequence.', organizeAndScrap: 'Organization & Scraping', organizeAndScrapDesc: 'Set rename format, scraping options, etc.', @@ -1786,7 +1787,7 @@ export default { }, cache: { title: 'Cache Management', - subtitle: 'Manage torrent cache data', + subtitle: 'Manage cached site resources', totalCount: 'Total Count', siteCount: 'Site Count', filterByTitle: 'Filter by Title', @@ -3048,6 +3049,26 @@ export default { unsupportedDownloaderType: 'Unsupported downloader type: {type}', unsupportedMediaServerType: 'Unsupported media server type: {type}', unsupportedNotificationType: 'Unsupported notification type: {type}', + storageTestFailed: 'Storage test failed', + downloaderTestFailed: 'Downloader test failed', + downloaderNotSelected: 'No downloader selected', + mediaServerTestFailed: 'Media server test failed', + mediaServerNotSelected: 'No media server selected', + notificationTestFailed: 'Notification test failed', + notificationNotSelected: 'No notification type selected', + saveStepFailed: 'Failed to save step settings', + basicSettingsSaved: 'Basic settings saved successfully', + saveBasicSettingsFailed: 'Failed to save basic settings', + storageSettingsSaved: 'Storage settings saved successfully', + saveStorageSettingsFailed: 'Failed to save storage settings', + downloaderSettingsSaved: 'Downloader settings saved successfully', + saveDownloaderSettingsFailed: 'Failed to save downloader settings', + mediaServerSettingsSaved: 'Media server settings saved successfully', + saveMediaServerSettingsFailed: 'Failed to save media server settings', + notificationSettingsSaved: 'Notification settings saved successfully', + saveNotificationSettingsFailed: 'Failed to save notification settings', + preferenceSettingsSaved: 'Preference settings saved successfully', + savePreferenceSettingsFailed: 'Failed to save preference settings', passwordUpdateSuccess: 'Password updated successfully', userCreateSuccess: 'User created successfully', passwordUpdateFailed: 'Failed to update password', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index 940cd705..3bd9b959 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -159,7 +159,6 @@ export default { subscribeMovie: '電影訂閱', subscribeTv: '電視劇訂閱', settings: '設置', - language: '語言設置', selectLanguage: '選擇語言', logout: '退出登錄', restarting: '正在重啟...', @@ -435,10 +434,13 @@ export default { name: '企業微信', corpId: '企業ID', corpIdHint: '企業微信後台企業信息中的企業ID', + corpIdRequired: '企業ID不能為空', appId: '應用 AgentId', appIdHint: '企業微信自建應用的AgentId', + appIdRequired: '應用AgentId不能為空', appSecret: '應用 Secret', appSecretHint: '企業微信自建應用的Secret', + appSecretRequired: '應用Secret不能為空', proxy: '代理地址', proxyHint: '微信消息的轉發代理地址,2022年6月20日後創建的自建應用才需要,不使用代理時需要保留默認值', token: 'Token', @@ -453,23 +455,30 @@ export default { name: 'Telegram', token: 'Bot Token', tokenHint: 'Telegram機器人token,格式:123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11', + tokenRequired: 'Bot Token不能為空', chatId: 'Chat ID', chatIdHint: '接受消息通知的用戶、群組或頻道Chat ID', + chatIdRequired: 'Chat ID不能為空', users: '用戶白名單', usersHint: '可使用Telegram機器人的用戶ID清單,多個用戶用,分隔,不填寫則所有用戶都能使用', admins: '管理員白名單', adminsHint: '可使用管理菜單及命令的用戶ID列表,多個ID使用,分隔', adminsPlaceholder: '用戶ID列表,多個ID使用,分隔', usersPlaceholder: '用戶ID列表,多個ID使用,分隔', + apiUrl: '代理API地址', + apiUrlHint: '自定義代理API地址,格式:https://api.telegram.org', + apiUrlPlaceholder: 'https://api.telegram.org', }, slack: { name: 'Slack', oauthToken: 'Slack Bot User OAuth Token', oauthTokenHint: 'Slack應用`OAuth & Permissions`頁面中的`Bot User OAuth Token`', + oauthTokenRequired: 'OAuth Token不能為空', appToken: 'Slack App-Level Token', appTokenHint: 'Slack應用`OAuth & Permissions`頁面中的`App-Level Token`', channel: '頻道名稱', channelHint: '消息發送頻道,默認`全體`', + channelRequired: '頻道名稱不能為空', }, discord: { name: 'Discord', @@ -487,6 +496,7 @@ export default { name: 'Synology Chat', webhook: '機器人傳入URL', webhookHint: 'Synology Chat機器人傳入URL', + webhookRequired: 'Webhook URL不能為空', token: '令牌', tokenHint: 'Synology Chat機器人令牌', }, @@ -494,8 +504,10 @@ export default { name: 'VoceChat', host: '地址', hostHint: 'VoceChat服務端地址,格式:http(s)://ip:port', + hostRequired: '地址不能為空', apiKey: '機器人密鑰', apiKeyHint: 'VoceChat機器人密鑰', + apiKeyRequired: 'API密鑰不能為空', channelId: '頻道ID', channelIdHint: 'VoceChat的頻道ID,不包含#號', }, @@ -503,6 +515,7 @@ export default { name: 'WebPush', username: '登錄用戶名', usernameHint: '只有對應的用戶登錄後才會推送消息', + usernameRequired: '用戶名不能為空', }, }, shortcut: { @@ -1637,6 +1650,7 @@ export default { storage: '存儲', storageDesc: '設置本地或網盤存儲', directory: '目錄', + mediaType: '媒體類型', directoryDesc: '設置媒體文件整理目錄結構,按先後順序依次匹配。', organizeAndScrap: '整理 & 刮削', organizeAndScrapDesc: '設置重命名格式、刮削選項等。', @@ -1695,8 +1709,8 @@ export default { importHasId: '導入失敗!發現有規則存在相同ID,可能屬於自定義規則!', }, scheduler: { - scheduledTasks: '定時作業', - scheduledTasksDesc: '包含系統內置服務以及插件提供的服務', + title: '定時作業', + subtitle: '包含系統內置服務以及插件提供的服務', provider: '提供者', taskName: '任務名稱', taskStatus: '任務狀態', @@ -1748,9 +1762,10 @@ export default { settingsSaveFailed: '訂閱基礎設置保存失敗!', }, cache: { - title: '緩存', - description: '種子緩存、圖片文件緩存管理', + title: '緩存管理', subtitle: '管理緩存的站點資源', + totalCount: '總條數', + siteCount: '站點數', filterByTitle: '按標題篩選', filterBySite: '按站點篩選', selectSite: '選擇站點', @@ -3001,6 +3016,26 @@ export default { unsupportedDownloaderType: '不支援的下載器類型: {type}', unsupportedMediaServerType: '不支援的媒體服務器類型: {type}', unsupportedNotificationType: '不支援的通知類型: {type}', + storageTestFailed: '存儲目錄測試失敗', + downloaderTestFailed: '下載器測試失敗', + downloaderNotSelected: '未選擇下載器', + mediaServerTestFailed: '媒體服務器測試失敗', + mediaServerNotSelected: '未選擇媒體服務器', + notificationTestFailed: '消息通知測試失敗', + notificationNotSelected: '未選擇通知類型', + saveStepFailed: '保存步驟設置失敗', + basicSettingsSaved: '基礎設置保存成功', + saveBasicSettingsFailed: '保存基礎設置失敗', + storageSettingsSaved: '存儲設置保存成功', + saveStorageSettingsFailed: '保存存儲設置失敗', + downloaderSettingsSaved: '下載器設置保存成功', + saveDownloaderSettingsFailed: '保存下載器設置失敗', + mediaServerSettingsSaved: '媒體服務器設置保存成功', + saveMediaServerSettingsFailed: '保存媒體服務器設置失敗', + notificationSettingsSaved: '通知設置保存成功', + saveNotificationSettingsFailed: '保存通知設置失敗', + preferenceSettingsSaved: '偏好設置保存成功', + savePreferenceSettingsFailed: '保存偏好設置失敗', passwordUpdateSuccess: '密碼更新成功', userCreateSuccess: '使用者建立成功', passwordUpdateFailed: '密碼更新失敗',