electron / electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS
https://electronjs.org
MIT License
114.43k stars 15.44k forks source link

[Bug]: Spellchecker doesn't work for ru when en-AU is also set #34991

Closed Egorikhin closed 1 year ago

Egorikhin commented 2 years ago

Preflight Checklist

Electron Version

19.0.8

What operating system are you using?

Windows

Operating System Version

Windows 10 Version 19043

What arch are you using?

x64

Last Known Working Electron version

12

Expected Behavior

Spellchecking works for ru language when session.setSpellCheckerLanguages(["en-AU", "ru"]); is set

Actual Behavior

spellchecker doesn't show corrections for ru language when en-AU is present in session.setSpellCheckerLanguages(["en-AU", "ru"]);

Testcase Gist URL

https://github.com/Egorikhin/electron-spellcheck-repro

Additional Information

In electron@12 and less the repro does show the misspelling corrections for Russian text "фыв" while on newer versions it doesn't. It's somehow related to settings en-AU (maybe there are more languages with such a behavior) as one of the spellchecking languages as changing it to en-US fixes the problem.

Also added console warn to the repro which shows string ${misspelledWord} -> dictionarySuggestions and for newer electrons dictionary suggestions always return empty array for ru words

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

github-actions[bot] commented 1 year ago

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.