MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Webview2 spellcheck suggestions empty for Dutch language

Open
#3,237 0 comments 0 reactions 1 assignee View on GitHub

@srwei is already working on this.

Since Feb 27, 2023.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I have a question, about the spell check and how I might be able to get it to work it correctly.
It seems that the behavior of Webview2 does not work the same way it is handled in Edge, and I can't seem to figure out what I am missing in order to get it to work. The suggestions for the Dutch spellcheck do not seem to be shown when right clicking on the word that has a red squiggly line underneath it.

Are there any suggestions on what I could try or need to do to get this to work?

Version
SDK: 1.0.1587.40
Framework: .Net/WPF
OS: Win10

Code to set the language:

var webView2EnvironmentOptions = new CoreWebView2EnvironmentOptions
{
     Language = "nl-NL",
     AdditionalBrowserArguments = $"--remote-debugging-port={Properties.Settings.Default.RemoteDebuggingPort}",
 };

var webview2Environment = await CoreWebView2Environment.CreateAsync(null, null, webView2EnvironmentOptions);
await this.webBrowser.EnsureCoreWebView2Async(webview2Environment);

When I set the language to Dutch(Nederlands), the suggestions for the correct Dutch word is not provided. It only works when I set the selection to All languages or English.
image

Installed language(s) in Windows
image

Within Edge
Suggested word in Edge based on form text provided.
image

It works with the settings:
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.