@@ -5,7 +5,7 @@ namespace Flow.Launcher.Plugin.PluginIndicator
5
5
{
6
6
public class Main : IPlugin , IPluginI18n , IHomeQuery
7
7
{
8
- internal PluginInitContext Context { get ; private set ; }
8
+ internal static PluginInitContext Context { get ; private set ; }
9
9
10
10
public List < Result > Query ( Query query )
11
11
{
@@ -34,7 +34,7 @@ from keyword in nonGlobalPlugins.Keys
34
34
select new Result
35
35
{
36
36
Title = keyword ,
37
- SubTitle = string . Format ( Context . API . GetTranslation ( " flowlauncher_plugin_pluginindicator_result_subtitle" ) , plugin . Name ) ,
37
+ SubTitle = Localize . flowlauncher_plugin_pluginindicator_result_subtitle ( plugin . Name ) ,
38
38
Score = score ,
39
39
IcoPath = plugin . IcoPath ,
40
40
AutoCompleteText = $ "{ keyword } { Plugin . Query . TermSeparator } ",
@@ -44,7 +44,7 @@ from keyword in nonGlobalPlugins.Keys
44
44
return false ;
45
45
}
46
46
} ;
47
- return results . ToList ( ) ;
47
+ return [ .. results ] ;
48
48
}
49
49
50
50
private Dictionary < string , PluginPair > GetNonGlobalPlugins ( )
@@ -73,12 +73,12 @@ public void Init(PluginInitContext context)
73
73
74
74
public string GetTranslatedPluginTitle ( )
75
75
{
76
- return Context . API . GetTranslation ( " flowlauncher_plugin_pluginindicator_plugin_name" ) ;
76
+ return Localize . flowlauncher_plugin_pluginindicator_plugin_name ( ) ;
77
77
}
78
78
79
79
public string GetTranslatedPluginDescription ( )
80
80
{
81
- return Context . API . GetTranslation ( " flowlauncher_plugin_pluginindicator_plugin_description" ) ;
81
+ return Localize . flowlauncher_plugin_pluginindicator_plugin_description ( ) ;
82
82
}
83
83
}
84
84
}
0 commit comments