Skip to content

Commit

Permalink
Update packages and implement proper i18n culture handling
Browse files Browse the repository at this point in the history
Bump version to 1.1.3
  • Loading branch information
xWTF committed Nov 3, 2022
1 parent 7e8c33c commit f411778
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Flow.Plugin.VSCodeWorkspaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Flow.Launcher.Plugin" Version="2.0.0"/>
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0"/>
<PackageReference Include="System.Drawing.Common" Version="6.0.0"/>
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.1"/>
<PackageReference Include="Flow.Launcher.Plugin" Version="2.1.1" />
<PackageReference Include="JetBrains.Annotations" Version="2022.1.0" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.10" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
Expand Down
6 changes: 6 additions & 0 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Flow.Plugin.VSCodeWorkspaces
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Windows.Controls;
using VSCodeHelper;
Expand Down Expand Up @@ -178,6 +179,11 @@ public void Init(PluginInitContext context)

public Control CreateSettingPanel() => new SettingsView(_context, _settings);

public void OnCultureInfoChanged(CultureInfo newCulture)
{
Resources.Culture = newCulture;
}

public string GetTranslatedPluginTitle()
{
return Resources.PluginTitle;
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ActionKeyword": "{",
"Name": "VS Code Workspaces",
"Author": "ricardosantos9521",
"Version": "1.1.2",
"Version": "1.1.3",
"Language": "csharp",
"Website": "https://github.com/ricardosantos9521/PowerToys/",
"ExecuteFileName": "Flow.Plugin.VSCodeWorkspaces.dll",
Expand Down

0 comments on commit f411778

Please sign in to comment.