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.

This commit is contained in:
yangy
2026-05-22 18:01:33 +08:00
parent 11821730ec
commit 961c3b4de9
4 changed files with 21 additions and 11 deletions
+1
View File
@@ -312,6 +312,7 @@
"dac": { "dac": {
"sectionBalanceSensitivity": "Balance & sensitivity", "sectionBalanceSensitivity": "Balance & sensitivity",
"sectionOutput": "Output characteristics", "sectionOutput": "Output characteristics",
"sectionIisSettings": "IIS settings",
"sectionSystemInterface": "System & interface", "sectionSystemInterface": "System & interface",
"balance": "Left-right balance", "balance": "Left-right balance",
"sensitivity": "VU Meter Sensitivity", "sensitivity": "VU Meter Sensitivity",
+1
View File
@@ -248,6 +248,7 @@
"dac": { "dac": {
"sectionBalanceSensitivity": "平衡與靈敏度", "sectionBalanceSensitivity": "平衡與靈敏度",
"sectionOutput": "輸出特性", "sectionOutput": "輸出特性",
"sectionIisSettings": "IIS設定",
"sectionSystemInterface": "系統與介面", "sectionSystemInterface": "系統與介面",
"balance": "左右平衡", "balance": "左右平衡",
"sensitivity": "VU表靈敏度", "sensitivity": "VU表靈敏度",
+1
View File
@@ -248,6 +248,7 @@
"dac": { "dac": {
"sectionBalanceSensitivity": "平衡与灵敏度", "sectionBalanceSensitivity": "平衡与灵敏度",
"sectionOutput": "输出特性", "sectionOutput": "输出特性",
"sectionIisSettings": "IIS设置",
"sectionSystemInterface": "系统与接口", "sectionSystemInterface": "系统与接口",
"balance": "左右平衡", "balance": "左右平衡",
"sensitivity": "vu表灵敏度", "sensitivity": "vu表灵敏度",
+18 -11
View File
@@ -4,7 +4,8 @@
Sections: Sections:
- 平衡与灵敏度: 左右平衡 slider, VU灵敏度 slider - 平衡与灵敏度: 左右平衡 slider, VU灵敏度 slider
- 输出特性: 滤波特性, 耳机增益, 音量幅度 - 输出特性: 滤波特性, 耳机增益, 音量幅度
- 系统与接口: XLR极性, DAC增益, DAC阻抗 - IIS设置: IIS静音电平, IIS模式
- 系统与接口: 开机音量, XLR极性
All list rows → navigate to /select page All list rows → navigate to /select page
============================================================ */ ============================================================ */
import { useDevice } from "@/contexts/DeviceContext"; import { useDevice } from "@/contexts/DeviceContext";
@@ -83,6 +84,7 @@ type LocaleDac = {
dac?: { dac?: {
sectionBalanceSensitivity?: string; sectionBalanceSensitivity?: string;
sectionOutput?: string; sectionOutput?: string;
sectionIisSettings?: string;
sectionSystemInterface?: string; sectionSystemInterface?: string;
balance?: string; balance?: string;
sensitivity?: string; sensitivity?: string;
@@ -297,6 +299,21 @@ export default function AudioPage() {
/> />
</div> </div>
{/* ── IIS 设置 ── */}
<SectionHeader title={dacText.sectionIisSettings ?? "IIS设置"} />
<div className="ios-list-group">
<ListRow
label={dacText.mutePolar?.label ?? "IIS 静音电平"}
value={MUTE_POLAR_OPTIONS[mutePolarIdx] ?? MUTE_POLAR_OPTIONS[0] ?? "—"}
onClick={() => goSelect(dacText.mutePolar?.label ?? "选择 IIS 静音电平", MUTE_POLAR_OPTIONS, mutePolarIdx, "mutePolar")}
/>
<ListRow
label={dacText.IISMode?.label ?? "IIS 模式"}
value={IIS_MODE_OPTIONS[iisModeIdx] ?? IIS_MODE_OPTIONS[0] ?? "—"}
onClick={() => goSelect(dacText.IISMode?.label ?? "选择 IIS 模式", IIS_MODE_OPTIONS, iisModeIdx, "IISMode")}
/>
</div>
{/* ── 系统与接口 ── */} {/* ── 系统与接口 ── */}
<SectionHeader title={dacText.sectionSystemInterface ?? "系统与接口"} /> <SectionHeader title={dacText.sectionSystemInterface ?? "系统与接口"} />
<div className="ios-list-group"> <div className="ios-list-group">
@@ -317,16 +334,6 @@ export default function AudioPage() {
value={XLR_OPTIONS[xlrIdx] ?? XLR_OPTIONS[0] ?? "—"} value={XLR_OPTIONS[xlrIdx] ?? XLR_OPTIONS[0] ?? "—"}
onClick={() => goSelect(dacText.xlr?.label ?? "选择 XLR 极性", XLR_OPTIONS, xlrIdx, "xlr")} onClick={() => goSelect(dacText.xlr?.label ?? "选择 XLR 极性", XLR_OPTIONS, xlrIdx, "xlr")}
/> />
<ListRow
label={dacText.mutePolar?.label ?? "IIS 静音电平"}
value={MUTE_POLAR_OPTIONS[mutePolarIdx] ?? MUTE_POLAR_OPTIONS[0] ?? "—"}
onClick={() => goSelect(dacText.mutePolar?.label ?? "选择 IIS 静音电平", MUTE_POLAR_OPTIONS, mutePolarIdx, "mutePolar")}
/>
<ListRow
label={dacText.IISMode?.label ?? "IIS 模式"}
value={IIS_MODE_OPTIONS[iisModeIdx] ?? IIS_MODE_OPTIONS[0] ?? "—"}
onClick={() => goSelect(dacText.IISMode?.label ?? "选择 IIS 模式", IIS_MODE_OPTIONS, iisModeIdx, "IISMode")}
/>
</div> </div>
</div> </div>