fix: set culture info for whole app
This commit is contained in:
parent
108a558ee3
commit
a48beae786
|
@ -1,7 +1,9 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Markup;
|
||||
|
||||
namespace XIVChat_Desktop {
|
||||
/// <summary>
|
||||
|
@ -53,6 +55,13 @@ namespace XIVChat_Desktop {
|
|||
MessageBox.Show($"Could not save configuration file. {ex.Message}");
|
||||
}
|
||||
|
||||
FrameworkElement.LanguageProperty.OverrideMetadata(
|
||||
typeof(FrameworkElement),
|
||||
new FrameworkPropertyMetadata(
|
||||
XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)
|
||||
)
|
||||
);
|
||||
|
||||
var wnd = new MainWindow();
|
||||
this.Window = wnd;
|
||||
|
||||
|
|
Loading…
Reference in New Issue