# Electron: Languages supported by Windows spell check (non-Hunspell, like de-CH, etc) do not appear in the list of available languages

**URL:** <https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777>\
**Category:** Bug reports\
**Tags:** spellcheck, upstream-bug, repro\
**Created:** [February 16, 2025, 2:49pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777 "2025-02-16T14:49:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericmc2](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@ericmc2](https://forum.obsidian.md/u/ericmc2)\
**Post date:** [February 16, 2025, 2:49pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/1 "2025-02-16T14:49:59Z")

</div>

### Steps to reproduce

1. Go to Options → Editor → Behavior → Spellcheck languages
2. Look for German (Switzerland): Option is missing
3. Close Obsidian
4. Manually add “de-CH” to the list of dictionaries in %appdata%\obsidian\Preferences
5. Open Obsidian
6. Write “schliesslich” in a note.
7. Verify that the spelling rules for German (Switzerland) are applied and the word isn’t underlined in red.

### Did you follow the troubleshooting guide? [Y/N]

Yes

### Expected result

German (Switzerland) should be available through the GUI. It’s supported in Electron/Chrome and it looks like it’s also included in Obsidian.

### Actual result

The language is missing from the options menu.

### Environment

SYSTEM INFO:  
Obsidian version: v1.8.4  
Installer version: v1.8.4  
Operating system: Windows 10 Pro 10.0.19044  
Login status: not logged in  
Language: en  
Insider build toggle: off  
Live preview: on  
Base theme: adapt to system  
Community theme: none  
Snippets enabled: 0  
Restricted mode: on

RECOMMENDATIONS:  
none

* * *

### Additional information

French (Switzerland) is missing as well when compared to Chrome, but manually adding “fr-CH” to the Preferences file doesn’t work. So, the reason it isn’t available in Obsidian seems to be a different one.

---

<div class="post-metadata">

**Author:** ![ericmc2](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@ericmc2](https://forum.obsidian.md/u/ericmc2)\
**Post date:** [February 16, 2025, 6:44pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/2 "2025-02-16T18:44:27Z")

</div>

Correction: French (Switzerland) can also be enabled by editing the Preferences file (“fr-CH”). So, there are at least two supported languages missing from the options menu:

- German (Switzerland)
- French (Switzerland)

---

<div class="post-metadata">

**Author:** ![aadsj](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@aadsj](https://forum.obsidian.md/u/aadsj)\
**Post date:** [April 9, 2025, 3:48pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/3 "2025-04-09T15:48:41Z")

</div>

As someone also experiencing this issue, is there a workaround?

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [April 9, 2025, 5:14pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/4 "2025-04-09T17:14:17Z")

</div>

Let me double check this.

---

<div class="post-metadata">

**Author:** ![ericmc2](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@ericmc2](https://forum.obsidian.md/u/ericmc2)\
**Post date:** [April 29, 2025, 5:36pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/5 "2025-04-29T17:36:53Z")

</div>

My workaround for now is to edit the preferences file manually and add de-CH to the list of enabled dictionaries there. For example: “dictionaries”:[“en-GB”,“de-CH”]. It still won’t show up in the Options dialogue, but it’s working as expected in the background.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [April 30, 2025, 3:39pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/6 "2025-04-30T15:39:43Z")

</div>

We get the list of available languages from Electron, that gets it from Chrome(ium).

There is no de-CH in chromium.

> **[refs/heads/main - chromium/deps/hunspell\_dictionaries - Git at Google](https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries/+/refs/heads/main)**

I tried to force de-CH like you did and it did not even stick.

---

<div class="post-metadata">

**Author:** ![ericmc2](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@ericmc2](https://forum.obsidian.md/u/ericmc2)\
**Post date:** [May 1, 2025, 4:35pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/7 "2025-05-01T16:35:34Z")

</div>

This Preferences file sticks for me (Obsidian has to be restarted before it takes effect):

{“browser”:{“enable\_spellchecking”:true},“spellcheck”:{“dictionaries”:[“de-CH”],“dictionary”:“”}}

And I can verify that the spelling rules for de-CH are applied with this Preferences file.

The word schliesslich isn’t marked as an error when it is set to de-CH, but if I replace the value with de-DE and restart Obsidian, it gets marked as an error.

If I insert an invalid language code such as de-XY, Obsidian doesn’t accept it and resets the Preferences file, but that doesn’t happen with de-CH.

I’m not sure how exactly it works, as it doesn’t seem to be included as a stand-alone dictionary (maybe it’s some kind of sub-dictionary), but it indeed works. It’s also an official option without any workarounds in Chrome.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 1, 2025, 10:49pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/8 "2025-05-01T22:49:16Z")

</div>

![chrome_QR7UnJ9w4r](https://forum.obsidian.md/uploads/default/original/3X/f/c/fcd76506c13dcb616c6e85db030eeebf002de0aa.png)

---

<div class="post-metadata">

**Author:** ![ericmc2](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@ericmc2](https://forum.obsidian.md/u/ericmc2)\
**Post date:** [May 1, 2025, 11:24pm UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/9 "2025-05-01T23:24:45Z")

</div>

![spellcheck](https://forum.obsidian.md/uploads/default/original/3X/5/f/5f19c3389fb5f412806ad9e9ab74f90f92fc7c52.png)

No idea why it isn’t available for you, this is what it looks like for me using Chrome 136.0.7103.49 with a clean profile.

I appreciate you taking the time to help diagnosing this issue and I’m sorry it’s getting so complicated.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 2, 2025, 12:10am UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/10 "2025-05-02T00:10:54Z")

</div>

Ok, I think I understand what happens.

Somewhat recently Chrome started also supporting using the Windows built-in spellchecker service. So if you have Swiss-German language pack installed on Windows, that’s where the spellchecker for that language is coming from.

This is a feature that is currently unsupported/not exposed by Electron.

> <https://github.com/electron/electron/issues/39906>
>
> \### Preflight Checklist
> 
> \- \[X\] I have read the \[Contributing Guidelines\](https…://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
> \- \[X\] I agree to follow the \[Code of Conduct\](https://github.com/electron/electron/blob/main/CODE\_OF\_CONDUCT.md) that this project adheres to.
> \- \[X\] I have searched the \[issue tracker\](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.
> 
> \### Problem Description
> 
> The \[session.setSpellCheckerLanguages API\](https://www.electronjs.org/docs/latest/api/session#sessetspellcheckerlanguageslanguages) currently only supports the hard-coded list of languages supported by Hunspell in \`kSupportedSpellCheckerLanguages\` in \[components/spellcheck/common/spellcheck\_common.cc\](https://chromium.googlesource.com/chromium/src/+/8ba1bad80dc22235693a0dd41fe55c0fd2dbdabd/components/spellcheck/common/spellcheck\_common.cc#30). This means that Electron doesn't provide spellcheck support for languages without Hunspell support (like Finnish), even though these languages are supported by the Windows API Electron already uses for Hunspell-compatible languages.
> 
> Chromium supports these, however, with support added in https://chromium-review.googlesource.com/c/chromium/src/+/2155167.
> 
> \### Proposed Solution
> 
> In the implementation for \`session.setSpellCheckerLanguages\` (\[Session::SetSpellCheckerLanguages\](https://github.com/electron/electron/blob/6bfef67aaeae9613e85b3d5d3745da763b3ef7c4/shell/browser/api/electron\_api\_session.cc#L1082)), if I remove the \`spellcheck::GetCorrespondingSpellCheckLanguage\` call and just pass the language code through to the \`spellcheck::prefs::kSpellCheckDictionaries\` pref as-is, I’m able to use it in a test app by calling \`session.setSpellCheckerLanguages(\['fi'\])\` (for Finnish) and see Finnish spellchecking work in Electron (the API would otherwise throw the "Invalid language code" error).
> 
> Rather than remove the \`spellcheck::GetCorrespondingSpellCheckLanguage\` check, I suppose we'd need to supplement it with a check that the language passes \[spellcheck\_platform::PlatformSupportsLanguage\](https://chromium.googlesource.com/chromium/src/+/12be03159fe22cd4ef291e9561762531c2589539/components/spellcheck/browser/spellcheck\_platform.h#83) or is in the result of \[spellcheck\_platform::RetrieveSpellcheckLanguages\](https://chromium.googlesource.com/chromium/src/+/12be03159fe22cd4ef291e9561762531c2589539/components/spellcheck/browser/spellcheck\_platform.h#52), though that would require the API change to async.
> 
> I think fixing this would also require either changing \[session.availableSpellCheckerLanguages\](https://www.electronjs.org/docs/latest/api/session#sesavailablespellcheckerlanguages-readonly) to also return the supported languages for which the Windows language pack is installed (via \[spellcheck\_platform::RetrieveSpellcheckLanguages\](https://chromium.googlesource.com/chromium/src/+/12be03159fe22cd4ef291e9561762531c2589539/components/spellcheck/browser/windows\_spell\_checker.cc#379)), or adding a new API for that (since it seems it would need to be retrieved async).
> 
> Maybe the list of available languages can be retrieved when a session is created?
> 
> \### Alternatives Considered
> 
> n/a
> 
> \### Additional Information
> 
> \_No response\_

We will wait until this is implemented upstream.

---

<div class="post-metadata">

**Author:** ![ericmc2](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@ericmc2](https://forum.obsidian.md/u/ericmc2)\
**Post date:** [May 2, 2025, 1:22am UTC](https://forum.obsidian.md/t/electron-languages-supported-by-windows-spell-check-non-hunspell-like-de-ch-etc-do-not-appear-in-the-list-of-available-languages/96777/11 "2025-05-02T01:22:41Z")

</div>

You’re right! I was able reproduce it with Italian (Switzerland). By default, Obsidian doesn’t accept “it-CH” as a language and removes it from the Preferences file. As soon as the language is added to Windows, Obsidian will keep it in there and actually use it in the background.

Looks like this feature is partially implemented in Electron and not fully fleshed out. Thank you for putting in the detective work to solve this!
