From 961c3b4de9df07a1ea465055c40bc7949ad80c68 Mon Sep 17 00:00:00 2001 From: yangy Date: Fri, 22 May 2026 18:01:33 +0800 Subject: [PATCH] Update locale files for English, Traditional Chinese, and Simplified Chinese to add new section for IIS settings in the AudioPage; refactor AudioPage to include IIS mute level and mode options, enhancing user interface and localization support. --- client/src/locales/data-en.json | 1 + client/src/locales/data-zh-HK.json | 1 + client/src/locales/data-zh.json | 1 + client/src/pages/AudioPage.tsx | 29 ++++++++++++++++++----------- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/client/src/locales/data-en.json b/client/src/locales/data-en.json index 4f06065..c26691e 100644 --- a/client/src/locales/data-en.json +++ b/client/src/locales/data-en.json @@ -312,6 +312,7 @@ "dac": { "sectionBalanceSensitivity": "Balance & sensitivity", "sectionOutput": "Output characteristics", + "sectionIisSettings": "IIS settings", "sectionSystemInterface": "System & interface", "balance": "Left-right balance", "sensitivity": "VU Meter Sensitivity", diff --git a/client/src/locales/data-zh-HK.json b/client/src/locales/data-zh-HK.json index 54f292c..52aced7 100644 --- a/client/src/locales/data-zh-HK.json +++ b/client/src/locales/data-zh-HK.json @@ -248,6 +248,7 @@ "dac": { "sectionBalanceSensitivity": "平衡與靈敏度", "sectionOutput": "輸出特性", + "sectionIisSettings": "IIS設定", "sectionSystemInterface": "系統與介面", "balance": "左右平衡", "sensitivity": "VU表靈敏度", diff --git a/client/src/locales/data-zh.json b/client/src/locales/data-zh.json index 8c15aab..04c680c 100644 --- a/client/src/locales/data-zh.json +++ b/client/src/locales/data-zh.json @@ -248,6 +248,7 @@ "dac": { "sectionBalanceSensitivity": "平衡与灵敏度", "sectionOutput": "输出特性", + "sectionIisSettings": "IIS设置", "sectionSystemInterface": "系统与接口", "balance": "左右平衡", "sensitivity": "vu表灵敏度", diff --git a/client/src/pages/AudioPage.tsx b/client/src/pages/AudioPage.tsx index f4708f4..b23cc41 100644 --- a/client/src/pages/AudioPage.tsx +++ b/client/src/pages/AudioPage.tsx @@ -4,7 +4,8 @@ Sections: - 平衡与灵敏度: 左右平衡 slider, VU灵敏度 slider - 输出特性: 滤波特性, 耳机增益, 音量幅度 - - 系统与接口: XLR极性, DAC增益, DAC阻抗 + - IIS设置: IIS静音电平, IIS模式 + - 系统与接口: 开机音量, XLR极性 All list rows → navigate to /select page ============================================================ */ import { useDevice } from "@/contexts/DeviceContext"; @@ -83,6 +84,7 @@ type LocaleDac = { dac?: { sectionBalanceSensitivity?: string; sectionOutput?: string; + sectionIisSettings?: string; sectionSystemInterface?: string; balance?: string; sensitivity?: string; @@ -297,6 +299,21 @@ export default function AudioPage() { /> + {/* ── IIS 设置 ── */} + +
+ goSelect(dacText.mutePolar?.label ?? "选择 IIS 静音电平", MUTE_POLAR_OPTIONS, mutePolarIdx, "mutePolar")} + /> + goSelect(dacText.IISMode?.label ?? "选择 IIS 模式", IIS_MODE_OPTIONS, iisModeIdx, "IISMode")} + /> +
+ {/* ── 系统与接口 ── */}
@@ -317,16 +334,6 @@ export default function AudioPage() { value={XLR_OPTIONS[xlrIdx] ?? XLR_OPTIONS[0] ?? "—"} onClick={() => goSelect(dacText.xlr?.label ?? "选择 XLR 极性", XLR_OPTIONS, xlrIdx, "xlr")} /> - goSelect(dacText.mutePolar?.label ?? "选择 IIS 静音电平", MUTE_POLAR_OPTIONS, mutePolarIdx, "mutePolar")} - /> - goSelect(dacText.IISMode?.label ?? "选择 IIS 模式", IIS_MODE_OPTIONS, iisModeIdx, "IISMode")} - />