-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: How to enable the Swedish dictionary? #2108
Comments
Did you install the Swedish dictionary? npm install @cspell/dict-sv
{
// …
"import": ["@cspell/dict-sv/cspell-ext.json"],
"language": "en,sv",
// …
} |
Ah I didn't know that's how it is supposed to be used, many thanks! Where in the documentation is this information available? |
If you are using a package manager, there are instructions on NPM. There is also a VS Code Extension, Swedish Spell Checker, that installs the dictionary for you. Do you have some suggestions on how to communicate that it is necessary to install a dictionary? |
Maybe add a section on the theme "Importing pre-built dictionaries" to https://cspell.org/docs/dictionaries/ with an example similar to what you wrote above? And maybe also reference that section from https://cspell.org/types/cspell-types/interfaces/CSpellSettings/#language and https://cspell.org/types/cspell-types/interfaces/Settings/#language to show that it is necessary to add an import for all languages except English? |
Info
Kind of Issue
Which Tool or library
Which Version
Version: 6.31.1
Issue with supporting library?
OS:
version:
Ubuntu 22.04.2 LTS
Bug Description
Describe the bug
A lot of Swedish words are reported as
Unknown word
which makes cspell unfeasible to use in projects with Swedish wordsTo Reproduce
cspell.json
command
yarn cspell 'src/**/*.{js,ts,txt,md,json}'
Example comment in ts file 1
Result
Example comment in ts file 2
Result
Expected behavior
That common Swedish words are not reported as
Unknown word
Additional context
Since Swedish is quite a small language, I get that it is not the highest priority. Let me know if I can help in any way to fix this.
The text was updated successfully, but these errors were encountered: