From 748a917ffdc238782ab427b442f785b575ddc16a Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Mon, 2 Mar 2020 14:15:55 -0800 Subject: [PATCH] docs: add documentation on case insensitive dictionary hosting (#22483) --- docs/api/session.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/session.md b/docs/api/session.md index df5840caa75f..e3d0191513ab 100644 --- a/docs/api/session.md +++ b/docs/api/session.md @@ -481,7 +481,8 @@ setting with the current OS locale. This setting is persisted across restarts. By default Electron will download hunspell dictionaries from the Chromium CDN. If you want to override this behavior you can use this API to point the dictionary downloader at your own hosted version of the hunspell dictionaries. We publish a `hunspell_dictionaries.zip` file with each release which contains the files you need -to host here. +to host here, the file server must be **case insensitive** you must upload each file twice, once with the case it +has in the ZIP file and once with the filename as all lower case. If the files present in `hunspell_dictionaries.zip` are available at `https://example.com/dictionaries/language-code.bdic` then you should call this api with `ses.setSpellCheckerDictionaryDownloadURL('https://example.com/dictionaries/')`. Please