Commit 26b78d5
authored
fix: web recorder ignores selected transcription language, always sends multi (#5547)
## Cause
`GET /v1/users/transcription-preferences` never returned the `language`
field, so `prefs.language` was always `undefined` in the recorder. This
caused the WebSocket to fall back to `language=multi` (auto-detect),
overriding whatever language the user had set in Settings.
## Fix
- Added `language` field to `TranscriptionPreferencesResponse` in
`backend/routers/users.py`
- Updated `get_user_transcription_preferences` in
`backend/database/users.py` to read and return the top-level `language`
field from the user document
## Demo
**Before**
https://github.com/user-attachments/assets/2f66ab73-e674-4255-9603-4acc33d3b777
**After**
https://github.com/user-attachments/assets/594a4b05-9559-4d8d-a67f-42c395b4f5e3
closes #48082 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
| 1000 | + | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
| |||
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
| 1011 | + | |
1011 | 1012 | | |
1012 | 1013 | | |
1013 | | - | |
| 1014 | + | |
1014 | 1015 | | |
1015 | 1016 | | |
1016 | 1017 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| 501 | + | |
501 | 502 | | |
502 | 503 | | |
503 | 504 | | |
| |||
0 commit comments