From 86e56bd71188b71352badb565f8d1743d5a9993e Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 11 Apr 2024 19:06:28 +0800 Subject: [PATCH] Add a simple zh_TW Traditional Chinese locale --- src/locales/languages/en_US.json | 2 + src/locales/languages/zh_CN.json | 2 + src/locales/languages/zh_TW.json | 334 +++++++++++++++++++++ src/store/preference/model/common/index.js | 4 + 4 files changed, 342 insertions(+) create mode 100644 src/locales/languages/zh_TW.json diff --git a/src/locales/languages/en_US.json b/src/locales/languages/en_US.json index adf0bea4..070d51bc 100644 --- a/src/locales/languages/en_US.json +++ b/src/locales/languages/en_US.json @@ -1,5 +1,6 @@ { "zh_CN": "中文", + "zh_TW": "繁體中文", "en_US": "English", "common.cancel": "Cancel", @@ -180,6 +181,7 @@ "preferences.common.language.name": "Language", "preferences.common.language.placeholder": "Select language", "preferences.common.language.chinese": "中文", + "preferences.common.language.traditionalchinese": "繁體中文", "preferences.common.language.english": "English", "preferences.common.auto-connect.name": "Auto Connect", "preferences.common.auto-connect.placeholder": "When enabled, the software will attempt to automatically connect to historical devices upon startup.", diff --git a/src/locales/languages/zh_CN.json b/src/locales/languages/zh_CN.json index 9f99f9da..037b72af 100644 --- a/src/locales/languages/zh_CN.json +++ b/src/locales/languages/zh_CN.json @@ -1,5 +1,6 @@ { "zh_CN": "中文", + "zh_TW": "繁體中文", "en_US": "English", "common.cancel": "取消", @@ -180,6 +181,7 @@ "preferences.common.language.name": "语言", "preferences.common.language.placeholder": "选择你需要的语言", "preferences.common.language.chinese": "中文", + "preferences.common.language.traditionalchinese": "繁體中文", "preferences.common.language.english": "English", "preferences.common.auto-connect.name": "自动连接设备", "preferences.common.auto-connect.placeholder": "启用后,该软件将在启动时尝试自动连接到历史无线设备", diff --git a/src/locales/languages/zh_TW.json b/src/locales/languages/zh_TW.json new file mode 100644 index 00000000..ad989922 --- /dev/null +++ b/src/locales/languages/zh_TW.json @@ -0,0 +1,334 @@ +{ + "zh_CN": "中文", + "zh_TW": "繁體中文", + "en_US": "English", + + "common.cancel": "取消", + "common.confirm": "確認", + "common.restart": "重新啟動", + "common.default": "預設", + "common.tips": "提示", + "common.open": "開啟", + "common.input.placeholder": "請輸入", + "common.success": "操作成功", + "common.progress": "啟動中", + "common.loading": "載入中", + + "close.quit": "結束", + "close.quit.cancel": "取消結束", + "close.minimize": "最小化至系統工具列", + "close.message": "確定要結束嗎?", + "close.remember": "記住此選擇?", + + "dependencies.lack.title": "注意事項", + "dependencies.lack.content": "此軟體需要 {name} 來運作。請確保已正確安裝所需的工具,或在偏好設定中手動設定工具的位置。", + + "device.list": "裝置列表", + "device.list.empty": "未偵測到裝置", + "device.id": "裝置 ID", + "device.name": "裝置名稱", + "device.remark": "備註", + "device.permission.error": "裝置權限錯誤,請重新連接裝置並允許 USB 偵錯", + "device.terminal.name": "終端偵錯", + + "device.wireless.name": "無線", + "device.wireless.mode": "無線模式", + "device.wireless.mode.error": "未取得區域網路連接位址,請檢查網路", + "device.wireless.connect.name": "連接裝置", + "device.wireless.connect.error.title": "連接裝置失敗", + "device.wireless.connect.error.detail": "錯誤詳細資訊", + "device.wireless.connect.error.reasons[0]": "可能有以下原因:", + "device.wireless.connect.error.reasons[1]": "IP 位址或連接埠錯誤", + "device.wireless.connect.error.reasons[2]": "裝置未與目前電腦配對成功", + "device.wireless.connect.error.reasons[3]": "電腦網路和提供的裝置網路 IP 不在同一個區域網中", + "device.wireless.connect.error.reasons[4]": "adb 路徑錯誤", + "device.wireless.connect.error.reasons[5]": "其他未知錯誤", + "device.wireless.connect.error.confirm": "無線配對", + "device.wireless.connect.error.cancel": "@:common.cancel", + "device.wireless.connect.error.no-address": "無線偵錯位址不能為空", + "device.wireless.connect.success": "連接裝置成功", + "device.wireless.connect.batch.name": "連接所有歷史裝置", + "device.wireless.connect.batch.success": "連接歷史裝置成功,共 {totalCount} 個,{successCount} 個成功,{failCount} 個失敗", + "device.wireless.connect.batch.error": "連接歷史裝置失敗", + "device.wireless.disconnect.start": "斷開連接", + "device.wireless.disconnect.progress": "正在斷開", + "device.wireless.disconnect.success": "斷開連接成功", + "device.wireless.pair": "無線配對", + "device.wireless.pair.tips": "注意:可以在 開發者選項 -> 無線偵錯(可以點進去) -> 使用配對碼配對裝置中取得以下資訊", + "device.wireless.pair.address": "配對 IP 位址", + "device.wireless.pair.address.message": "配對碼不能為空", + "device.wireless.pair.address.placeholder": "請輸入配對 IP 位址", + "device.wireless.pair.port": "配對連接埠", + "device.wireless.pair.port.message": "配對連接埠不能為空", + "device.wireless.pair.port.placeholder": "請輸入配對連接埠", + "device.wireless.pair.code": "配對碼", + "device.wireless.pair.code.message": "配對碼不能為空", + "device.wireless.pair.code.placeholder": "請輸入配對碼", + + "device.reset.title": "操作失敗", + "device.reset.reasons[0]": "通常情況下,這可能是設定不相容所導致的,是否重設偏好設定?", + "device.reset.reasons[1]": "注意:重設後,之前儲存的設定將會被清除,因此建議在執行重設操作之前備份您的設定。", + "device.reset.confirm": "重設偏好設定", + "device.reset.cancel": "@:common.cancel", + "device.reset.success": "操作成功,請重新嘗試。", + "device.refresh.name": "重新整理裝置", + "device.restart.name": "重啟服務", + "device.log.name": "執行日誌", + "device.mirror.start": "開始鏡像", + "device.record.progress": "正在錄製", + "device.record.success.title": "錄製成功", + "device.record.success.message": "是否前往錄製位置進行檢視?", + "device.actions.more.name": "更多操作", + "device.actions.more.record.name": "開始錄製", + "device.actions.more.otg.name": "啟動 OTG", + "device.actions.more.camera.name": "啟動鏡頭", + + "device.control.name": "操作", + "device.control.more": "裝置互動", + "device.control.install": "安裝應用程式", + "device.control.install.placeholder": "請選擇要安裝的應用程式", + "device.control.install.progress": "正在為 {deviceName} 安裝應用程式中...", + "device.control.install.success": "已成功將應用程式安裝到 {deviceName} 中,共 {totalCount} 個,成功 {successCount} 個,失敗 {failCount} 個", + "device.control.install.success.single": "已成功將應用程式安裝到 {deviceName} 中", + "device.control.install.error": "安裝應用程式失敗,請檢查安裝檔後重試", + "device.control.file.name": "檔案管理", + "device.control.file.push": "推送檔案", + "device.control.file.push.placeholder": "請選擇要推送的檔案", + "device.control.file.push.success": "已成功將 {totalCount} 個檔案推送到 {deviceName} 的 /sdcard/Download/ 目錄,{successCount} 成功,{failCount} 失敗。", + "device.control.file.push.success.single": "檔案已成功推送到 {deviceName} 的 /sdcard/Download/ 目錄", + "device.control.file.push.error": "推送檔案失敗,請檢查檔案後重試", + "device.control.capture": "擷取螢幕", + "device.control.capture.progress": "正在擷取 {deviceName} 的螢幕快照...", + "device.control.capture.success.message": "是否前往截圖位置進行檢視?", + "device.control.capture.success.message.title": "截圖成功", + "device.control.reboot": "重啟裝置", + "device.control.power": "電源鍵", + "device.control.power.tips": "可以用來開啟或關閉螢幕", + "device.control.notification": "通知欄", + "device.control.notification.tips": "開啟下拉選單選項", + "device.control.return": "返回鍵", + "device.control.home": "主螢幕", + "device.control.switch": "切換鍵", + "device.control.gnirehtet": "反向網路分享", + "device.control.gnirehtet.tips": "使用 Gnirehtet 為 Android 提供反向網路共享;注意:首次連接需要在裝置上進行授權", + "device.control.gnirehtet.start": "啟動服務", + "device.control.gnirehtet.start.success": "Gnirehtet 反向網路共享功能啟動成功", + "device.control.gnirehtet.stop": "停止服務", + "device.control.gnirehtet.stop.success": "停止服務成功", + "device.control.gnirehtet.running": "服務執行中", + "device.control.gnirehtet.stopping": "服務停止中", + "device.control.mirror-group.name": "多螢幕協同", + "device.control.mirror-group.tips": "開啟後,可以同時鏡像多個模擬輔助顯示裝置,並透過操作各個鏡像視窗實現多螢幕協同功能。請注意,此功能需要手機 ROM 支援,並且必須開啟強制使用桌面模式選項。", + "device.control.mirror-group.open": "開啟 {num} 個視窗", + "device.control.mirror-group.close": "關閉輔助顯示裝置", + "device.control.mirror-group.close.tips": "用於解決某些機型關閉所有控制視窗後自動關閉失敗的問題", + "device.control.volume.name": "音量控制", + "device.control.volume-up.name": "增加音量", + "device.control.volume-down.name": "減小音量", + "device.control.volume-mute.name": "關閉音量", + "device.control.rotation.name": "旋轉螢幕", + "device.control.rotation.vertically": "縱向旋轉", + "device.control.rotation.horizontally": "橫向旋轉", + "device.control.rotation.auto": "自動旋轉", + "device.control.rotation.disable": "停用旋轉", + + "preferences.name": "偏好設定", + "preferences.reset": "恢復預設值", + "preferences.scope.global": "全域性", + "preferences.scope.placeholder": "偏好設定的作用域範圍", + "preferences.scope.no-data": "暫無資料", + "preferences.scope.details[0]": "對全域性或者單個裝置設定不同的偏好設定", + "preferences.scope.details[1]": "全域性:將對所有裝置生效。", + "preferences.scope.details[2]": "單個裝置:繼承於全域性設定,並對單個裝置進行獨立設定,僅對此裝置生效。", + "preferences.config.import.name": "匯入", + "preferences.config.import.placeholder": "請選擇要匯入的設定檔", + "preferences.config.import.success": "匯入成功", + "preferences.config.export.name": "匯出", + "preferences.config.export.message": "匯出設定", + "preferences.config.export.placeholder": "請選擇要匯出的位置", + "preferences.config.export.success": "匯出成功", + "preferences.config.edit.name": "編輯", + "preferences.config.reset.name": "重設", + "preferences.config.save.placeholder": "自動儲存設定成功", + + "preferences.common.name": "一般設定", + "preferences.common.theme.name": "主題", + "preferences.common.theme.placeholder": "設定主題", + "preferences.common.theme.options[0]": "淺色模式", + "preferences.common.theme.options[1]": "深色模式", + "preferences.common.theme.options[2]": "依照系統設定", + "preferences.common.debug.name": "偵錯", + "preferences.common.debug.placeholder": "是否啟動軟體偵錯", + "preferences.common.debug.tips": "啟用後可以在執行日誌中檢視軟體執行情況,一般不需要開啟可能會影響效能,注意: 改變此選項需要重啟軟體後才能生效。", + "preferences.common.file.name": "檔案儲存路徑", + "preferences.common.file.placeholder": "使用者桌面", + "preferences.common.file.tips": "截圖和錄製的影像存放在這裡", + "preferences.common.adb.name": "adb 路徑", + "preferences.common.adb.placeholder": "自定義 adb 路徑", + "preferences.common.adb.tips": "用於連接裝置的 adb 位址。", + "preferences.common.scrcpy.name": "scrcpy 路徑", + "preferences.common.scrcpy.placeholder": "自定義 scrcpy 路徑", + "preferences.common.scrcpy.tips": "用於控制裝置的 scrcpy 位址。", + "preferences.common.scrcpy.append.name": "scrcpy 參數", + "preferences.common.scrcpy.append.placeholder": "為 scrcpy 命令加上額外的參數", + "preferences.common.scrcpy.append.tips": "注意:錄入參數將會直接附加到 scrcpy 命令中,如果存在重複的參數,並不會自動進行過濾。", + "preferences.common.gnirehtet.name": "gnirehtet 路徑", + "preferences.common.gnirehtet.placeholder": "自定義 gnirehtet 路徑", + "preferences.common.gnirehtet.tips": "用於為裝置反向網路分享的 gnirehtet 位址。", + "preferences.common.gnirehtet.fix.name": "gnirehtet 修復", + "preferences.common.gnirehtet.fix.placeholder": "開啟將嘗試修復某些機型二次開啟反向網路分享功能失敗的問題", + "preferences.common.gnirehtet.fix.tips": "注意:可能導致 gnirehtet 客戶端重複安裝", + "preferences.common.language.name": "語言", + "preferences.common.language.placeholder": "選擇你要的語言", + "preferences.common.language.chinese": "中文", + "preferences.common.language.traditionalchinese": "繁體中文", + "preferences.common.language.english": "English", + "preferences.common.auto-connect.name": "自動連接裝置", + "preferences.common.auto-connect.placeholder": "啟用後,該軟體將在啟動時嘗試自動連接到歷史無線裝置", + "preferences.common.auto-mirror.name": "自動執行鏡像", + "preferences.common.auto-mirror.placeholder": "啟用後,裝置列表中的裝置將自動執行鏡像", + + "preferences.video.name": "影片控制", + "preferences.video.disable-video.name": "停用影片轉發", + "preferences.video.disable-video.placeholder": "開啟後將停用影片轉發", + "preferences.video.video-source.name": "影片來源", + "preferences.video.video-source.placeholder": "預設為裝置顯示器", + "preferences.video.video-source.display": "顯示器", + "preferences.video.video-source.camera": "鏡頭", + "preferences.video.resolution.name": "最大尺寸", + "preferences.video.resolution.placeholder": "裝置尺寸,格式:1080", + "preferences.video.bit.name": "影片位元率", + "preferences.video.bit.placeholder": "8000000,格式:8M,8000000", + "preferences.video.refresh-rate.name": "更新率", + "preferences.video.refresh-rate.placeholder": "60", + "preferences.video.video-code.name": "影片編碼", + "preferences.video.video-code.placeholder": "h.264", + "preferences.video.display-orientation.name": "顯示方向", + "preferences.video.display-orientation.placeholder": "裝置顯示方向", + "preferences.video.screen-cropping.name": "螢幕裁剪", + "preferences.video.screen-cropping.placeholder": "不裁剪,格式:1224:1440:0:0", + "preferences.video.display.name": "顯示器", + "preferences.video.display.placeholder": "裝置顯示器", + "preferences.video.video-buffer.name": "影片緩衝", + "preferences.video.video-buffer.placeholder": "0", + "preferences.video.receiver-buffer.name": "接收器緩衝(v412)", + "preferences.video.receiver-buffer.placeholder": "0", + + "preferences.device.name": "裝置控制", + "preferences.device.show-touch.name": "顯示觸控點", + "preferences.device.show-touch.placeholder": "開啟後將啟用開發者選項中的顯示點按觸控回饋", + "preferences.device.show-touch.tips": "僅在實體裝置上顯示", + "preferences.device.stay-awake.name": "保持清醒", + "preferences.device.stay-awake.placeholder": "開啟後將防止裝置進入睡眠狀態", + "preferences.device.stay-awake.tips": "僅有線方式連接時有效", + "preferences.device.control-in-close-screen.name": "控制時關閉螢幕", + "preferences.device.control-in-close-screen.placeholder": "開啟後控制裝置時將自動關閉裝置螢幕", + "preferences.device.control-end-video.name": "控制結束關閉螢幕", + "preferences.device.control-end-video.placeholder": "開啟後停止控制裝置將自動關閉裝置螢幕", + "preferences.device.control-in-stop-charging.name": "控制時停用自動亮螢幕", + "preferences.device.control-in-stop-charging.placeholder": "開啟後控制裝置時將停用自動亮螢幕", + "preferences.device.control-in-stop-charging.tips": "開啟後控制裝置時將停用自動亮螢幕", + "preferences.device.display-overlay.name": "模擬輔助顯示器", + "preferences.device.display-overlay.placeholder": "1080x1920/320,secure", + "preferences.device.display-overlay.tips": "用於調整模擬輔助顯示器的大小和解析度,多螢幕協同(鏡像群組)相依於此選項", + + "preferences.window.name": "視窗控制", + "preferences.window.borderless.name": "無邊框模式", + "preferences.window.borderless.placeholder": "開啟後控制視窗將變為無邊框模式", + "preferences.window.full-screen.name": "全螢幕模式", + "preferences.window.full-screen.placeholder": "開啟後控制視窗將全螢幕顯示模式", + "preferences.window.always-top.name": "始終位於頂端", + "preferences.window.always-top.placeholder": "開啟後控制視窗將始終位於頂端", + "preferences.window.disable-screen-saver.name": "停用螢幕保護程式", + "preferences.window.disable-screen-saver.placeholder": "開啟後將停用電腦螢幕保護程式", + "preferences.window.size.width": "視窗寬度", + "preferences.window.size.width.placeholder": "裝置寬度", + "preferences.window.size.width.tips": "注意:更改此設定可能會導致顯示模糊", + "preferences.window.size.height": "視窗高度", + "preferences.window.size.height.placeholder": "裝置高度", + "preferences.window.size.height.tips": "注意:更改此設定可能會導致顯示模糊", + "preferences.window.position.x": "視窗橫座標", + "preferences.window.position.x.placeholder": "相對於桌面中心", + "preferences.window.position.y": "視窗縱座標", + "preferences.window.position.y.placeholder": "相對於桌面中心", + + "preferences.record.name": "影片錄製", + "preferences.record.format.name": "錄製影片格式", + "preferences.record.format.placeholder": "mp4", + "preferences.record.time-limit.name": "錄製時長", + "preferences.record.time-limit.placeholder": "不限時長", + "preferences.record.lock-video-orientation.name": "錄製影片方向", + "preferences.record.lock-video-orientation.placeholder": "裝置預設方向", + "preferences.record.no-video-playback.name": "停用影片播放", + "preferences.record.no-video-playback.placeholder": "開啟後錄製時將停用影片播放", + "preferences.record.no-video-playback.tips": "注意:只是停用了播放但是依然會錄製影片", + "preferences.record.no-audio-playback.name": "停用音訊播放", + "preferences.record.no-audio-playback.placeholder": "開啟後錄製時將停用音訊播放", + "preferences.record.no-audio-playback.tips": "注意:只是停用了播放但是依然會錄製音訊", + + "preferences.audio.name": "音訊控制", + "preferences.audio.disable-audio.name": "停用音訊轉發", + "preferences.audio.disable-audio.placeholder": "開啟後將停用音訊轉發", + "preferences.audio.disable-audio.tips": "如果您的裝置音訊捕獲異常,則可以開啟此選項,以確保可以正常開啟映像", + "preferences.audio.audio-source.name": "音訊來源", + "preferences.audio.audio-source.placeholder": "裝置音訊輸出", + "preferences.audio.audio-source.tips": "技巧:如果將來源設為麥克風將可以在錄製時將聲音錄製下來", + "preferences.audio.audio-source.output": "裝置輸出", + "preferences.audio.audio-source.mic": "麥克風", + "preferences.audio.audio-code.name": "音訊編碼", + "preferences.audio.audio-code.placeholder": "opus", + "preferences.audio.audio-bit-rate.name": "音訊位元率", + "preferences.audio.audio-bit-rate.placeholder": "128000,格式:128K,128000", + "preferences.audio.audio-bit-rate.tips": "注意:此選項不適用於 RAW 音訊編解碼器", + "preferences.audio.audio-buffer.name": "音訊緩衝", + "preferences.audio.audio-buffer.placeholder": "0", + "preferences.audio.audio-output-buffer.name": "音訊輸出緩衝", + "preferences.audio.audio-output-buffer.placeholder": "5", + + "preferences.input.name": "輸入控制", + "preferences.input.mouse.name": "滑鼠模式", + "preferences.input.mouse.tips": "設定滑鼠輸入模式", + "preferences.input.mouse.placeholder": "sdk", + "preferences.input.mouse.options[0].placeholder": "預設", + "preferences.input.mouse.options[1].placeholder": "使用裝置上的 UHID 核心模組模擬物理 HID 滑鼠", + "preferences.input.mouse.options[2].placeholder": "使用 AOAv2 協議模擬物理 HID 滑鼠", + "preferences.input.mouse.options[3].placeholder": "停用滑鼠輸入", + "preferences.input.keyboard.name": "鍵盤模式", + "preferences.input.keyboard.tips": "設定鍵盤輸入模式", + "preferences.input.keyboard.placeholder": "sdk", + "preferences.input.keyboard.options[0].placeholder": "預設", + "preferences.input.keyboard.options[1].placeholder": "使用裝置上的 UHID 核心模組模擬物理 HID 鍵盤", + "preferences.input.keyboard.options[2].placeholder": "使用 AOAv2 協議模擬物理 HID 鍵盤", + "preferences.input.keyboard.options[3].placeholder": "停用鍵盤輸入", + "preferences.input.keyboard.inject.name": "鍵盤輸入方式", + "preferences.input.keyboard.inject.placeholder": "預設", + "preferences.input.keyboard.inject.tips": "設定鍵盤文字輸入優先選項", + "preferences.input.keyboard.inject.options[0].placeholder": "將字母作為文字輸入", + "preferences.input.keyboard.inject.options[1].placeholder": "強制始終輸入原始按鍵事件", + + "preferences.camera.name": "鏡頭控制", + "preferences.camera.camera-facing.name": "鏡頭來源", + "preferences.camera.camera-facing.placeholder": "裝置鏡頭來源", + "preferences.camera.camera-facing.front": "前置鏡頭", + "preferences.camera.camera-facing.back": "後置鏡頭", + "preferences.camera.camera-facing.external": "外接鏡頭", + "preferences.camera.camera-size.name": "鏡頭解析度", + "preferences.camera.camera-size.placeholder": "裝置鏡頭解析度,格式:1920x1080", + "preferences.camera.camera-ar.name": "鏡頭比例", + "preferences.camera.camera-ar.placeholder": "裝置鏡頭比例,格式:4:3,sensor,1.6", + "preferences.camera.camera-fps.name": "鏡頭更新率", + "preferences.camera.camera-fps.placeholder": "裝置鏡頭更新率", + + "about.name": "關於", + "about.description": "📱 使用圖形化的 Scrcpy 顯示和控制您的 Android 裝置,使用 Electron 開發", + "about.update": "檢查並更新", + "about.update-not-available": "已經是最新版本", + "about.update-error.title": "檢查更新失敗", + "about.update-error.message": "你可能需要科學上網,是否前往釋出頁面手動下載更新?", + "about.update-downloaded.title": "下載新版本成功", + "about.update-downloaded.message": "是否立即重新啟動以更新?", + "about.update-downloaded.confirm": "更新", + "about.update-available.title": "發現新版本", + "about.update-available.confirm": "更新", + "about.update.progress": "正在更新" +} diff --git a/src/store/preference/model/common/index.js b/src/store/preference/model/common/index.js index 6b052768..9e29dfb9 100644 --- a/src/store/preference/model/common/index.js +++ b/src/store/preference/model/common/index.js @@ -40,6 +40,10 @@ export default { label: 'preferences.common.language.chinese', value: 'zh_CN', }, + { + label: 'preferences.common.language.traditionalchinese', + value: 'zh_TW', + }, { label: 'preferences.common.language.english', value: 'en_US',