Commit 4dece824 authored by 姜春辉's avatar 姜春辉

调整浏览器语言

parent 375ea82e
using CefSharp;
using CefSharp.Wpf;
using GalaSoft.MvvmLight.Threading;
using GS.Unitive.Framework.Core;
using System;
......@@ -24,6 +25,13 @@ namespace GS.Terminal.EconomyWeightHost
protected override void OnStartup(StartupEventArgs e)
{
CefSharpSettings.WcfEnabled = true;
CefSettings cefSettings = new CefSettings
{
Locale = "zh-CN",
AcceptLanguageList = "zh-CN",
};
Cef.Initialize(cefSettings);
Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
AddonRuntime addonRuntime = new AddonRuntime();
addonRuntime.Start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment