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 11using System ;
22using System . Collections . Generic ;
33using System . Diagnostics ;
4- using System . Globalization ;
54using System . IO ;
65using System . Net . Http ;
76using System . Reflection ;
@@ -195,17 +194,6 @@ app.Resources[localeKey] is not ResourceDictionary targetLocale ||
195194 if ( app . _activeLocale != null )
196195 app . Resources . MergedDictionaries . Remove ( app . _activeLocale ) ;
197196
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-
209197 app . Resources . MergedDictionaries . Add ( targetLocale ) ;
210198 app . _activeLocale = targetLocale ;
211199 }
You can’t perform that action at this time.
0 commit comments