Skip to content

Respect display language for automatic voice locale - #329018

Closed
meganrogge with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-voice-mode-locale-handling
Closed

Respect display language for automatic voice locale#329018
meganrogge with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-voice-mode-locale-handling

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Automatic voice and dictation language selection now accounts for VS Code’s configured display language instead of relying only on the browser/system locale.

  • Prefer configured display language for automatic Dictation language resolution, with browser/system locale and model detection fallback.
  • Apply the same display-language-first behavior to Voice Mode automatic language selection.
  • Update the Voice Mode and Nemotron Dictation setting descriptions to document the new precedence.
  • Add focused coverage for display-language vs browser-locale selection.

Copilot AI requested a balanced review from Copilot and removed request for Copilot August 4, 2026 18:16
Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Copilot AI requested a balanced review from Copilot and removed request for Copilot August 4, 2026 18:23
Copilot AI changed the title [WIP] Fix code for voice mode locale handling Respect display language for automatic voice locale Aug 4, 2026
Copilot AI requested a review from meganrogge August 4, 2026 18:26
@meganrogge meganrogge added this to the 1.133.0 milestone Aug 4, 2026
@meganrogge
meganrogge marked this pull request as ready for review August 4, 2026 19:10
Copilot AI balanced review requested due to automatic review settings August 4, 2026 19:10
@meganrogge
meganrogge enabled auto-merge (squash) August 4, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates automatic voice and dictation locale resolution to prefer VS Code’s display language before browser/system locale.

Changes:

  • Adds display-language-first locale resolution for Voice Mode and Nemotron dictation.
  • Adds focused locale precedence tests.
  • Updates settings descriptions to explain precedence.
Show a summary per file
File Description
voiceClientService.ts Resolves automatic Voice Mode language.
dictationLanguage.ts Resolves automatic Nemotron locale.
voiceClientService.test.ts Tests Voice Mode locale precedence.
chatSpeechToTextService.test.ts Tests dictation locale precedence.
chat.shared.contribution.ts Updates Nemotron setting documentation.
agentsVoice.contribution.ts Updates Voice Mode setting documentation.

Review details

  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment on lines +233 to +234
const displayLanguage = Language.isDefaultVariant() ? undefined : Language.value();
return resolveAutomaticVoiceLanguage(this._window?.navigator.language, displayLanguage);
Comment on lines +55 to +56
function getConfiguredDisplayLanguage(): string | undefined {
return Language.isDefaultVariant() ? undefined : Language.value();
meganrogge added a commit to meganrogge/vscode that referenced this pull request Aug 4, 2026
Preserve configured English display-language precedence while integrating Voice Mode, fallback, documentation, and test updates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b11adb7d-72c1-4e64-ba1e-f798dd9bf490
@meganrogge

Copy link
Copy Markdown
Collaborator

Superseded by #329016, which now includes these changes plus the explicit-English locale fix.

@meganrogge meganrogge closed this Aug 4, 2026
auto-merge was automatically disabled August 4, 2026 19:22

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants