Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

[Question] Change language #100

Open
ehhc opened this issue Jul 5, 2018 · 6 comments
Open

[Question] Change language #100

ehhc opened this issue Jul 5, 2018 · 6 comments

Comments

@ehhc
Copy link

ehhc commented Jul 5, 2018

Hi there,
i have a question concerning your spell checker.
Is there a (easy) option to change the language of the spellcheck without changing the language of the whole OS?
E.g. My (windows) computer is using German language. Nevertheless i would like to spellcheck notes i took using english (not always but sometimes).
Since i'm using a windows machine, starting the process with SET LANG=EN or something similar is unfortunately not an option.. Is there anything i can do?

Thanks in advance

@dmoonfire
Copy link
Contributor

dmoonfire commented Jul 6, 2018

You have a couple options:

  1. Add English as your second language in Windows (I'm assuming Windows 10).
  2. Use SET SPELLCHECKER_PREFER_HUNSPELL=1 and just set your local to en-US and hope it works.
  3. Use SET SPELLCHECKER_PREFER_HUNSPELL=1, download an English dictionary, point your locale path to it, and then set locale in Atom/spell-check to en-US. This approach ignores all of the system dictionaries and only uses the ones it finds on disk.

@ehhc
Copy link
Author

ehhc commented Jul 9, 2018

Hi,
assuming i use option 1.: How can i switch between the languages without restarting the app or changing the language of my OS?

  1. and 3.) If i do so, i don't have the benefits coming from using the native spell check anymore, do i?

Thank you :)

@AlexandreKilian
Copy link

@ehhc did you figure it out? Even with german installed as a secondary language, it's just working for german…
as for option 2 or 3, @dmoonfire how do I even switch to hunspell and set languages/install dictionaries? nothing about that in the docs, I browsed the code too, nothing there either

@ehhc
Copy link
Author

ehhc commented May 6, 2019

@AlexandreKilian no, unfortunately i didn't figured it out. i used another project in the end.. :(

@AlexandreKilian
Copy link

AlexandreKilian commented May 6, 2019

@ehhc I figured it out after checking the code: Spellchecker.setDictionary('de');
works in runtime too…

@ehhc
Copy link
Author

ehhc commented May 6, 2019

okay.. thanks for the information :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants