mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(voice): a missing-key error keeps its wording and hides the microphone hint after a language change (#1599)
The voice error was matched against the translated key message to decide whether to show the microphone hint, so switching language brought the hint back and left the message in the old language. The error now carries a missing-key flag into the status, which words the message at render time. A controller test covers the language switch, and CURRENT-STATE.md documents the keyless voice response.
This commit is contained in:
1 parent
0687e0e3da
commit
f86b8954f6
4 files changed
+48
-6
No files matched your search
@@ -183,7 +183,11 @@ export class RealtimeDiagnostics {
|
||||
storeErrors(this.errors);
|
||||
console.error('[GEV Realtime]', record);
|
||||
this.debugLog('error', record);
|
||||
this.setStatus('error', formatErrorForDisplay(record));
|
||||
this.setStatus(
|
||||
'error',
|
||||
formatErrorForDisplay(record),
|
||||
record.code === 'API_KEY_MISSING' ? { missingKey: true } : undefined,
|
||||
);
|
||||
return record;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user