File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Flow.Launcher.Localization.SourceGenerators/Localize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -304,11 +304,11 @@ private void GenerateClass(
304
304
Dictionary < string , LocalizableString > localizedStrings ,
305
305
string [ ] unusedLocalizationKeys ,
306
306
string propertyName = null
307
- )
308
- {
307
+ ) {
308
+ const string name = nameof ( LocalizeSourceGenerator ) ;
309
309
var version = typeof ( LocalizeSourceGenerator ) . Assembly . GetName ( ) . Version ;
310
310
sb . AppendLine ( ) ;
311
- sb . AppendLine ( $ "[System.CodeDom.Compiler.GeneratedCode(\" LocalizeSourceGenerator \" , \" { version } \" )]") ;
311
+ sb . AppendLine ( $ "[System.CodeDom.Compiler.GeneratedCode(\" { name } \" , \" { version } \" )]") ;
312
312
sb . AppendLine ( $ "public static class { ClassName } ") ;
313
313
sb . AppendLine ( "{" ) ;
314
314
foreach ( var localizedString in localizedStrings )
You can’t perform that action at this time.
0 commit comments