We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc0a223 commit de0d0c1Copy full SHA for de0d0c1
1 file changed
src/App.axaml.cs
@@ -1,7 +1,6 @@
1
using System;
2
using System.Collections.Generic;
3
using System.Diagnostics;
4
-using System.Globalization;
5
using System.IO;
6
using System.Net.Http;
7
using System.Reflection;
@@ -195,17 +194,6 @@ app.Resources[localeKey] is not ResourceDictionary targetLocale ||
195
194
if (app._activeLocale != null)
196
app.Resources.MergedDictionaries.Remove(app._activeLocale);
197
198
- try
199
- {
200
- var culture = CultureInfo.GetCultureInfo(localeKey.Replace("_", "-"));
201
- Thread.CurrentThread.CurrentUICulture = culture;
202
- Thread.CurrentThread.CurrentCulture = culture;
203
- }
204
- catch
205
206
- // Just ignore
207
208
-
209
app.Resources.MergedDictionaries.Add(targetLocale);
210
app._activeLocale = targetLocale;
211
}
0 commit comments