Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change browser language

I'm currently implementing a small web view in my application.

Everything is working fine with CefSharp but I have a small problem.

It seems like CefSharp is using something like en-US as the default browser language. I can't find any information about how to change the language that is used.

For my web view I need the browser to be set on a German language.

Is there any way to do that? Can the language be changed? If yes, how?

like image 836
Backslash Avatar asked Mar 12 '23 07:03

Backslash


1 Answers

You can change the language that:

CefSettings settingsBrowser = new CefSettings();
settingsBrowser.Locale = "de";

Cef.Initialize(settingsBrowser);
like image 195
A.Shakirov Avatar answered Mar 25 '23 08:03

A.Shakirov