@@ -23,7 +23,7 @@ public void ScrapeLocalizations(Configuration configuration, Mods mods) {
2323 foreach ( var mod in mods ) {
2424 var modLocPath = Path . Combine ( mod . Path , "localization" ) ;
2525 if ( Directory . Exists ( modLocPath ) ) {
26- Logger . Info ( "Found some localization in [" + mod . Name + " ]") ;
26+ Logger . Info ( $ "Found some localization in [{ mod . Name } ]") ;
2727 ScrapeLanguage ( "english" , Path . Combine ( mod . Path , "localization" ) ) ;
2828 ScrapeLanguage ( "french" , Path . Combine ( mod . Path , "localization" ) ) ;
2929 ScrapeLanguage ( "german" , Path . Combine ( mod . Path , "localization" ) ) ;
@@ -54,7 +54,7 @@ private void ScrapeLanguage(string language, string path) {
5454 ScrapeStream ( reader , language ) ;
5555 stream . Close ( ) ;
5656 } catch ( Exception e ) {
57- Logger . Warn ( "Could not parse localization file " + filePath + " : " + e ) ;
57+ Logger . Warn ( $ "Could not parse localization file { filePath } : { e } " ) ;
5858 }
5959 }
6060 }
@@ -64,7 +64,7 @@ public void ScrapeStream(BufferedReader reader, string language) {
6464 if ( key is null || loc is null ) {
6565 continue ;
6666 }
67-
67+
6868 if ( localizations . TryGetValue ( key , out var locBlock ) ) {
6969 locBlock . SetLocForLanguage ( language , loc ) ;
7070 } else {
@@ -93,8 +93,7 @@ public void ScrapeStream(BufferedReader reader, string language) {
9393 return new KeyValuePair < string ? , string ? > ( key , value ) ;
9494 }
9595 public LocBlock ? GetLocBlockForKey ( string key ) {
96- var gotValue = localizations . TryGetValue ( key , out var locBlock ) ;
97- if ( ! gotValue ) {
96+ if ( ! localizations . TryGetValue ( key , out var locBlock ) ) {
9897 return null ;
9998 }
10099
0 commit comments