fix: set culture info for whole app

This commit is contained in:
Anna 2020-11-10 21:53:07 -05:00
parent 108a558ee3
commit a48beae786
1 changed files with 9 additions and 0 deletions

View File

@ -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;