[Bug]: Desktop spellcheck flags English text when Windows isn't in English, with no way to get English back #48207
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/desktop
Steps to reproduce#
- On Windows 11, make Swedish (sv-SE) the only language under Settings → Time & language → Language & region → Preferred languages.
- Install the T3 Code desktop app (Nightly 0.1.14) and set the app's language to English.
- Type an English prompt in the composer, for example "Please refactor the settings page and add tests".
- Optional: open %APPDATA%\t3code\Preferences and look at the spellcheck entry.
Expected behavior#
English text in an app set to English is not flagged as misspelled. At the very least, there is a way to get the English dictionary back.
Actual behavior#
Every English word in the composer is underlined in red, while Swedish text is not. Preferences contains "spellcheck": {"dictionaries": ["sv"]}.
Since #44857, the app replaces the en-US default with the OS's preferred languages (app.getPreferredSystemLanguages()). The app's own language setting is not taken into account, so someone who uses Windows in Swedish but writes prompts in English loses English spellcheck.
There is also no way back. From reading apps/desktop/src/window/SpellCheckerLanguages.ts:
- Adding English to the Windows language list afterwards does nothing. resolveSpellCheckerLanguages only replaces a list that is exactly the starting default ["en-US"], and Chromium saves the dictionary list, so the saved ["sv"] is treated as the user's own choice and kept for good.
- Setting the list back to ["en-US"] by hand in Preferences doesn't last either. The app can't tell that apart from the starting default, so it switches back to ["sv"] on the next launch.
Impact#
Minor bug or occasional failure
Version or commit#
T3 Code (Nightly) 0.1.14 desktop (code read at main @ 6b12843cbe)
Environment#
Windows 11 Pro 26300, Windows languages: sv-SE only, T3 Code app language: English
Logs or stack traces#
# %APPDATA%\t3code\Preferences (same in t3code-v2 and t3code-dev)
"spellcheck": {"dictionaries": ["sv"], "dictionary": ""}
Screenshots, recordings, or supporting files#
Skärmbild 2026-12-03 083827.png
Workaround#
Quit T3 Code, then edit %APPDATA%\t3code\Preferences so that "dictionaries" is ["en-US","sv"]. It has to be more than one language: a list of only ["en-US"] gets switched back on the next launch.
Possible fix: add the app's own language to the dictionaries chosen from the OS (as #39688 attempted), and choose them again when the OS languages or app language change, instead of treating any list other than ["en-US"] as the user's choice.
Related: #44857 (introduced this), #7742, #32311 (manual language picker, still open), #39688.
jadeva(GitHub profile, opens in a new tab) added labelsbug
jadeva(GitHub profile, opens in a new tab) added labelsneeds-triage
Sign in to join this conversation.