We're using WebView2 in a rich Delphi application as an html editor with document.designMode = 'on'.
WebView2 is doing a spell check by default (which is fine). But we want to change the language, in which the spell checking is done independent from the users settings in the OS. We have multilangual users in our system, so the language has do be switched on runtime.
We've tried to set the lang-attribute of various html-tags (programatically manipulating the dom and/or the source before it's loaded to the editor). But this seems not to have any effect.
I'm using opera to write this and "english" is used for spell checking here. If I'm using edge, this text field here is checked in "german". That's a bad sign, that this might be possible at all. I'm hoping here is something missing, too.
Any ideas for this?