Refactor BottomNav to use localized labels for navigation items; added support for dynamic language selection based on device state. Updated locale files for English, Traditional Chinese, and Simplified Chinese to include bottom navigation labels.

This commit is contained in:
yangy
2026-05-11 17:42:18 +08:00
parent 68f06344dc
commit ae4ce8bb07
7 changed files with 552 additions and 192 deletions
+62 -1
View File
@@ -1,6 +1,7 @@
{
"home": {
"audioSet": "音訊設定",
"systemSet": "系統設定",
"power": "電源",
"input": "輸入源",
"output": "輸出端口",
@@ -12,6 +13,16 @@
"powerOffToastDemo": "演示模式:已中斷與裝置的連線",
"powerOffToastSent": "已傳送關機指令"
},
"vuPage": {
"title": "VU 表庫"
},
"bottomNav": {
"community": "社區",
"hpEq": "HP-EQ",
"home": "主頁",
"effects": "Effect",
"myAi": "我的AI"
},
"source": {
"label": "輸入/輸出",
"input": { "coaxial": "同軸", "optical": "光纖", "bluetooth": "藍牙", "rca": "類比RCA" },
@@ -137,7 +148,57 @@
"gain": "GAIN",
"q": "Q值",
"loadDeviceBtn": "確認載入",
"peqNoneItem": "尚未設定"
"peqNoneItem": "尚未設定",
"eqUi": {
"batchEditTitle": "批次編輯",
"batchEditHint": "共 11 行:第 1 行為 Preamp,第 211 行為 Filter 1–10。儲存後將覆寫目前耳機的參數。",
"cancel": "取消",
"save": "儲存",
"tabBrands": "品牌",
"tabModels": "型號",
"tabTarget": "目標",
"searchPlaceholder": "搜尋品牌或型號",
"searching": "搜尋中…",
"noSearchResults": "找不到相關品牌或型號",
"loading": "載入中…",
"noBrandMatch": "沒有符合的品牌",
"selectBrandFirst": "請先在「品牌」頁選擇品牌",
"brandLabel": "品牌:",
"modelFromSearchLabel": "已選搜尋型號:",
"noModelsForBrand": "此品牌暫無型號",
"targetBrand": "品牌:",
"targetModel": "型號:",
"targetForm": "Form",
"formAll": "全部",
"confirmLoading": "處理中…",
"confirmButton": "確認",
"selectModelFirst": "請先選擇型號",
"noTargets": "暫無可用目標曲線",
"closeDrawer": "關閉",
"toastBatchApplied": "批次編輯已套用",
"toastBatchParseError": "批次編輯格式錯誤",
"toastBrandsFail": "取得品牌列表失敗",
"toastModelsFail": "取得型號列表失敗",
"toastCurveFail": "取得曲線失敗",
"toastNewEqOk": "新耳機 EQ 已上報",
"toastTargetSelected": "已選目標:{{name}}",
"deleteConfirm": "是否刪除耳機「{{name}}」?",
"toastDeleted": "已刪除耳機",
"toastDeleteFail": "刪除耳機失敗",
"bassBoost": "低頻增強:fc {{fc}}q {{q}}gain {{gain}}dB",
"errMinLines": "至少需要 11 行(Preamp + 10 個濾波器)",
"errPreampFirstLine": "第 1 行應為 Preamp:-5.96dB 格式",
"errPreampValue": "Preamp 數值無效",
"errFilterLine": "第 {{line}} 行不符合 Filter 格式",
"errFilterNoRange": "Filter 編號 {{no}} 超出範圍",
"errFilterType": "Filter {{no}} 的類型無效({{type}}",
"errFilterNumbers": "Filter {{no}} 的數值無效",
"errFilterAll": "Filter 110 必須全部提供",
"chartCopyTo": "複製到 {{mode}}",
"chartLoadToDevice": "載入至裝置",
"toastChartCopied": "已複製到 {{mode}}",
"toastChartLoadedDevice": "已載入至裝置"
}
},
"dac": {
"balance": "左右平衡",