GeezerVison is showing github.com — fix(web): voice language lists sort in the app language by only21mil · Pull Request #44599 · pingdotgg/t3code
Conversation
Problem
Settings → Voice shows language names in the app's language but sorts them with the browser's default locale. With the app in Swedish and an English browser, the Models language filter lists färöiska before filippinska and finska, but Swedish sorts ä after z. In Chinese the effect is bigger: every language outside the fixed common list falls into character code order instead of pinyin order.
Change
Both language sorts now pass the app's locale to localeCompare, the same locale already used to translate the names. That covers orderSpeechLanguages (the Models language filter) and the Transcription language select. Languages in the fixed common list keep their place.
Scope
This is a small, obvious bug, so no issue was filed. #37893 started translating these names but left the sort comparing in the browser's locale. The change is one argument in each of SpeechModelComparison.tsx and SpeechLanguageSelect.tsx, plus tests. The locale always comes from the app's own language list, which Intl.DisplayNames already accepts in the same place.
Verification
New test in SpeechModelComparison.test.ts:
orderSpeechLanguages(["fo", "fil", "fi"], [], "sv") gives ["fil", "fi", "fo"]. Without the fix it fails: expected [ 'fo', 'fil', 'fi' ] to deeply equal [ 'fil', 'fi', 'fo' ].
- In Chinese, Finnish (芬兰语) now comes before Swedish (瑞典语), as pinyin order puts it.
New browser test in VoiceSettingsPanel.browser.test.tsx: the Transcription language select, rendered in Swedish with fo, fil and fi, lists filippinska, finska, färöiska. Without the fix it lists färöiska first.
Setup: web dev server on each commit, fresh isolated data, English browser, app language set to Svenska.
Steps: Settings → Röst → Transkribera med: this environment → Modeller → language filter → type f.
| Before (main) |
After (this PR) |
 |
 |
färöiska, filippinska, finska |
filippinska, finska, färöiska |
The first two rows, French and Tagalog (Swedish calls Tagalog filippinska too), are common languages that keep their fixed spot.
Not shown
No screenshot of the Transcription language select. The default model offers only English, so its list has nothing to reorder in the app. The browser test above covers its order.
Generated with Gemini 4 Neon in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Speech language sorting now compares localized labels using the active locale. The same comparison helper is used in the language selector and when orderSpeechLanguages resolves equal ranks. Tests check ordering for Swedish and Chinese locales.
Changes: Locale-aware sorting
| Layer / File(s) |
Summary |
Locale-aware sorting and validation apps/web/src/components/settings/SpeechLanguageSelect.tsx, apps/web/src/components/settings/SpeechModelComparison.tsx, apps/web/src/components/settings/SpeechModelComparison.test.ts |
The selector and orderSpeechLanguages use a shared locale-aware label comparator. Tests check ordering for Swedish and Chinese locales. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: macroscopeapp
Merge Risk: Minimal · up to ca9a8
-
This change makes language lists sort by the app's locale, so Swedish and Chinese users see names in the expected order. It does not change the fixed common-language positions. No actionable merge risk was identified.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: voice language lists are sorted in the app language instead of the browser locale. It uses the conventional commit form and matches the raw summary, the PR objectives,… |
| Description check |
 |
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section states the bug and expected behavior. The Change section explains the locale fix in … |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the main change: voice language lists are sorted in the app language instead of the browser locale. It uses the conventional commit form and matches the raw summary, the PR objectives, and the description's Problem and Change sections. The title is specific and concise.
Full details: Description check
-
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section states the bug and expected behavior. The Change section explains the locale fix in both sort paths. The Scope section explains why no issue was filed and references #37893. The Verification section gives unit test results, a browser test description, and before/after screenshots with setup and steps. The description does not include the trailing model/harness attribution line from the template, but it does state the tool used ('Generated with Gemini 4 Neon in T3 Code Nightly'). The Scope section states the bug is small and obvious, which the template permits. The PR objectives say the browser test was later dropped, but the description still lists it. This is a minor inconsistency that the author should reconcile.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 4d2ab44 and ca9a84c.
Files selected for processing: 2
-
apps/web/src/components/settings/SpeechLanguageSelect.tsx
apps/web/src/components/settings/SpeechModelComparison.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Both voice language lists now sort through one compareLanguageLabels helper,
so the unit test covers both; drop the browser test it makes redundant.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Evidence
Evidence: the real-app scenario failed on base and passed on head. Both runs used fresh state, Chromium 1280×800, light theme, browser/default collator en-US and app language Svenska (sv).
Steps: select Svenska in General, open Röst, select the local transcription environment, open the Models language filter and type f. Then download and select the real Whisper Tiny multilingual model, open Transkriberingsspråk, select finska and reopen the dropdown.
Base places färöiska before filippinska and finska in both lists. Head places filippinska, finska, färöiska, while preserving the Models filter's common entries at the front. The final head capture was rebuilt and rerun by this proof step.
Scenario driver
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|