// Local listening preference, shared by roster and DIY details; deliberately absent from room.loadout. import { html } from './components.js'; import { useSettings, updateSettings } from './settings.js'; import { t } from '../../../shared/i18n.js'; const VOICE_LANG_NAMES = { cn: '中文', jp: '日本語' }; // i18n-ignore export function OperatorVoice({ charId }) { const settings = useSettings(); if (!charId) return null; const value = settings.voiceOverrides[charId] || ''; const change = (lang) => { const voiceOverrides = { ...settings.voiceOverrides }; if (lang) voiceOverrides[charId] = lang; else delete voiceOverrides[charId]; updateSettings({ voiceOverrides }); }; return html``; }