File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Diagnostics ;
4
- using System . Globalization ;
5
4
using System . IO ;
6
5
using System . Net . Http ;
7
6
using System . Reflection ;
@@ -195,17 +194,6 @@ app.Resources[localeKey] is not ResourceDictionary targetLocale ||
195
194
if ( app . _activeLocale != null )
196
195
app . Resources . MergedDictionaries . Remove ( app . _activeLocale ) ;
197
196
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
197
app . Resources . MergedDictionaries . Add ( targetLocale ) ;
210
198
app . _activeLocale = targetLocale ;
211
199
}
You can’t perform that action at this time.
0 commit comments