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": "左右平衡",